diff options
Diffstat (limited to 'libpthread/nptl/ChangeLog')
-rw-r--r-- | libpthread/nptl/ChangeLog | 7160 |
1 files changed, 0 insertions, 7160 deletions
diff --git a/libpthread/nptl/ChangeLog b/libpthread/nptl/ChangeLog deleted file mode 100644 index 6fb56a93f..000000000 --- a/libpthread/nptl/ChangeLog +++ /dev/null @@ -1,7160 +0,0 @@ -2005-05-03 Ulrich Drepper <drepper@redhat.com> - - [BZ #915] - * sysdeps/pthread/pthread.h: Avoid empty initializers. - -2005-05-03 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Remove explicit - .eh_frame section, use cfi_* directives. - -2005-04-27 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Use <> instead - of "" includes. - -2005-04-27 Ulrich Drepper <drepper@redhat.com> - - * tst-cancel17.c (do_test): Add arbitrary factor to make sure - aio_write blocks. - -2005-04-27 Roland McGrath <roland@redhat.com> - - * Makefile (tests): Remove tst-clock2. - - * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Handle - CLOCK_PROCESS_CPUTIME_ID and CLOCK_PROCESS_THREAD_ID specially, - translating to the kernel clockid_t for our own process/thread clock. - - * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: New file. - -2005-04-15 Jakub Jelinek <jakub@redhat.com> - - * old_pthread_cond_init.c: Include <errno.h>. - (__pthread_cond_init_2_0): Fail with EINVAL if COND_ATTR is - process shared or uses clock other than CLOCK_REALTIME. - * pthread_cond_init.c (__pthread_cond_init): Remove bogus comment. - -2005-04-13 David S. Miller <davem@davemloft.net> - - * sysdeps/sparc/sparc64/jmpbuf-unwind.h: New file. - * sysdeps/sparc/sparc64/clone.S: New file. - -2005-04-05 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/pthread/pthread.h (__pthread_cleanup_routine): Use - __inline instead of inline. - * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_routine): Likewise. - -2005-03-31 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Use - functionally equivalent, but shorter instructions. - * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise. - * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: - Likewise. - * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: - Likewise. - * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise. - * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Likewise. - -2005-03-28 Daniel Jacobowitz <dan@codesourcery.com> - - * sysdeps/mips/Makefile: New file. - * sysdeps/mips/nptl-sysdep.S: New file. - * sysdeps/mips/tcb-offsets.sym: New file. - * sysdeps/mips/pthread_spin_lock.S: New file. - * sysdeps/mips/pthread_spin_trylock.S: New file. - * sysdeps/mips/pthreaddef.h: New file. - * sysdeps/mips/tls.h: New file. - * sysdeps/mips/jmpbuf-unwind.h: New file. - * sysdeps/unix/sysv/linux/mips/lowlevellock.h: New file. - * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h: New file. - * sysdeps/unix/sysv/linux/mips/bits/semaphore.h: New file. - * sysdeps/unix/sysv/linux/mips/pthread_once.c: New file. - * sysdeps/unix/sysv/linux/mips/fork.c: New file. - * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file. - * sysdeps/unix/sysv/linux/mips/vfork.S: New file. - * sysdeps/unix/sysv/linux/mips/clone.S: New file. - * sysdeps/unix/sysv/linux/mips/createthread.c: New file. - * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: New file. - -2005-03-23 Ulrich Drepper <drepper@redhat.com> - - * pthread_create.c (__pthread_create_2_1): Rename syscall error - variable to scerr. - -2005-03-10 Jakub Jelinek <jakub@redhat.com> - - * tst-getpid1.c (do_test): Align stack passed to clone{2,}. - -2005-02-25 Roland McGrath <roland@redhat.com> - - * alloca_cutoff.c: Correct license text. - * tst-unload.c: Likewise. - * sysdeps/pthread/allocalim.h: Likewise. - * sysdeps/pthread/pt-initfini.c: Likewise. - * sysdeps/pthread/bits/libc-lock.h: Likewise. - * sysdeps/pthread/bits/sigthread.h: Likewise. - * sysdeps/unix/sysv/linux/bits/local_lim.h: Likewise. - * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise. - -2005-02-16 Roland McGrath <roland@redhat.com> - - * sysdeps/pthread/pthread-functions.h (struct pthread_functions): - Use unsigned int * for ptr_nthreads. - -2005-02-14 Alan Modra <amodra@bigpond.net.au> - - * sysdeps/powerpc/tcb-offsets.sym (thread_offsetof): Redefine to suit - gcc4. - -2005-02-07 Richard Henderson <rth@redhat.com> - - [BZ #787] - * sysdeps/pthread/pthread.h (__sigsetjmp): Use pointer as first - argument. - -2004-11-03 Marcus Brinkmann <marcus@gnu.org> - - * sysdeps/generic/lowlevellock.h (__generic_mutex_unlock): Fix - order of arguments in invocation of atomic_add_zero. - -2005-01-26 Jakub Jelinek <jakub@redhat.com> - - [BZ #737] - * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S (__new_sem_trywait): - Use direct %gs segment access or, if NO_TLS_DIRECT_SEG_REFS, - at least gotntpoff relocation and addition. - * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S (sem_timedwait): - Likewise. - * sysdeps/unix/sysv/linux/i386/i486/sem_post.S (__new_sem_post): - Likewise. - * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S (__new_sem_wait): - Likewise. - -2005-01-06 Ulrich Drepper <drepper@redhat.com> - - * allocatestack.c (init_one_static_tls): Adjust initialization of DTV - entry for static tls deallocation fix. - * sysdeps/alpha/tls.h (dtv_t): Change pointer type to be struct which - also contains information whether the memory pointed to is static - TLS or not. - * sysdeps/i386/tls.h: Likewise. - * sysdeps/ia64/tls.h: Likewise. - * sysdeps/powerpc/tls.h: Likewise. - * sysdeps/s390/tls.h: Likewise. - * sysdeps/sh/tls.h: Likewise. - * sysdeps/sparc/tls.h: Likewise. - * sysdeps/x86_64/tls.h: Likewise. - -2004-12-27 Ulrich Drepper <drepper@redhat.com> - - * init.c (__pthread_initialize_minimal_internal): Use __sigemptyset. - -2004-12-21 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/i386/tls.h (CALL_THREAD_FCT): Maintain 16 byte alignment of - %esp. - * Makefile (tests): Add tst-align2. - * tst-align2.c: New test. - * sysdeps/i386/Makefile (CFLAGS-tst-align{,2}.c): Add - -mpreferred-stack-boundary=4. - -2004-12-18 Roland McGrath <roland@redhat.com> - - * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h: - New file removed withdrawn for the moment. - -2004-12-17 Richard Henderson <rth@redhat.com> - - * sysdeps/unix/sysv/linux/alpha/clone.S: New file. - * sysdeps/alpha/tcb-offsets.sym (TID_OFFSET): New. - -2004-12-16 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/powerpc/powerpc64/bits/local_lim.h: New file. - Increased PTHREAD_STACK_MIN. - - * tst-context1.c (stacks): Use bigger stack size. - -2004-12-16 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: New file. - * sysdeps/sparc/tcb-offsets.sym: Add TID. - -2004-12-15 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: New file. - * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: New file. - * sysdeps/s390/tcb-offsets.sym (TID): Add. - -2004-12-15 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: New file. - -2004-12-14 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/powerpc/tcb-offsets.sym: Add TID. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: New file. - - * tst-getpid1.c: If child crashes, report this first. Print which - signal. - -2004-12-09 Ulrich Drepper <drepper@redhat.com> - - * init.c (__pthread_initialize_minimal_internal): Also unblock - SIGSETXID. - -2004-12-01 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME, - _POSIX_THREAD_CPUTIME): Define to 0. - * sysdeps/pthread/timer_create.c (timer_create): Remove unused code - handling CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID. - * sysdeps/pthread/timer_routines.c (__timer_signal_thread_pclk, - __timer_signal_thread_tclk): Remove. - (init_module): Remove their initialization. - (thread_cleanup): Remove their cleanup assertions. - * sysdeps/pthread/posix-timer.h (__timer_signal_thread_pclk, - __timer_signal_thread_tclk): Remove. - * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Removed. - * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Removed. - * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Removed. - -2004-12-07 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/ia64/tcb-offsets.sym (TID): Add. - * sysdeps/unix/sysv/linux/ia64/clone2.S: New file. - - * Makefile (tests): Add tst-getpid2. - * tst-getpid1.c (TEST_CLONE_FLAGS): Define. - (do_test): Use it. Use __clone2 instead of clone on ia64. - * tst-getpid2.c: New test. - -2004-12-07 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/unix/sysv/linux/sh/clone.S: New file. - -2004-12-04 Ulrich Drepper <drepper@redhat.com> - - * Makefile (tests): Add tst-getpid1. - * tst-getpid1.c: New file. - * sysdeps/unix/sysv/linux/i386/clone.S: New file. - * sysdeps/unix/sysv/linux/x86_64/clone.S: New file. - -2004-12-02 Roland McGrath <roland@redhat.com> - - * Makefile (libpthread-nonshared): Variable removed. - ($(objpfx)libpthread_nonshared.a): Target removed. - ($(inst_libdir)/libpthread_nonshared.a): Likewise. - These are now handled by generic magic from - libpthread-static-only-routines being set. - -2004-11-27 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_PRIORITIZED_IO, - _POSIX2_CHAR_TERM, _POSIX_THREAD_PRIO_INHERIT, - _POSIX_THREAD_PRIO_PROTECT): Define. - * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise. - * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise. - * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise. - -2004-11-26 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_ADVISORY_INFO, - _POSIX_SPORADIC_SERVER, _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TRACE, - _POSIX_TRACE_EVENT_FILTER, _POSIX_TRACE_INHERIT, _POSIX_TRACE_LOG, - _POSIX_TYPED_MEMORY_OBJECTS, _POSIX_IPV6, _POSIX_RAW_SOCKETS): Define. - * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Likewise. - * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise. - * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h: Likewise. - -2004-11-24 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/x86_64/Makefile [nptl]: Define CFLAGS-pthread_create.c. - - * Makefile (libpthread-routines): Add pthread_setschedprio. - * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setschedprio. - * sysdeps/pthread/pthread.h: Declare pthread_setschedprio. - * pthread_setschedprio.c: New file. - -2004-11-20 Jakub Jelinek <jakub@redhat.com> - - * pthread_create.c (pthread_cancel): Add PTHREAD_STATIC_FN_REQUIRE. - * pthread_cancel.c (pthread_create): Likewise. - - * Makefile (libpthread-routines): Add vars. - * sysdeps/pthread/createthread.c (__pthread_multiple_threads): Remove. - * init.c (__default_stacksize, __is_smp): Remove. - * vars.c: New file. - * pthreadP.h (__find_thread_by_id): If !SHARED, add weak_function - and define a wrapper macro. - (PTHREAD_STATIC_FN_REQUIRE): Define. - * allocatestack.c (__find_thread_by_id): Undefine. - * pthread_create (__pthread_keys): Remove. - (pthread_mutex_lock, pthread_mutex_unlock, pthread_once, - pthread_key_create, pthread_setspecific, pthread_getspecific): Add - PTHREAD_STATIC_FN_REQUIRE. - -2004-11-18 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/sh/tls.h (DB_THREAD_SELF): Set the correct bias - parameter to REGISTER macro. - -2004-11-17 Roland McGrath <roland@redhat.com> - - * sysdeps/unix/sysv/linux/timer_routines.c (__start_helper_thread): - Make sure SIGCANCEL is blocked as well. - -2004-11-10 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/pthread/setxid.h: New file. - * sysdeps/pthread/pthread-functions.h (HAVE_PTR__NPTL_SETXID): Remove. - (struct xid_command): Add forward decl. - (struct pthread_functions): Change return type of __nptl_setxid hook - to int. - * pthreadP.h (__nptl_setxid): Change return type to int. - * allocatestack.c (__nptl_setxid): Call INTERNAL_SYSCALL_NCS in the - calling thread, return its return value and set errno on failure. - * descr.h (struct xid_command): Change id type to long array. - - * Makefile: Add rules to build and test tst-setuid1 and - tst-setuid1-static. - * tst-setuid1.c: New test. - * tst-setuid1-static.c: New test. - -2004-11-10 Jakub Jelinek <jakub@redhat.com> - - * Makefile (tests): Add tst-exit3. - * tst-exit3.c: New test. - -2004-11-09 Ulrich Drepper <drepper@redhat.com> - - * Makefile (tests): Add tst-exit2. - * tst-exit2.c: New file. - -2004-11-09 Roland McGrath <roland@redhat.com> - - [BZ #530] - * sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads - here, before calling clone. - * pthread_create.c (start_thread): Don't do it here. - -2004-11-02 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/smp.h: Include <errno.h>. - -2004-10-29 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): - Set ETIMEDOUT to errno when time is up. Tweak to avoid - assembler warning. - -2004-10-28 Jakub Jelinek <jakub@redhat.com> - - * pthread_create.c (__pthread_create_2_1): Avoid leaking stacks - if sched_priority is not between minprio and maxprio. - -2004-10-25 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S - (__pthread_cond_timedwait): Use clock_gettime syscall if exists. - - * sysdeps/unix/sysv/linux/sh/lowlevellock.S - (__lll_mutex_timedlock_wait): Fix a bad branch condition. - -2004-10-24 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/smp.h (is_smp_system): Use - not-cancelable I/O functions. - -2004-10-21 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/unix/sysv/linux/sh/lowlevellock.S - (__lll_mutex_timedlock_wait): If woken but cannot get the lock, - make sure 2 is stored in the futex and we looked at the old value. - Fix a few other problems to return the correct value. - -2004-10-14 Richard Henderson <rth@redhat.com> - - * sysdeps/alpha/tcb-offsets.sym (thread_offsetof): Redefine to - make gcc4 happy. - -2004-10-06 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/jmp-unwind.c: Include pthreadP.h instead - of pthread-functions.h and pthreaddef.h. - * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise. - - * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t): - Change __data.__nwaiters from int to unsigned int. - - * tst-clock2.c (do_test): Don't fail if _POSIX_THREAD_CPUTIME == 0 and - sysconf (_SC_THREAD_CPUTIME) returns negative value. - - * allocatestack.c (__find_thread_by_id): Move attribute_hidden - before return type. - - * sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h. - (JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA. - -2004-10-06 Ulrich Drepper <drepper@redhat.com> - - * tst-cancel4.c (tf_msgrcv): Check for failure in msgget. If the - test fails, remove message queue. - (tf_msgsnd): Likewise. - -2004-10-05 Jakub Jelinek <jakub@redhat.com> - - * tst-clock1.c: Change #ifdef to #if defined. - * tst-clock2.c: Likewise. - * tst-cond11.c: Likewise. - - * sysdeps/pthread/timer_create.c (timer_create): Use - defined _POSIX_CPUTIME && _POSIX_CPUTIME >= 0 instead of - defined CLOCK_PROCESS_CPUTIME_ID #ifs and similarly for - THREAD_CPUTIME. - -2004-10-05 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/x86_64/bits/posix_opt.h (_POSIX_CPUTIME, - _POSIX_THREAD_CPUTIME): Define to 0. - -2004-10-04 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/i386/bits/posix_opt.h: Define _POSIX_CPUTIME - and _POSIX_THREAD_CPUTIME to zero. - * sysdeps/unix/sysv/linux/ia64/bits/posix_opt.h: Likewise. - * tst-barrier2.c: Fix testing for POSIX feature. - * tst-clock1.c: Likewise. - * tst-clock2.c: Likewise. - * tst-cond11.c: Likewise. - * tst-cond4.c: Likewise. - * tst-cond6.c: Likewise. - * tst-flock2.c: Likewise. - * tst-mutex4.c: Likewise. - * tst-mutex9.c: Likewise. - * tst-rwlock12.c: Likewise. - * tst-rwlock4.c: Likewise. - * tst-signal1.c: Likewise. - * tst-spin2.c: Likewise. - * sysdeps/pthread/posix-timer.h: Likewise. - * sysdeps/pthread/timer_create.c: Likewise. - * sysdeps/pthread/timer_routines.c: Likewise. - -2004-10-01 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S - (__lll_mutex_timedlock_wait): Address futex correctly. - - * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S - (__lll_mutex_timedlock_wait): If woken but cannot get the lock, - make sure 2 is stored in the futex and we looked at the old value. - * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S - (__lll_mutex_timedlock_wait): Likewise. Fix a few other problems - which might very well made the code not working at all before. - [BZ #417] - -2004-09-28 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't - allow SIGSETXID to be sent. - * sysdeps/pthread/sigaction.c (__sigaction): Don't allow action - for SIGSETXID to be defined. - * sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Make sure - SIGSETXID cannot be blocked. - - * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t): - Add __extension__ to long long types. - * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise. - * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. - * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. - * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. - * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Likewise. - * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise. - * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise. - -2004-09-25 Ulrich Drepper <drepper@redhat.com> - - * descr.h (struct pthread): Add stopped_start field. - * sysdeps/pthread/createthread.c (create_thread): Set - start_stopped flag in descriptor for new thread appropriately. - * pthread_create.c (start_thread): Only take lock to be stopped on - startup if stopped_start flag says so. - -2004-09-24 Ulrich Drepper <drepper@redhat.com> - - * pthread_create.c (__pthread_create_2_1): Remember whether thread - is created detached and if yes, do not try to free the stack in case - the thread creation failed. - * sysdeps/pthread/createthread.c (do_clone): Free stack here if clone - call fails. Don't depend on INTERNAL_SYSCALL_ERRNO return zero in - case there has been no error. [BZ #405] - - * pthread_create.c (start_thread): Don't wait for scheduler data - etc to be set at the beginning of the function. The cancellation - infrastructure must have been set up. And enable async - cancellation before potentially going to sleep. [BZ #401] - -2004-09-20 Ulrich Drepper <drepper@redhat.com> - - * Versions: Remove exports for pthread_set*id_np functions. - * sysdeps/pthread/pthread.h: Remove pthread_set*id_np prototypes - for now. - * Makefile: Don't build pthread_set*id code for now. - -2004-09-19 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/allocrtsig.c: Allocate second signal for - internal use. - * allocatestack.c (__nptl_setxid): New function. - * descr.h (struct xid_command): Define type. - * init.c (pthread_functions): Add ptr__nptl_setxid initialization. - (sighandler_setxid): New function. - (__pthread_initialize_minimal): Register sighandler_setxid for - SIGCANCEL. - * pt-allocrtsig.c: Update comment. - * pthreadP.h: Define SIGSETXID. Declare __xidcmd variable. - Declare __nptl_setxid. - * sysdeps/pthread/pthread-functions.h: Add ptr__nptl_setxid. - * sysdeps/pthread/pthread.h: Declare pthread_setgid_np, - pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np, - pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np, - and pthread_setresuid_np. - * pthread_setgid_np.c: New file. - * pthread_setuid_np.c: New file. - * pthread_setegid_np.c: New file. - * pthread_seteuid_np.c: New file. - * pthread_setregid_np.c: New file. - * pthread_setreuid_np.c: New file. - * pthread_setresgid_np.c: New file. - * pthread_setresuid_np.c: New file. - * Versions [libpthread, GLIBC_2.3.4]: Add pthread_setgid_np, - pthread_setuid_np, pthread_setegid_np, pthread_seteuid_np, - pthread_setregid_np, pthread_setreuid_np, pthread_setresgid_np, - and pthread_setresuid_np. - * Makefile (libpthread-routines): Add pthread_setuid, pthread_seteuid, - pthread_setreuid, pthread_setresuid, pthread_setgid, pthread_setegid, - pthread_setregid, and pthread_setresgid. - -2004-09-18 Ulrich Drepper <drepper@redhat.com> - - * allocatestack.c (allocate_stack): Return EAGAIN instead of - ENOMEM when out of memory. - -2004-09-10 Roland McGrath <roland@redhat.com> - - [BZ #379] - * allocatestack.c (allocate_stack): Remove [__ASSUME_CLONE_STOPPED] - code, since we don't try to use the broken CLONE_STOPPED any more. - * pthread_create.c (start_thread): Likewise. - -2004-09-15 Richard Henderson <rth@redhat.com> - - * sysdeps/unix/sysv/linux/alpha/vfork.S: Use libc_hidden_def. - -2004-09-01 David Mosberger <davidm@hpl.hp.com> - - * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h - (__libc_unwind_longjmp): Delete macro and declare as function. - * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep_routines): Mention - __ia64_longjmp, sigstack_longjmp, and __sigstack_longjmp for - nptl directory. - * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: New file. - * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: New file. - * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: New file. - -2004-09-12 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/pthread/pthread.h: Make rwlock prototypes available also - for __USE_XOPEN2K. - * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Define rwlock - types also for __USE_XOPEN2K. - * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h: Likewise. - * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h: Likewise. - * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Likewise. - * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Likewise. - * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Likewise. - * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Likewise. - * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Likewise. - [BZ #320] - -2004-09-08 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/pthread/pthread.h - (PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP): Make safe for C++. - (PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP): Likewise. - (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP): Likewise. - (PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP): Likewise. - [BZ #375] - -2004-09-07 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Allow - PSEUDO to be used with . prefix. - - * sysdeps/unix/sysv/linux/alpha/pthread_once.c (__pthread_once): - Use atomic_increment instead of atomic_exchange_and_add. - * sysdeps/unix/sysv/linux/sparc/pthread_once.c (__pthread_once): - Likewise. - * sysdeps/unix/sysv/linux/ia64/pthread_once.c (__pthread_once): - Likewise. - * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once): - Likewise. - - * allocatestack.c (allocate_stack): Use atomic_increment_val - instead of atomic_exchange_and_add. - * sysdeps/unix/sysv/linux/sem_post.c (__new_sem_post): Likewise. - * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post): - Likewise. - * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait): - Likewise. - - * sysdeps/pthread/pthread.h (pthread_once): Remove __THROW since - the initialization function might throw. - -2005-09-05 Richard Henderson <rth@redhat.com> - - * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (SINGLE_THREAD_P): - Move definition inside libpthread, libc, librt check. Provide - definition for rtld. - -2004-09-02 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/alpha/jmpbuf-unwind.h: Define __libc_unwind_longjmp. - * sysdeps/i386/jmpbuf-unwind.h: Likewise - * sysdeps/powerpc/jmpbuf-unwind.h: Likewise. - * sysdeps/s390/jmpbuf-unwind.h: Likewise. - * sysdeps/sh/jmpbuf-unwind.h: Likewise. - * sysdeps/sparc/sparc32/jmpbuf-unwind.h: Likewise. - * sysdeps/unix/sysv/linux/ia64/jmpbuf-unwind.h: Likewise. - * sysdeps/x86_64/jmpbuf-unwind.h: Likewise. - * unwind.c: Use it. - - * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t): - Rename __data.__clock to __data.__nwaiters, make it unsigned int. - * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h (pthread_cond_t): - Likewise. - * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: - Decrement __nwaiters. If pthread_cond_destroy has been called and - this is the last waiter, signal pthread_cond_destroy caller and - avoid using the pthread_cond_t structure after unlock. - * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise. - * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. - Read clock type from the least significant bits of __nwaiters instead - of __clock. - * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. - * sysdeps/unix/sysv/linux/internaltypes.h: Define COND_CLOCK_BITS. - -2004-08-31 Jakub Jelinek <jakub@redhat.com> - - [BZ #342] - * Makefile (tests): Add tst-cond20 and tst-cond21. - * tst-cond20.c: New test. - * tst-cond21.c: New test. - * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h - (pthread_cond_t): Rename __data.__clock to __data.__nwaiters, make - it unsigned int. - * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t): - Likewise. - * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h - (pthread_cond_t): Likewise. - * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h (pthread_cond_t): - Likewise. - * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t): - Likewise. - * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h (pthread_cond_t): - Likewise. - * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_clock): Remove. - (cond_nwaiters): New. - (clock_bits): New. - * pthread_cond_destroy.c (__pthread_cond_destroy): Return EBUSY - if there are waiters not signalled yet. - Wait until all already signalled waiters wake up. - * sysdeps/pthread/pthread_cond_wait.c (__condvar_cleanup): Decrement - __nwaiters. If pthread_cond_destroy has been called and this is the - last waiter, signal pthread_cond_destroy caller and avoid using - the pthread_cond_t structure after unlock. - (__pthread_cond_wait): Increment __nwaiters in the beginning, - decrement it when leaving. If pthread_cond_destroy has been called - and this is the last waiter, signal pthread_cond_destroy caller. - * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait): - Likewise. Read clock type from the least significant bits of - __nwaiters instead of __clock. - * pthread_condattr_setclock.c (pthread_condattr_setclock): Check - whether clock ID can be encoded in COND_CLOCK_BITS bits. - * pthread_condattr_getclock.c (pthread_condattr_getclock): Decode - clock type just from the last COND_CLOCK_BITS bits of value. - * pthread_cond_init.c (__pthread_cond_init): Initialize __nwaiters - instead of __clock, just from second bit of condattr's value. - -2004-08-30 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h: Include - bits/wordsize.h. Make the header match i386 header when __WORDSIZE - != 64. - * sysdeps/unix/sysv/linux/x86_64/bits/semaphore.h: Likewise. - -2004-08-15 Roland McGrath <roland@frob.com> - - * pthread_atfork.c: Update copyright terms including special exception - for these trivial files, which are statically linked into executables - that use dynamic linking for the significant library code. - -2004-08-09 Jakub Jelinek <jakub@redhat.com> - - * DESIGN-rwlock.txt: Add decreasing of nr_readers_queued to - pthread_rwlock_rdlock. - * sysdeps/pthread/pthread_rwlock_rdlock (__pthread_rwlock_rdlock): - Decrease __nr_readers_queued after reacquiring lock. - * sysdeps/pthread/pthread_rwlock_timedrdlock - (pthread_rwlock_timedrdlock): Likewise. - Reported by Bob Cook <bobcook47@hotmail.com>. - -2004-08-11 Jakub Jelinek <jakub@redhat.com> - - * tst-rwlock14.c (tf): Read main thread handle from *ARG - before pthread_barrier_wait. - -2004-08-07 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: - Remove unnecessary exception handling data. - -2004-07-23 Jakub Jelinek <jakub@redhat.com> - - [BZ #284] - * sysdeps/pthread/pthread.h (pthread_getcpuclockid): Use __clockid_t - instead of clockid_t. - -2004-07-21 Roland McGrath <roland@redhat.com> - - * Makefile ($(objpfx)multidir.mk): Use $(make-target-directory). - -2004-07-19 Roland McGrath <roland@redhat.com> - - * tst-cancel4.c (tf_waitid): Use WEXITED flag bit if available. - -2004-07-02 Roland McGrath <roland@redhat.com> - - * configure: Don't exit. - -2004-07-14 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S - (__pthread_cond_timedwait): Check for invalid nanosecond in - timeout value. - -2004-07-07 Ulrich Drepper <drepper@redhat.com> - - * Makefile: Add rules to build and run tst-fini1. - * tst-fini1.c: New file. - * tst-fini1mod.c: New file. - -2004-07-05 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define NO_CANCELLATION - if no cancellation support is needed. - * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise. - * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise. - * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise. - * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise. - * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise. - * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise. - * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise. - - * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Define __NR_futex - only if not already defined. - -2004-07-05 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_unlock): Use - constraint "m" instead of "0" for futex. - - * shlib-versions: Add powerpc64-.*-linux.*. - -2004-07-04 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S - (pthread_rwlock_timedrdlock): Use cmpq instead of cmpl to check - for valid tv_nsec. - * tst-rwlock14.c (do_test): Test for invalid tv_nsec equal to - 1 billion and 64-bit tv_nsec which is valid when truncated to 32 - bits. - -2004-06-29 Roland McGrath <roland@redhat.com> - - * Banner: NPTL no longer has its own version number. - * Makefile (nptl-version): Variable removed. - * sysdeps/pthread/Makefile (CFLAGS-confstr.c): Set LIBPTHREAD_VERSION - using $(version), the glibc version number. - -2004-06-29 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/unix/sysv/linux/sh/pthread_once.S (__pthread_once): - Fix branch offset for a PLT entry. - * sysdeps/unix/sysv/linux/sh/sem_post.S (__new_sem_post): - Likewise. - * sysdeps/unix/sysv/linux/sh/sem_timedwait.S (sem_timedwait): - Likewise. - * sysdeps/unix/sysv/linux/sh/sem_trywait.S (__new_sem_trywait): - Likewise. - * sysdeps/unix/sysv/linux/sh/sem_wait.S (__new_sem_wait): - Likewise. - -2004-06-28 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/alpha/tcb-offsets.sym (MULTIPLE_THREADS_OFFSET): Define - unconditionally. - -2004-06-28 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/pthread/pthread_rwlock_timedwrlock.c - (pthread_rwlock_timedwrlock): Return EINVAL if tv_nsec is negative, - instead of tv_sec. - * sysdeps/pthread/pthread_rwlock_timedrdlock.c - (pthread_rwlock_timedrdlock): Likewise. - -2004-06-22 Jakub Jelinek <jakub@redhat.com> - - * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue): - Set __r7 to val, not mutex. - -2004-06-27 Ulrich Drepper <drepper@redhat.com> - - * Makefile: Add rules to build tst-rwlock14. - * tst-rwlock14.c: New file. - -2004-06-24 Boris Hu <boris.hu@intel.com> - - * sysdeps/pthread/pthread_rwlock_timedrdlock.c: Add timeout validation - check. - * sysdeps/pthread/pthread_rwlock_timedwrlock.c: Likewise. - -2004-06-19 Andreas Jaeger <aj@suse.de> - - * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Fix - assembler in last patch. - -2004-06-17 Ulrich Drepper <drepper@redhat.com> - - * sysdeps/pthread/pthread_cond_timedwait.c - (__pthread_cond_timedwait): Also check for negativ nanoseconds. - * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S - (__pthread_cond_timedwait): Check for invalid nanosecond in - timeout value. - * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise. - * tst-cond19.c: New file. - * Makefile: Add rules to build and run tst-cond19. - -2004-06-15 Steven Munroe <sjmunroe@us.ibm.com> - - * tst-context1.c (GUARD_PATTERN): Defined. - (tst_context_t): Define struct containing ucontext_t & guard words. - (ctx): Declare as an array of tst_context_t. - (fct): Verify uc_link & guard words are still valid. - (tf): Initialize guard words in ctx. Adjust ctx refs for new struct. - -2004-06-13 Kaz Kojima <kkojima@rr.iij4u.or.jp> - - * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h (pthread_cond_t): - Add __data.__futex field, reshuffle __data.__clock. - * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S - (__pthread_cond_signal): Increment __futex at the same time as - __wakeup_seq or __total_seq. Pass address of __futex instead of - address of low 32-bits of __wakeup_seq to futex syscall. - * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S - (__pthread_cond_wait): Likewise. Pass __futex value from before - releasing internal lock to FUTEX_WAIT. - * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S - (__pthread_cond_timedwait): Likewise. - * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S - (FUTEX_CMP_REQUEUE): Define. - (__pthread_cond_broadcast): Set __futex to 2 * __total_seq. - Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE. - Pass __futex value from before the unlock and __futex address instead - of address of low 32-bits of __wakeup_seq to futex syscall. - Fallback to FUTEX_WAKE all on any errors. - -2004-06-08 Jakub Jelinek <jakub@redhat.com> - - * pthread_mutexattr_getpshared.c (pthread_mutex_getpshared): Fix - comment typo. - * pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise. - * pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise. - * pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise. - * pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared): - Likewise. Reported by Bob Cook <bobcook47@hotmail.com>. - -2004-06-11 Martin Schwidefsky <schwidefsky@de.ibm.com> - - * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_compare_and_swap): - Add memory clobber to inline assembly. - (__lll_mutex_trylock): Likewise. - (__lll_mutex_cond_trylock): Likewise. - -2004-06-07 Martin Schwidefsky <schwidefsky@de.ibm.com> - - * sysdeps/unix/sysv/linux/s390/lowlevellock.h (lll_futex_requeue): - Pass val argument as 6th system call argument in %r7. - -2004-05-21 Jakub Jelinek <jakub@redhat.com> - - * Makefile (tests): Add tst-cond16. - * sysdeps/unix/sysv/linux/lowlevelcond.sym (cond_futex): Add. - * pthread_cond_init.c (__pthread_cond_init): Clear __data.__futex. - * sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h (pthread_cond_t): - Add __data.__futex field, reshuffle __data.__clock. - * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S - (__pthread_cond_signal): Increment __futex at the same time as - __wakeup_seq or __total_seq. Pass address of __futex instead of - address of low 32-bits of __wakeup_seq to futex syscall. - * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S - (__pthread_cond_wait): Likewise. Pass __futex value from before - releasing internal lock to FUTEX_WAIT. - * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S - (__pthread_cond_timedwait): Likewise. - * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S - (FUTEX_CMP_REQUEUE): Define. - (__pthread_cond_broadcast): Set __futex to 2 * __total_seq. - Use FUTEX_CMP_REQUEUE operation instead of FUTEX_REQUEUE. - Pass __futex value from before the unlock and __futex address instead - of address of low 32-bits of __wakeup_seq to futex syscall. - Fallback to FUTEX_WAKE all on any errors. - * sysdeps/unix/sysv/linux/alpha/lowlevellock.h (FUTEX_CMP_REQUEUE): - Define. - (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE - internally. Return non-zero if error, zero if success. - * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t): - Add __data.__futex field, reshuffle __data.__clock. - * sysdeps/unix/sysv/linux/s390/lowlevellock.h (FUTEX_CMP_REQUEUE): - Define. - (lll_futex_requeue): Add val argument, return 1 unconditionally - for the time being. - * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t): - Add __data.__futex field, reshuffle __data.__clock. - * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (FUTEX_CMP_REQUEUE): - Define. - (lll_futex_requeue): Add val argument, use FUTEX_CMP_REQUEUE - internally. Return non-zero if error, zero if success. - * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h - (pthread_cond_t): Add __data.__f |