Date: Fri, 19 Jun 1998 09:55:00 PDT From: Bill Fenner <fenner@parc.xerox.com> To: Terry Lambert <tlambert@primenet.com> Cc: peter@netplex.com.au (Peter Wemm), current@FreeBSD.ORG Subject: Re: Bogus errno twiddling by lstat... Message-ID: <98Jun19.095515pdt.177515@crevenia.parc.xerox.com> In-Reply-To: Your message of "Wed, 17 Jun 98 12:50:35 PDT." <199806171950.MAA25326@usr01.primenet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <199806171950.MAA25326@usr01.primenet.com> you write: >> 1: This is a classic programming error.. You're not really supposed to be >> looking at the value of errno except right after a -1 return from >> something. > >I know I'm not supposed to be. However, it's not supposed to be diddling >the errno. The ANSI C standard says that unless stated otherwise in the standard (e.g. the math functions), library functions may change errno even if there is no error. Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98Jun19.095515pdt.177515>