glibc/malloc
Roland McGrath d15851ec24 * include/atomic.h (atomic_increment_and_test): Invert sense of test.
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.
2003-03-22 23:01:01 +00:00
..
arena.c * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if 2002-12-27 00:37:06 +00:00
Depend
hooks.c (mem2chunk_check): Check alignment of mem pointer, not of the computed chunk. 2003-01-27 18:32:36 +00:00
Makefile * malloc/Versions (GLIBC_PRIVATE): Add __libc_thread_freeres. 2003-02-22 00:55:36 +00:00
malloc.c Update. 2003-01-30 18:41:47 +00:00
malloc.h * include/fcntl.h: Declare __libc_creat. 2003-01-13 03:42:27 +00:00
mallocbug.c
mcheck-init.c
mcheck.c * scripts/abilist.awk: New file. 2002-11-14 03:59:56 +00:00
mcheck.h
memusage.c Distinguish anonymous mmap. 2002-05-03 03:49:29 +00:00
memusage.sh Update. 2003-01-02 20:32:33 +00:00
memusagestat.c * include/atomic.h (atomic_increment_and_test): Invert sense of test. 2003-03-22 23:01:01 +00:00
mtrace.c 2003-03-10 Roland McGrath <roland@redhat.com> 2003-03-10 09:12:11 +00:00
mtrace.pl Update. 2003-01-02 20:32:33 +00:00
obstack.c * include/libc-symbols.h (__libc_freeres_fn_section, libc_freeres_fn): 2002-11-01 20:44:15 +00:00
obstack.h 2002-01-03 Paul Eggert <eggert@twinsun.com> 2003-01-04 21:42:30 +00:00
set-freeres.c Update. 2003-03-21 08:03:25 +00:00
thread-freeres.c * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT. 2003-02-22 01:58:06 +00:00
thread-m.h Update. 2002-12-31 21:10:07 +00:00
tst-calloc.c Add tests for one or both parameters being zero. 2002-08-07 23:06:11 +00:00
tst-malloc.c
tst-mallocstate.c Update. 2002-01-29 07:54:51 +00:00
tst-mtrace.c
tst-mtrace.sh
tst-obstack.c
tst-valloc.c
Versions * malloc/Versions (GLIBC_PRIVATE): Add __libc_thread_freeres. 2003-02-22 00:55:36 +00:00