This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [parisc-linux] Re: [PATCH] Fix the atomic compare and swap
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: carlos at systemhalted dot org (Carlos O'Donell)
- Cc: libc-ports at sourceware dot org, parisc-linux at lists dot parisc-linux dot org, aurelien at aurel32 dot net
- Date: Mon, 21 May 2007 15:04:38 -0400 (EDT)
- Subject: 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)