diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-03-20 07:19:17 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-03-20 07:19:17 +0000 |
commit | 4009bf404450e4ad7b72140d7bae3226fad3468c (patch) | |
tree | 175b2211f0ae10f837a3822c08cb2b989663725a /nscd | |
parent | 85b5767c57eecaad6aea0967444f5e5d42a4cc17 (diff) | |
download | glibc-4009bf404450e4ad7b72140d7bae3226fad3468c.zip glibc-4009bf404450e4ad7b72140d7bae3226fad3468c.tar.gz glibc-4009bf404450e4ad7b72140d7bae3226fad3468c.tar.bz2 |
Update.
2003-03-19 Ulrich Drepper <drepper@redhat.com>
* Makefile (distribute): Add include/atomic.h and bits/atomic.h.
* include/atomic.h: New file.
* sysdeps/i386/i486/bits/atomic.h: New file.
* sysdeps/x86_64/bits/atomic.h: New file.
* sysdeps/s390/bits/atomic.h: New file.
* sysdeps/sh/bits/atomic.h: New file.
* sysdeps/ia64/bits/atomic.h: New file.
* sysdeps/powerpc/bits/atomic.h: New file.
* sysdeps/generic/bits/atomic.h: New file.
* sysdeps/i386/i486/atomicity.h: Removed.
* sysdeps/x86_64/atomicity.h: Removed.
* sysdeps/s390/s390-32/atomicity.h: Removed.
* sysdeps/s390/s390-64/atomicity.h: Removed.
* sysdeps/ia64/atomicity.h: Removed.
* sysdeps/powerpc/powerpc32/atomicity.h: Removed.
* sysdeps/powerpc/powerpc64/atomicity.h: Removed.
* elf/dl-profile.c: Use atomic.h instead of atomicity.h. Adjust
use of macros from atomicity.h to new names and semantics.
* gmon_mcount.c: Likewise.
* malloc/set-freeres.c: Likewise.
* nscd/cache.c: Likewise.
* stdlib/cxa_finalize.c: Likewise.
* sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
* sysdeps/mips/ieee754.h: New file, suitable to replace both
* stdlib/strtod.c (INTERNAL): While eating trailing zeros handle
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nscd/cache.c b/nscd/cache.c index d8339e9..788d47b 100644 --- a/nscd/cache.c +++ b/nscd/cache.c @@ -17,7 +17,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include <atomicity.h> +#include <atomic.h> #include <errno.h> #include <error.h> #include <limits.h> @@ -101,8 +101,8 @@ cache_add (int type, void *key, size_t len, const void *packet, size_t total, /* Put the new entry in the first position. */ do newp->next = table->array[hash]; - while (! compare_and_swap ((volatile long int *) &table->array[hash], - (long int) newp->next, (long int) newp)); + while (atomic_compare_and_exchange_acq (&table->array[hash], newp, + newp->next)); /* Update the statistics. */ if (data == (void *) -1) |