From owner-freebsd-hackers Fri Jun 23 2: 1:41 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 480A337B607 for ; Fri, 23 Jun 2000 02:01:37 -0700 (PDT) (envelope-from andrew@ugh.net.au) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id C6D1AA841; Fri, 23 Jun 2000 19:02:01 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by starbug.ugh.net.au (Postfix) with ESMTP id C4AF25443; Fri, 23 Jun 2000 19:02:01 +1000 (EST) Date: Fri, 23 Jun 2000 19:02:01 +1000 (EST) From: andrew@ugh.net.au To: FengYue Cc: hackers@FreeBSD.ORG Subject: Re: libc_r/_read(), should the errno be reset to 0? In-Reply-To: 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, 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