Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Nov 1997 10:40:01 -0800 (PST)
From:      Bill Fenner <fenner@parc.xerox.com>
To:        freebsd-bugs
Subject:   Re: bin/4961: Problems with fseek and fprints 
Message-ID:  <199711071840.KAA15436@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/4961; it has been noted by GNATS.

From: Bill Fenner <fenner@parc.xerox.com>
To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/4961: Problems with fseek and fprints 
Date: Fri, 7 Nov 1997 10:33:24 PST

 Garrett Wollman <wollman@khavrinen.lcs.mit.edu> wrote:
 >Unless an error is indicated, the value of errno is indeterminate.
 
 That's what I always thought, too.  Footnote #93 of the ANSI C standard says:
 
 ... a program that uses errno for error checking should set it to
 zero before a library function call, then inspect it before a subsequent
 library function call.
 
 However, the ANSI C standard also says
 
 The value of errno may be set to nonzero by a library function call
 whether or not there is an error...
 
 so it seems to be inconsistent with itself.  Oh well.
 
   Bill



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711071840.KAA15436>