This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [parisc-linux] Re: [PATCH] Fix the atomic compare and swap


> > Yah, this just occurred to me.  It would be nice if the code could
> > use EAGAIN from errno.h but I can see that that's a bit tricky.
> > Possibly, a macro argument would work.
> 
> I don't want to be at the *whim* of users who might redefine EAGAIN. I
> think the value should be fixed and immutable.

Users who redefine names reserved by POSIX should be lined up and ...

You are quite safe in fixing the value as any change in the error
number for EAGAIN would break binaries that check for this code.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]