From owner-freebsd-bugs Thu Nov 6 21:10:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA10426 for bugs-outgoing; Thu, 6 Nov 1997 21:10:07 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA10415; Thu, 6 Nov 1997 21:10:02 -0800 (PST) (envelope-from gnats) Date: Thu, 6 Nov 1997 21:10:02 -0800 (PST) Message-Id: <199711070510.VAA10415@hub.freebsd.org> To: freebsd-bugs Cc: From: Bill Fenner Subject: Re: bin/4961: Problems with fseek and fprints Reply-To: Bill Fenner Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/4961; it has been noted by GNATS. From: Bill Fenner To: Garrett Wollman 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 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