Commit Graph

67 Commits

Author SHA1 Message Date
Ulrich Drepper
b7bdd9c4c9 Update.
* forward.c (test_loaded): Prevent recursive calls.
2002-12-13 22:56:45 +00:00
Ulrich Drepper
400d6c5187 (test_loaded): Prevent recursive calls. 2002-12-13 22:56:32 +00:00
Ulrich Drepper
9ae0909b35 Update.
2002-12-13  Ulrich Drepper  <drepper@redhat.com>

	* misc/syslog.c (log_cleanup): Don't use parameter in
	__libc_lock_unlock call, use syslog_lock directly.  Adjust callers to
	pass NULL instead of a pointer to syslog_lock.
2002-12-13 10:59:14 +00:00
Ulrich Drepper
b9633fccd3 Cancellation handling inside libc. 2002-12-13 10:35:39 +00:00
Ulrich Drepper
efd56f5391 Update.
* elf/Makefile (tests): Add rules to build and run check-textrel.
	* elf/check-textrel.c: New file.
2002-12-12 21:51:52 +00:00
Ulrich Drepper
2ad2e1e702 Update.
2002-12-12  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/i386/sysdep.h (SETUP_PIC_REG): Add .size
	directive.
2002-12-12 18:29:08 +00:00
Ulrich Drepper
22f2067436 Update.
2002-12-12  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Correct
	access to __libc_locking_needed for PIC.
2002-12-12 18:26:13 +00:00
Ulrich Drepper
aa80bf8661 Update.
2002-12-12  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/pthread/bits/libc-lock.h (__libc_locking_needed): Only
	declare for libc.so.
	(__libc_lock_init, __libc_lock_init_recursive): Change into comma
	expression.
	(__libc_lock_lock): Put into statement expression.
	(__libc_lock_unlock): Remove trailing semicolon.
	* sysdeps/unix/sysv/linux/fork.h (__libc_pthread_init): Fix typo.
2002-12-12 18:04:35 +00:00
Ulrich Drepper
ced7053233 (__libc_locking_needed): Only declare for libc.so. (__libc_lock_init, __libc_lock_init_recursive): Change into comma expression. (__libc_lock_lock): Put into statement expression. (__libc_lock_unlock): Remove trailing semicolon. 2002-12-12 17:59:47 +00:00
Roland McGrath
240213734c * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
"m" constraint to refer to __libc_locking_needed.  Declare it here.
2002-12-12 12:54:29 +00:00
Roland McGrath
be180f6f3b 2002-12-12 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use asm operand with
	"m" constraint to refer to __libc_locking_needed.  Declare it here.
2002-12-12 12:54:18 +00:00
Ulrich Drepper
14e7aeceff Update.
2002-12-12  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/fork-gen.c: Renamed to...
	* sysdeps/unix/sysv/linux/libc_pthread_init.c: ...this.
	Initialize __libc_locking_needed.
	* init.c (__pthread_initialize_minimal): Call __libc_pthread_init
	instead of __register_pthread_fork_handler.
	* sysdeps/pthread/bits/libc-lock.h: Declare __libc_locking_needed.
	* sysdeps/unix/sysv/linux/Makefile (sysdep_routimes): Replace
	fork-gen with libc_pthread_init.
	* sysdeps/unix/sysv/linux/Versions: Use __libc_pthread_init instead
	of __register_pthread_fork_handler.
	* sysdeps/unix/sysv/linux/fork.h: Declare __libc_pthread_init instead
	of __register_pthread_fork_handler.
	* sysdeps/unix/sysv/linux/i386/lowlevellock.h: Use
	__libc_locking_needed to determine whether lock prefix can be avoided.
	* sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Likewise.
2002-12-12 10:28:11 +00:00
Ulrich Drepper
da63009e0f Update.
* Makefile (tests): Add tst-cleanup1.
	* tst-cleanup1.c: New file.
	* cancellation.c (__cleanup_thread): Removed.
	(__do_cancel): Remove call to __cleanup_thread.
	* pthreadP.h: Remove __cleanup_thread prorotype.
