[klibc] klibc: s390 errno...

Arnd Bergmann arnd at arndb.de
Tue May 2 04:11:15 PDT 2006


On Tuesday 02 May 2006 10:06, Heiko Carstens wrote:
> On Tue, May 02, 2006 at 01:53:04AM -0700, H. Peter Anvin wrote:
> > Heiko Carstens wrote:
> > >>
> > >>The former is clearly right and the latter is clearly wrong.  Should I change the s390x version to match s390?
> > >Looks like the right thing to do. Even though -125 seems to be wrong since we
> > >have already
> > >#define ENOTRECOVERABLE 131     /* State not recoverable */
> > >Testing against -4095 is probably better.
> > 
> > I like -4096 better; that way it's effectively an "error page" at the top of the unsigned space.
> > 
> >From glibc.. that's why I would use -4095 :)
> 
> I will send you a patch later.
> 

include/linux/errno.h has:

/* Should never be seen by user programs */
#define ERESTARTSYS	512
#define ERESTARTNOINTR	513
...

>From that, I would say it should check against -512, not -4096.

	Arnd <><



More information about the klibc mailing list