Date: Sat, 24 Jun 2000 01:49:19 +1000 (EST) From: andrew@ugh.net.au To: "Bohne, Peter" <Peter.Bohne@hboc.com> Cc: FengYue <fengyue@bluerose.windmoon.nu>, hackers@FreeBSD.ORG Subject: RE: libc_r/_read(), should the errno be reset to 0? Message-ID: <Pine.BSF.4.21.0006240148060.6650-100000@starbug.ugh.net.au> In-Reply-To: <35BEC7ED0A15D21199F000805F6F6D6A01CB00E0@bldexc01ntms.clinicom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 23 Jun 2000, Bohne, Peter wrote: > This means that *you* should set errno to 0 just before you do the read > call. At this point, you no longer care what it had been before. Why set it at all? If read returns an error then it will set it for you and if read doesn't return an error it doesn't really matter whats in errno. Am I missing something? 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.0006240148060.6650-100000>