2002-12-12 04:46:44 +00:00
Ulrich Drepper
1a82c8ffae Test for cancelation handler order. 2002-12-12 04:41:30 +00:00
Ulrich Drepper
000160a268 Update.
* sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_region_start):
	Remember function and argument even if cancellation handler
	function is not available.
	(__libc_cleanup_region_end): Execute registered function directly if
	pthread functions are not available.
	(__libc_cleanup_end): Likewise.
2002-12-12 02:28:37 +00:00
Ulrich Drepper
85631c8ecf Update.
2002-12-11  Ulrich Drepper  <drepper@redhat.com>

	* init.c (__pthread_initialize_minimal): Fix initialization in
	static lib by preventing gcc from being too clever.
2002-12-11 09:32:45 +00:00
Ulrich Drepper
34a075bea3 Update.
* sysdeps/generic/sigpause.c: Define all functions as weak.
	* sysdeps/posix/sigpause.c: Likewise.
2002-12-11 00:55:49 +00:00
Ulrich Drepper
75cddafe47 (__pthread_initialize_minimal): Remove unneccesary sigaddset call. 2002-12-10 23:59:36 +00:00
Ulrich Drepper
dce8f2b62a Update.
2002-12-10  Jakub Jelinek  <jakub@redhat.com>

	* include/libc-symbols.h: Fix a comment typo.

	* sysdeps/unix/sysv/linux/alpha/select.S (__libc_select): New alias.
	* sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__libc_sigsuspend):
	Likewise.
	* sysdeps/unix/sysv/linux/ia64/sigsuspend.c (__libc_sigsuspend):
	Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c
	(__libc_sigsuspend): Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c
	(__libc_sigsuspend): Likewise.
	* sysdeps/generic/creat.c (__libc_creat): Renamed from creat.
	(creat): New weak alias.
2002-12-10 20:35:58 +00:00
Ulrich Drepper
e5e45b5337 Update.
2002-12-09  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/syscalls.list: Add __libc_creat and
	__libc_select aliases.

	* sysdeps/unix/sysv/linux/sigwaitinfo.c: Define __libc_sigwaitinfo
	alias.

	* sysdeps/unix/sysv/linux/sigwait.c: Define __libc_sigwait alias.

	* sysdeps/unix/sysv/linux/sigsuspend.c: Define __libc_sigsuspend alias.

	* sysdeps/unix/sysv/linux/poll.c: Define __libc_poll alias.

	* sysdeps/unix/syscalls.list: Define __libc_select alias.

	* sysdeps/posix/waitid.c: Define __libc_waitid alias.

	* sysdeps/posix/sigpause.c: Define __libc_sigpause and
	__libc___xpg_sigpause aliases.

	* sysdeps/generic/pselect.c: Define __libc_pselect alias.

	* misc/error.c: Remove use of USE_IN_LIBIO.
2002-12-10 04:05:39 +00:00
Ulrich Drepper
1e50662964 Update.
* pthreadP.h: Enable pthread_cleanup_{push,pop} optimizations only
	inside libpthread.
2002-12-08 09:41:40 +00:00
Ulrich Drepper
a3957dd584 Update.
* pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.

	* pthread_join.c: Likewise.
	* pthread_timedjoin.c: Likewise.
2002-12-08 09:28:13 +00:00
Ulrich Drepper
bdb04f9220 Update.
* scripts/output-format.sed: Fix bug in one of the s expressions
	which used / for one too many things.
2002-12-08 08:25:05 +00:00
Ulrich Drepper
3335502bec Update.
2002-12-08  Ulrich Drepper  <drepper@redhat.com>

	* include/unistd.h: Declare __libc_close.
2002-12-08 08:05:25 +00:00
Ulrich Drepper
09efc3ba12 Update.
2002-12-07  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
2002-12-08 03:13:06 +00:00
Ulrich Drepper
6ccb3834eb Update.
2002-12-07  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/raise.c: Use libc_hidden_def for raise.
2002-12-08 00:47:12 +00:00
Ulrich Drepper
18910023db Use libc_hidden_def for raise. 2002-12-08 00:46:49 +00:00
Ulrich Drepper
4614167ae7 Update.
* test-skeleton.c (timeout_handler): Allow expected signal to be
	SIGALRM.
