Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 1997 21:10:02 -0800 (PST)
From:      Bill Fenner <fenner@parc.xerox.com>
To:        freebsd-bugs
Subject:   Re: bin/4961: Problems with fseek and fprints 
Message-ID:  <199711070510.VAA10415@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: Thu, 6 Nov 1997 21:05:50 PST

 Garrett Wollman <wollman@khavrinen.lcs.mit.edu> wrote:
 >				readlink("/etc/malloc.conf", ...)
 
 Aha.  Plaugher's "Standard C Library" says that the "right" way
 to use errno is:
 
 	errno = 0;
 	foo();
 	if (errno) ...
 
 so library functions shouldn't set errno if an error did not occur.
 Does that mean that malloc should save errno around the readlink()?
 
   Bill



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