aboutsummaryrefslogtreecommitdiff
path: root/nptl
AgeCommit message (Collapse)Author
2003-02-17Update.Ulrich Drepper
* tst-attr1.c (do_test): Add tests for pthread_setcanceltype, pthread_setcancelstate, and pthread_rwlock_setpshared.
2003-02-16Update.Ulrich Drepper
* tst-cancel7.c (do_test): Make sure the pid file exists before canceling the thread. * libc-cancellation.c (__libc_enable_asynccancel): Rewrite to avoid
2003-02-16Update.Ulrich Drepper
* tst-rwlock6.c: More pthread_rwlock_timedwrlock and pthread_rwlock_timedrdlock tests. * tst-rwlock7.c: More pthread_rwlock_timedwrlock tests. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: Check for invalid tv_nsec field. * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: Likewise. * pthread_mutex_trylock.c (__pthread_mutex_trylock): Protect recursive mutex of overflow. * tst-attr1.c (do_test): Add test for pthread_mutexattr_setpshared.
2003-02-16Update.Ulrich Drepper
2003-02-16 Ulrich Drepper <drepper@redhat.com> * libc-cancellation.c (__libc_enable_asynccancel): Rwrite to avoid going into an endless loop. * Makefile (tests): Add tst-cancel9. * tst-cancel9.c: New file. * pthread_cancel.c (pthread_cancel): Use the result of __pthread_kill.
2003-02-16(pthread_cancel): Use the result of __pthread_kill.Ulrich Drepper
2003-02-15To-Do list for testing.Ulrich Drepper
2003-02-15Update.Ulrich Drepper
* tst-mutex5.c (do_test): Add more timedlock tests.
2003-02-15Update.Ulrich Drepper
* tst-mutex2.c: Tests of trylock and unlock with ERROR mutexes.
2003-02-15Update.Ulrich Drepper
* tst-mutex3.c (do_test): Add tests for trylock with RECURSIVE mutexes.
2003-02-15Update.Ulrich Drepper
* sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Don't use INLINE_SYSCALL. Error number is returned, not -1.
2003-02-15Update.Ulrich Drepper
* pthreadP.h: Mark declarations of __find_in_stack_list, __free_tcb, and __deallocate_stack with internal_function. * pthread_create.c: Adjust definitions appropriately. * allocatestack.c: Likewise. * pthread_join.c: Add one more __builtin_expect. * pthread_timedjoin.c: Likewise. * pthread_getspecific.c (__pthread_getspecific): Clear data->data not data of sequence number does not match. Add one __builtin_expect.
2003-02-15Update.Ulrich Drepper
* Makefile (tests): Add tst-clock1. * tst-clock1.c: New file.
2003-02-15Update.Ulrich Drepper
2003-02-15 Ulrich Drepper <drepper@redhat.com> * pthread_setconcurrency.c (pthread_setconcurrency): Fail for negative arguments. * Makefile (tests): Add tst-basic5. * tst-basic5.c: New file. after thread is done. If then zero, call exit(0).
2003-02-15Update.Ulrich Drepper
* math/libm-test.inc (nextafter_test): New test, but disabled due to gcc bug.
2003-02-14Update.Ulrich Drepper
2003-02-14 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/libc-start.c [HAVE_PTR_NTHREADS]: Decrement thread counter and only call __exit_thread if this is not the last thread.
2003-02-14Update.Ulrich Drepper
* descr.h: Define CANCELING_BIT and CANCELING_BITMASK. Introduce after CANCELTYPE_BIT, move the other bits up. Update CANCEL_RESTMASK. * init.c (sigcancel_handler): Also set CANCELING_BITMASK bit in newval. * pthread_cancel.c (pthread_cancel): Likewise. Also set CANCELING_BIT if asynchronous canceling is enabled. * pthread_join.c (pthread_join): When recognizing circular joins, take into account the other thread might be already canceled. * Makefile (tests): Add tst-join5. * tst-join5.c: New file.
2003-02-14Update.Ulrich Drepper
2003-02-14 Ulrich Drepper <drepper@redhat.com> * Makefile (tests): Add tst-join4. * tst-join4.c: New file. 2003-02-13 Ulrich Drepper <drepper@redhat.com> * tst-cond4.c (main): Add test of pthread_attr_getpshared.
2003-02-14Update.Ulrich Drepper
2003-02-13 Jakub Jelinek <jakub@redhat.com> * sysdeps/alpha/dl-machine.h (elf_machine_rela): Add instead of subtracting map->l_tls_offset.
2003-02-14Update.Ulrich Drepper
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix handling of cancellation and failung pthread_mutex_unlock call. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. * Makefile (tests): Add tst-cond8 and tst-cond9. * tst-cond8.c: New file. * tst-cond9.c: New file.
2003-02-14Update.Ulrich Drepper
* tst-cond7.c (do_test): Unlock the mutex before canceling the thread. * sysdeps/pthread/pthread.h: Add missing initializers. Protect non-standard initializers with __USE_GNU.
2003-02-13Update.Ulrich Drepper
2003-02-13 Ulrich Drepper <drepper@redhat.com> * Makefile (tests): Add tst-cleanup3. * tst-cleanup3.c: New file.
2003-02-13Update.Ulrich Drepper
* Makefile (tests): Add tst-attr1 and tst-attr2. * tst-attr1.c: New file. * tst-attr2.c: New file.
2003-02-13Update.Ulrich Drepper
* Makefile: Add rules to build and run tst-atfork2 test. * tst-atfork2.c: New file. * tst-atfork2mod.c: New file. * sysdeps/unix/sysv/linux/unregister-atfork.c (__unregister_atfork): Free the memory allocated for the handlers after removing them from the lists. * sysdeps/unix/sysv/linux/register-atfork.c: Define memeory cleanup function. * tst-atfork1.c (do_test): Wait for the child we forked. Report error in child. * sysdeps/unix/sysv/linux/fork.c (__libc_fork): Fix comment.
2003-02-12Update.Ulrich Drepper
* sysdeps/generic/bits/confname.h: Define _CS_GNU_LIBC_VERSION and _CS_GNU_LIBPTHREAD_VERSION. * posix/conststr.c: Handle these new values. * posix/getconf.c: Likewise. * io/ftw.c (ftw_startup): When using FTW_CHDIR, always remember
2003-02-11Update.Ulrich Drepper
2003-02-10 Ulrich Drepper <drepper@redhat.com> * elf/Makefile (check-textrel-CFLAGS): Pass _XOPEN_SOURCE and _BSD_SOURCE to compiler. * elf/check-textrel.c (SWAP): Add parenthesis to avoid warnings. Patches by Alan Modra.
2003-02-11Update.Ulrich Drepper
* Makefile (tests): Add tst-cancel8. * tst-cancel8.c: New file.
2003-02-10Update.Ulrich Drepper
* Makefile (tests): Add tst-once3 and tst-once4. * tst-once4.c: New file.
2003-02-10Update.Ulrich Drepper
2003-02-10 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/pthread_once.S (clear_once_control): Fix clearing of control variable. * Makefile (tests): Add tst-once3. * tst-once3.c: New file.
2003-02-10Update.Ulrich Drepper
2003-02-08 kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/sh/Makefile: New file. * sysdeps/sh/bits/atomic.h: New file. * sysdeps/sh/pthread_spin_init.c: New file. * sysdeps/sh/pthread_spin_lock.c: New file. * sysdeps/sh/pthread_spin_trylock.S: New file. * sysdeps/sh/pthread_spin_unlock.S: New file. * sysdeps/sh/pthreaddef.h: New file. * sysdeps/sh/tcb-offsets.sym: New file. * sysdeps/sh/td_ta_map_lwp2thr.c: New file. * sysdeps/sh/tls.h: New file. * sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: New file. * sysdeps/unix/sysv/linux/sh/bits/semaphore.h: New file. * sysdeps/unix/sysv/linux/sh/createthread.c: New file. * sysdeps/unix/sysv/linux/sh/fork.c: New file. * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: New file. * sysdeps/unix/sysv/linux/sh/libc-lowlevelmutex.S: New file. * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: New file. * sysdeps/unix/sysv/linux/sh/lowlevelcond.h: New file. * sysdeps/unix/sysv/linux/sh/lowlevellock.S: New file. * sysdeps/unix/sysv/linux/sh/lowlevellock.h: New file. * sysdeps/unix/sysv/linux/sh/lowlevelmutex.S: New file. * sysdeps/unix/sysv/linux/sh/lowlevelrwlock.h: New file. * sysdeps/unix/sysv/linux/sh/pt-initfini.c: New file. * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file. * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: New file. * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: New file. * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: New file. * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: New file. * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: New file. * sysdeps/unix/sysv/linux/sh/pthread_once.S: New file. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: New file. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: New file. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: New file. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: New file. * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: New file. * sysdeps/unix/sysv/linux/sh/sem_post.S: New file. * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: New file. * sysdeps/unix/sysv/linux/sh/sem_trywait.S: New file. * sysdeps/unix/sysv/linux/sh/sem_wait.S: New file. * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: New file.
2003-02-10Makefile for SH.Ulrich Drepper
2003-02-08Update.Ulrich Drepper
2003-02-08 Ulrich Drepper <drepper@redhat.com> * tst-cond2.c: Rearrange code to not rely on behavior undefined according to POSIX. * tst-basic2.c (do_test): Lock mutex before creating the thread.
2003-02-07Update.Ulrich Drepper
* sysdeps/x86_64/tls.h: Remove unnecessary macros, left over from x86. (TLS_GET_FS): New #define. (TLS_SET_FS): New #define. Correct value of __NR_set_thread_area.
2003-02-07Update.Ulrich Drepper
2003-02-07 Ulrich Drepper <drepper@redhat.com> * sysdeps/x86_64/td_ta_map_lwp2thr.c: New file.
2003-02-07Update.Ulrich Drepper
2003-02-07 Jakub Jelinek <jakub@redhat.com> * tst-popen2.c: New test. * Makefile (tests): Add tst-popen2. * sysdeps/unix/sysv/linux/alpha/vfork.S (__vfork): Branch to __fork whenever libpthread.so is loaded. * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork): Likewise. * sysdeps/unix/sysv/linux/ia64/vfork.S (__vfork): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S (__vfork): Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S (__vfork): Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S (__vfork): Likewise. * sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Likewise.
2003-02-06Update.Ulrich Drepper
2002-11-24 Robert Love <rml@tech9.net> * posix/sched.h: Second parameter of sched_setaffinity and sched_getaffinity is `unsigned int', not `unsigned long'. * sysdeps/generic/sched_setaffinity.c: Likewise. * sysdeps/generic/sched_getaffinity.c: Likewise. Reported by John Levon <levon@movementarian.org>.
2003-02-06Update.Ulrich Drepper
2003-02-06 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Remove wrong but inactive generalization. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise. Minor optimization, remove one instruction. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
2003-02-05Update.Ulrich Drepper
* sysdeps/unix/sysv/linux/posix_fadvise.c: New file. * sysdeps/unix/sysv/linux/syscalls.list: Add posix_fadvise64 syscall. * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2003-02-05Update.Ulrich Drepper
2003-02-05 Ulrich Drepper <drepper@redhat.com> * sysdeps/pthread/bits/libc-lock.h (__libc_once): Set control variable for non-libpthread case to the same value the pthread_once function would use.
2003-02-05Update.Ulrich Drepper
* atomic.h: Add a couple more default implementations. (atomic_compare_and_exchange_acq): Use
2003-02-05Update.Ulrich Drepper
* atomic.h (atomic_compare_and_exchange_acq): Use __arch_compare_and_exchange_32_acq in return value definition. It always exists. (atomic_bit_set): Renamed from atomic_set_bit.
2003-02-05Update.Ulrich Drepper
* atomic.h (atomic_bit_set): Renamed from atomic_set_bit. Add missing atomic_ prefixes.
2003-02-05Update.Ulrich Drepper
* atomic.h: Add missing atomic_ prefixes.
2003-02-05Update.Ulrich Drepper
2003-02-04 Ulrich Drepper <drepper@redhat.com> * iconvdata/Makefile: Add rules to build and run bug-iconv3. * iconvdata/bug-iconv3.c: New file.
2003-02-04(allocate_stack): Use __getpagesize instead of __sysconf to determine pagesize.Ulrich Drepper
2003-02-03Fix typo.Ulrich Drepper
(__lll_lock_wait): Add branch prediction.
2003-02-03Update.Ulrich Drepper
2003-01-31 Steven Munroe <sjmunroe@us.ibm.com> * sysdeps/unix/sysv/linux/powerpc/powerpc64/fe_nomask.c: Include kernel-features.h * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise. * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
2003-02-03Update.Ulrich Drepper
2003-02-03 Ulrich Drepper <drepper@redhat.com> * allocatestack.c (allocate_stack): Implement coloring of the allocated stack memory. Rename pagesize to pagesize_m1. It's the size minus one. Adjust users.
2003-02-03Update.Ulrich Drepper
* allocatestack.c: Improve comment throughout the file.
2003-02-03Update.Ulrich Drepper
2003-02-02 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S (__lll_lock_wait): Add branch predicition. * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S (__lll_lock_wait): Likewise. (lll_unlock_wake_cb): Removed.
2003-02-01Update.Ulrich Drepper
2003-01-31 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/bits/posix_opt.h: Remove _POSIX_THREAD_PRIORITY_SCHEDULING.