Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jun 2000 19:02:01 +1000 (EST)
From:      andrew@ugh.net.au
To:        FengYue <fengyue@bluerose.windmoon.nu>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: libc_r/_read(), should the errno be reset to 0?
Message-ID:  <Pine.BSF.4.21.0006231859260.5504-100000@starbug.ugh.net.au>
In-Reply-To: <Pine.BSF.4.10.10006230134540.36067-100000@bluerose.windmoon.nu>

next in thread | previous in thread | raw e-mail | index | archive | help


On Fri, 23 Jun 2000, FengYue wrote:

> My question is, shouldn't it be reset to zero?

From intro(2):

Successful calls never set errno; once set, it remains until another error
occurs.  It should only be examined after an error.

Andrew



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0006231859260.5504-100000>