2002-12-07 05:39:20 +00:00
Ulrich Drepper
a4548cea4a Update.
* init.c (__pthread_initialize_minimal): Correct INIT_LIST_HEAD use.
2002-12-06 21:15:46 +00:00
Ulrich Drepper
d3c9f89525 Update.
2002-12-06  Ulrich Drepper  <drepper@redhat.com>

	* misc/syslog.c (log_cleanup): New function.
	(openlog): Use log_cleanup instead of __libc_mutex_unlock.
	(closelog): Likewise.

	* elf/dl-close.c: Use __rtld_lock_* macros instead of __libc_lock_*.
	* elf/dl-iteratephdr.c: Likewise.
	* elf/dl-lookup.c: Likewise.
	* elf/dl-misc.c: Likewise.
	* elf/dl-open.c: Likewise.
	* elf/dl-support.c: Likewise.
	* elf/rtld.c: Likewise.
	* sysdeps/generic/ldsodefs.h: Likewise.
	* sysdeps/generic/bits/libc-lock.h: Define __rtld_lock_* macros.
	* sysdeps/mach/bits/libc-lock.h: Likewise.
	* sysdeps/mach/hurd/bits/libc-lock.h: Likewise.

	* dirent/bug-readdir1.c (main): Don't call closedir, just close
2002-12-06 11:49:42 +00:00
Roland McGrath
fde89ad009 * sysdeps/generic/libc-tls.c (__libc_setup_tls): Cope with zero ALIGN.
* malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]
	(malloc_starter, memalign_starter, free_starter): Don't define these.
	* malloc/malloc.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))]:
	Don't declare them either.
	* malloc/arena.c (ptmalloc_init) [_LIBC && USE_TLS]: Don't call
	__pthread_initialize, so no need to set hooks to *_starter.
	(ptmalloc_init_minimal): New function, broken out of ptmalloc_init.
	[_LIBC && SHARED && USE_TLS && !USE___THREAD]
	(__libc_malloc_pthread_startup): New function.
	* malloc/Versions (libc: GLIBC_PRIVATE): New set, add that function.

	* malloc/hooks.c (memalign_starter): New function.
	* malloc/malloc.c: Declare it.
	* malloc/arena.c (save_memalign_hook): New variable.
	(ptmalloc_init): Set __memalign_hook to memalign_starter.

	* elf/dl-minimal.c (free): Clear the memory.
	(calloc): Just call malloc, knowing all memory it returns is cleared.

	* sysdeps/generic/dl-tls.c (allocate_dtv): Use calloc instead of
	malloc and memset; calloc can avoid the zeroing when redundant.
	(_dl_tls_setup): Likewise.
	* elf/dl-load.c (decompose_rpath): Likewise.
	* sysdeps/generic/libc-tls.c (__libc_setup_tls): Comment out memset
	call, since memory from sbrk at startup is already zero.

	* elf/rtld.c (_dl_start, dl_main): TLS_INIT_TP macro now returns an
	error string for failure, null for success.  Update callers.
	* sysdeps/generic/libc-tls.c (__libc_setup_tls): Likewise.
	* elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2002-12-06 11:15:07 +00:00
Roland McGrath
11767d4767 * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
missing & here too.
2002-12-05 20:56:43 +00:00
Roland McGrath
9702f15190 2002-12-05 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add
	missing & here too.
2002-12-05 20:56:25 +00:00
Ulrich Drepper
440d8bc2cd Update.
2002-12-05  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
	lowlevellock.
	* sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: New file.
	* sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: New file.
	* sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: New file.
	* sysdeps/pthread/bits/libc-lock.h: Use lowlevellock implementation
	for __libc_lock_* macros.
	* Makefile (routines): Add libc-lowlevellock.

