delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/09/02/14:09:36

Date: Sat, 02 Sep 2000 21:11:31 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
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: <jea2rsk8mdep7qs6d9n6po6d0bgntg1m7o@4ax.com> (message from Jason
Green on Sat, 02 Sep 2000 18:24:23 +0100)
Subject: Re: Symify fixes
References: <3b5rqskv9adg5lcc3p4nhg2doib859r3n8 AT 4ax DOT com> <Pine DOT SUN DOT 3 DOT 91 DOT 1000831074644 DOT 20860E-100000 AT is> <4j7tqskrvkecn18jfdi9vtpbo5skmm82ke AT 4ax DOT com> <2561-Fri01Sep2000092048+0300-eliz AT is DOT elta DOT co DOT il> <jea2rsk8mdep7qs6d9n6po6d0bgntg1m7o AT 4ax DOT com>
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

> From: Jason Green <mail AT jgreen4 DOT fsnet DOT co DOT uk>
> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019