From owner-freebsd-hackers Fri Jun 23 8:48:57 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by hub.freebsd.org (Postfix) with ESMTP id 4FAA737C397 for ; Fri, 23 Jun 2000 08:48:54 -0700 (PDT) (envelope-from andrew@ugh.net.au) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id 05125A841; Sat, 24 Jun 2000 01:49:19 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id F30025443; Sat, 24 Jun 2000 01:49:19 +1000 (EST) Date: Sat, 24 Jun 2000 01:49:19 +1000 (EST) From: andrew@ugh.net.au To: "Bohne, Peter" Cc: FengYue , hackers@FreeBSD.ORG Subject: RE: libc_r/_read(), should the errno be reset to 0? In-Reply-To: <35BEC7ED0A15D21199F000805F6F6D6A01CB00E0@bldexc01ntms.clinicom.com> Message-ID: X-WonK: *wibble* MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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