mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 07:20:11 +00:00
d15851ec24
Add comment. (atomic_decrement_and_test): Add comment. 2003-03-22 Jakub Jelinek <jakub@redhat.com> * include/atomic.h (atomic_compare_and_exchange_val_acq): Add comment. Don't define if __arch_compare_and_exchange_val_32_acq is not defined. (atomic_compare_and_exchange_bool_acq): Add comment. Don't use __oldval variable in the macro, since it might be macro argument. (atomic_decrement_if_positive): Initialize __memp, remove setting of non-existent variable. (atomic_bit_test_set): Cast 1 to __typeof (*mem) before shifting. * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Implement using atomic_compare_and_exchange_val_acq. (atomic_decrement_if_positive, atomic_bit_test_set): Define. * sysdeps/s390/bits/atomic.h (__arch_compare_and_exchange_val_8_acq): Renamed from... (__arch_compare_and_exchange_bool_8_acq): ... this. (__arch_compare_and_exchange_val_16_acq): Renamed from... (__arch_compare_and_exchange_bool_16_acq): ... this. (__arch_compare_and_exchange_val_32_acq): Return old value. Renamed from... (__arch_compare_and_exchange_bool_32_acq): ... this. (__arch_compare_and_exchange_val_64_acq): Return old value. Renamed from... (__arch_compare_and_exchange_bool_64_acq): ... this. (__arch_compare_and_exchange_val_32_acq): Use __typeof for local variables types instead of assuming int. Change prefix of local variables to __arch. * sysdeps/generic/bits/atomic.h (arch_compare_and_exchange_acq): Remove. (atomic_compare_and_exchange_val_acq, atomic_compare_and_exchange_bool_acq): Define. * csu/tst-atomic.c: New test. * csu/tst-atomic-long.c: New test. * csu/Makefile (tests): Add tst-atomic and tst-atomic-long. * malloc/memusagestat.c (main): Kill warning if uint64_t is ulong. * sysdeps/s390/Versions: Add trailing newline. * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Kill warning if INTERNAL_SYSCALL_ERROR_P doesn't use its first argument. |
||
---|---|---|
.. | ||
alpha | ||
arm | ||
bsd | ||
common | ||
i386 | ||
inet | ||
mips | ||
mman | ||
powerpc | ||
sh | ||
sparc | ||
sysv | ||
x86_64 | ||
_exit.S | ||
alarm.c | ||
clock_gettime.c | ||
clock_nanosleep.c | ||
clock_settime.c | ||
closedir.c | ||
configure | ||
configure.in | ||
confstr.h | ||
dirfd.c | ||
dirstream.h | ||
Dist | ||
errnos-tmpl.c | ||
errnos.awk | ||
execve.S | ||
fork.S | ||
fxstat.c | ||
getdents.c | ||
getegid.S | ||
geteuid.S | ||
getlogin_r.c | ||
getlogin.c | ||
getpagesize.c | ||
getppid.S | ||
grantpt.c | ||
Implies | ||
ioctls-tmpl.c | ||
ioctls.awk | ||
make_errlist.c | ||
make-syscalls.sh | ||
Makefile | ||
mk-local_lim.c | ||
mkdir.c | ||
mkfifo.c | ||
nice.c | ||
opendir.c | ||
readdir_r.c | ||
readdir.c | ||
rewinddir.c | ||
rmdir.c | ||
s-proto-bp.S | ||
s-proto-cancel.S | ||
s-proto.S | ||
seekdir.c | ||
siglist.c | ||
snarf-ioctls | ||
sockatmark.c | ||
start.c | ||
stime.c | ||
Subdirs | ||
syscall.S | ||
syscalls.list | ||
sysdep.h | ||
system.c | ||
telldir.c | ||
time.c | ||
utime.c | ||
xmknod.c | ||
xstat.c |