From owner-freebsd-current Fri Jun 19 09:56:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA20513 for freebsd-current-outgoing; Fri, 19 Jun 1998 09:56:15 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from alpha.xerox.com (omega.Xerox.COM [13.1.64.95]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA20463 for ; Fri, 19 Jun 1998 09:56:03 -0700 (PDT) (envelope-from fenner@parc.xerox.com) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <40846(1)>; Fri, 19 Jun 1998 09:55:25 PDT Received: from localhost by crevenia.parc.xerox.com with SMTP id <177515>; Fri, 19 Jun 1998 09:55:15 -0700 To: Terry Lambert cc: peter@netplex.com.au (Peter Wemm), current@FreeBSD.ORG Subject: Re: Bogus errno twiddling by lstat... In-reply-to: Your message of "Wed, 17 Jun 98 12:50:35 PDT." <199806171950.MAA25326@usr01.primenet.com> Date: Fri, 19 Jun 1998 09:55:00 PDT From: Bill Fenner Message-Id: <98Jun19.095515pdt.177515@crevenia.parc.xerox.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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