Date: Sat, 24 Jun 2000 02:25:21 +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.0006240223260.6650-100000@starbug.ugh.net.au> In-Reply-To: <35BEC7ED0A15D21199F000805F6F6D6A01CB00E2@bldexc01ntms.clinicom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 23 Jun 2000, Bohne, Peter wrote: > Anytime you make a call that can potentially set errno, and you are planning > to *check* errno afterwards, you have to set errno to 0 yourself. Once a ...but you would only be checking errno if the call failed and if the call failed then it will have set errno. 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.0006240223260.6650-100000>