2002-10-09  Roland McGrath  <roland@redhat.com>

	* sysdeps/pthread/bits/libc-lock.h (__libc_maybe_call): New macro.
	Under [__PIC__], call the function via the pointer fetched for
	comparison rather than a call by name that uses the PLT.
	(__libc_lock_init, __libc_rwlock_init, __libc_lock_fini)
	(__libc_rwlock_fini, __libc_lock_lock, __libc_rwlock_rdlock)
	(__libc_rwlock_wrlock, __libc_lock_trylock, __libc_rwlock_tryrdlock)
	(__libc_rwlock_trywrlock, __libc_lock_unlock, __libc_rwlock_unlock)
	(__libc_key_create, __libc_getspecific, __libc_setspecific): Use it.
2002-12-05 20:04:54 +00:00
Ulrich Drepper
240a3c78ea Low level locks for i486 in libc. 2002-12-05 19:46:41 +00:00
Roland McGrath
d5ed0118ca * forward.c (pthread_self): Use FORWARD3 macro to correct return type.
* sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db.
	* sysdeps/generic/td_ta_map_lwp2thr.c: New file.

	* pthread_create.c (start_thread): Add missing & on __nptl_last_event.
2002-12-05 05:15:35 +00:00
Ulrich Drepper
eaa4099fd6 Update.
* sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: (struct sigevent):
	Change type of _attribute to void*.
	* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
	* sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise.
	* sysdeps/unix/sysv/linux/mips/bits/siginfo.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
2002-12-05 01:09:19 +00:00
Ulrich Drepper
33b5d0cc7f Update.
2002-12-05  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/tls.h: Include stdlib.h.
	* sysdeps/x86_64/tls.h: Likewise.
2002-12-05 00:44:01 +00:00
Ulrich Drepper
c4a6d85994 Update.
2002-12-04  Ulrich Drepper  <drepper@redhat.com>

	* argp/Makefile (tests): Add tst-argp1.
2002-12-04 19:53:08 +00:00
Ulrich Drepper
ed6e8c2e68 Bump to 0.11. 2002-12-04 19:10:58 +00:00
Ulrich Drepper
7a5cdb30e3 Update.
2002-12-04  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/i386/lowlevellock.h: Mark asms as
	volatile and add memory clobbers to lock operations.
2002-12-04 09:52:26 +00:00
Ulrich Drepper
69cae3cfaf Update.
* sysdeps/i386/i686/bits/atomic.h: Use i486 version.
	* sysdeps/i386/i486/bits/atomic.h: New file.
	* sysdeps/i386/i586/bits/atomic.h: New file.
	* sysdeps/i386/i686/pthread_spin_trylock.S: Define HAVE_CMOV and
	include i486 version.
	* sysdeps/i386/i486/pthread_spin_trylock.S: New file.
	* sysdeps/i386/i586/pthread_spin_trylock.S: New file.
	Patch by Marjin Ros <marjin@mad.scientist.com>.
2002-12-04 00:55:29 +00:00
Ulrich Drepper
b1473c3238 i486 specific atomic operations. 2002-12-04 00:54:06 +00:00
Ulrich Drepper
20b839bf12 Define HAVE_CMOV and include i486 version. 2002-12-03 20:21:08 +00:00
Ulrich Drepper
e4044c0178 Update.
* allocatestack.c (get_cached_stack): Don't crash if we first
	found a stack with a larger size then needed.
	Reported by Hui Huang <hui.huang@sun.com>.
2002-12-03 20:07:12 +00:00
Ulrich Drepper
5cfc88a718 (get_cached_stack): Don't crash if we first found a stack with a larger size then needed. 2002-12-03 20:06:21 +00:00
Ulrich Drepper
d82d5d12a6 Update.
2002-12-03  Ulrich Drepper  <drepper@redhat.com>

	* Makefile (tests): Add tst-sysconf.
	* tst-sysconf.c: New file.

	* sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine
	PTHREAD_THREADS_MAX.
2002-12-03 10:34:23 +00:00
Ulrich Drepper
87293ddce8 Correct rule to create tst-locale1. 2002-12-03 08:57:59 +00:00
Ulrich Drepper
c22b52fa11 Update.
* Makefile (tests): Add tst-locale1.  If buid-static is yes link
	statically.
	* tst-locale1.c: New file.
2002-12-03 06:27:43 +00:00
Ulrich Drepper
a3a238a978 Test use of locale functions in statically linked apps. 2002-12-03 06:01:38 +00:00