Re: Re: [PATCH] Fix the atomic compare and swap
"John David Anglin" <[email protected]>
| Newsgroups | gmane.linux.ports.hppa |
|---|---|
| Message-ID | <[email protected]> |
> > 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 [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6602)