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 function
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: carlos at systemhalted dot org (Carlos O'Donell)
- Cc: aurelien at aurel32 dot net, libc-ports at sourceware dot org, parisc-linux at lists dot parisc-linux dot org
- Date: Sun, 20 May 2007 11:34:46 -0400 (EDT)
- Subject: Re: [parisc-linux] Re: [PATCH] Fix the atomic compare and swap function
> > -#define ASM_EAGAIN "11"
> > +#define ASM_EAGAIN "-11"
If the check is wrong, I would change the compare instead of the
define. Error numbers are normally defined as positive values.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)