Date: Sat, 02 Sep 2000 21:11:31 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: mail AT jgreen4 DOT fsnet DOT co DOT uk Message-Id: <4839-Sat02Sep2000211131+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b CC: lauras AT softhome DOT net, djgpp-workers AT delorie DOT com In-reply-to: (message from Jason Green on Sat, 02 Sep 2000 18:24:23 +0100) Subject: Re: Symify fixes References: <3b5rqskv9adg5lcc3p4nhg2doib859r3n8 AT 4ax DOT com> <4j7tqskrvkecn18jfdi9vtpbo5skmm82ke AT 4ax DOT com> <2561-Fri01Sep2000092048+0300-eliz AT is DOT elta DOT co DOT il> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Jason Green > Date: Sat, 02 Sep 2000 18:24:23 +0100 > > > > > > Actually no, a system call can legally set errno even if no error > > > occured. > > > > I think ANSI specifically disallows this: if no error occured, errno > > should be left alone. > > You could be right, it's just that this is contrary to what I have > read elsewhere. The ANSI standard says: The value of `errno' is zero at program startup, but is never set to zero by any library function. The value of `errno' may be set to nonzero by a library function call whether or not there is an error, provided the use of `errno' is not documented in the description of the function in this International Standard. So the value of `errno' is prohibited from being reset to zero. The standard indeed allows to set `errno' to a nonzero value when no apparent error has happened (because some underlying system calls could fail), but the DJGPP library generally tries very hard to avoid that. > The real point is whether to commit all or some of the patches to > symify. IMHO, modified bail() should be commited. FWIW, I agree.