summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-02Remove 'contributed' lines, the names will show up in ChangeLogHEADmasterSamuel Thibault
2018-04-02Add copyright notices where missingSamuel Thibault
2018-04-02Add first-line comment to files lacking itSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-28Fix coding styleSamuel Thibault
2018-03-27Fix coding styleSamuel Thibault
2018-03-27Fix coding styleSamuel Thibault
2018-03-25Fix crash on raise()Samuel Thibault
* Versions (libpthread): Add __pthread_self.
2018-03-19Move bits/thread-specific.h to bits/types/__pthread_key.hSamuel Thibault
* sysdeps/pthread/bits/thread-specific.h: Move file to... * sysdeps/pthread/bits/types/__pthread_key.h: ... here. * Makefile (headers): Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise.
2018-03-19Move bits/thread-attr.h to bits/types/struct___pthread_attr.hSamuel Thibault
* sysdeps/pthread/bits/thread-attr.h: Move file to... * sysdeps/pthread/bits/types/struct___pthread_attr.h: ... here. * Makefile (headers): Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise.
2018-03-19Move bits/rwlock.h to bits/types/struct___pthread_rwlock.hSamuel Thibault
* sysdeps/pthread/bits/rwlock.h: Move file to... * sysdeps/pthread/bits/types/struct___pthread_rwlock.h: ... here. * Makefile (headers): Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise.
2018-03-19Move bits/rwlock-attr.h to bits/types/struct___pthread_rwlockattr.hSamuel Thibault
* sysdeps/pthread/bits/rwlock-attr.h: Move file to... * sysdeps/pthread/bits/types/struct___pthread_rwlockattr.h: ... here. * Makefile (headers): Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise.
2018-03-19Move bits/once.h to bits/types/struct___pthread_once.hSamuel Thibault
* sysdeps/pthread/bits/once.h: Move file to... * sysdeps/pthread/bits/types/struct___pthread_once.h: ... here. * Makefile (headers): Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise.
2018-03-19Move bits/mutex-attr.h to bits/types/struct___pthread_mutexattr.hSamuel Thibault
* sysdeps/pthread/bits/mutex-attr.h: Move file to... * sysdeps/pthread/bits/types/struct___pthread_mutexattr.h: ... here. * Makefile (headers): Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/mach/hurd/bits/types/struct___pthread_mutex.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise. * sysdeps/pthread/bits/types/struct___pthread_mutex.h: Likewise.
2018-03-19Move bits/condition.h to bits/types/struct___pthread_cond.hSamuel Thibault
* sysdeps/pthread/bits/condition.h: Move file to... * sysdeps/pthread/bits/types/struct___pthread_cond.h: ... here. * Makefile (headers): Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise.
2018-03-19Move bits/condition-attr.h to bits/types/struct___pthread_condattr.hSamuel Thibault
* sysdeps/pthread/bits/condition-attr.h: Move file to... * sysdeps/pthread/bits/types/struct___pthread_condattr.h: ... here. * Makefile (headers): Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise.
2018-03-19Move bits/barrier.h to bits/types/struct___pthread_barrier.hSamuel Thibault
* sysdeps/pthread/bits/barrier.h: Move file to... * sysdeps/pthread/bits/types/struct___pthread_barrier.h: ... here. * Makefile (headers): Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise.
2018-03-19Move bits/barrier-attr.h to bits/types/struct___pthread_barrierattr.hSamuel Thibault
* sysdeps/pthread/bits/barrier-attr.h: Move file to... * sysdeps/pthread/bits/types/struct___pthread_barrierattr.h: ... here. * Makefile (headers): Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise.
2018-03-19Move bits/mutex.h to bits/types/struct___pthread_mutex.hSamuel Thibault
* sysdeps/mach/hurd/bits/mutex.h: Move file to... * sysdeps/mach/hurd/bits/types/struct___pthread_mutex.h: ... here. * sysdeps/pthread/bits/mutex.h: Move file to... * sysdeps/pthread/bits/types/struct___pthread_mutex.h: ... here. * Makefile (headers): Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise.
2018-03-19Fix commentSamuel Thibault
2018-03-19Move bits/spin-lock.h to bits/types/__pthread_spinlock_t.hSamuel Thibault
* sysdeps/mach/bits/spin-lock.h: Move file to... * sysdeps/mach/bits/types/__pthread_spinlock_t.h: ... here. * Makefile (headers): Move bits/spin-lock.h to bits/types/__pthread_spinlock_t.h. * pthread/pt-spin-inlines.c: Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/mach/bits/spin-lock-inline.h: Likewise. * sysdeps/pthread/bits/barrier.h: Likewise. * sysdeps/pthread/bits/condition.h: Likewise. * sysdeps/pthread/bits/mutex.h: Likewise. * sysdeps/pthread/bits/once.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise. * sysdeps/pthread/bits/rwlock.h: Likewise. * sysdeps/pthread/bits/semaphore.h: Likewise.
2018-03-19Remove ENABLE_TLS defineSamuel Thibault
* Makefile (CPPFLAGS): Remove -DENABLE_TLS. * pthread/pt-alloc.c: Remove ENABLE_TLS condition. * pthread/pt-create.c: Likewise. * pthread/pt-internal.h: Likewise.
2018-03-19Synchronize semaphore.h with glibcSamuel Thibault
* sysdeps/pthread/semaphore.h (SEM_FAILED, sem_t): Move definitions to... * sysdeps/pthread/bits/semaphore.h: ... this file.
2018-03-19Avoid installing private pthread.hSamuel Thibault
It was actually by mistake that sysdeps/pthread/pthread.h was getting installed and that we'd have an include/pthread/pthread.h. Let's simplify this. * sysdeps/pthread/pthread.h: Move file content to... * ./sysdeps/pthread/pthreadP.h: ... here. * sysdeps/generic/pthread/pthread.h: Move file to... * sysdeps/generic/pthread.h: ... here. * Makefile (headers): Remove pthread/pthread.h. * Makeconfig (includes): Remove -I$(..)htl/include. * pthread/cthreads-compat.c: Include <pthreadP.h> instead of <pthread.h>
2018-03-19Move pthread/pthreadtypes.h to bits/pthreadtypes.hSamuel Thibault
* Makefile (headers): Remove pthread/pthreadtypes.h. * sysdeps/generic/pthread/pthread.h: Include <bits/pthreadtypes.h> instead of <pthread/pthreadtypes.h>. * sysdeps/generic/timer_routines.h: Likewise. * sysdeps/pthread/pthread/pthreadtypes.h: Move file content to... * sysdeps/pthread/bits/pthreadtypes.h: ... this file. Do not include <pthread/pthreadtypes.h>
2018-03-19Remove bits/pt-atomic.hSamuel Thibault
* pthread/pt-create.c: Include <atomic.h> instead of <bits/pt-atomic.h>. (__pthread_total): Change type from __atomic_t to unsigned int. (__pthread_create_internal): Use atomic_increment and atomic_decrement instead of __atomic_inc and __atomic_dec. * pthread/pt-dealloc.c: Include <atomic.h> instead of <bits/pt-atomic.h>. (__pthread_dealloc): Use atomic_decrement_and_test instead of __atomic_dec_and_test. * pthread/pt-exit.c: Include <atomic.h> instead of <bits/pt-atomic.h>. (__pthread_exit): Use atomic_decrement_and_test instead of __atomic_dec_and_test. * pthread/pt-internal.h: Include <atomic.h> instead of <bits/pt-atomic.h>. (struct __pthread): Use unsigned int type for nr_refs field instead of __atomic_t. (__pthread_total): Use unsigned int type instead of nr_refs.
2018-03-19Remove bits/memory.hSamuel Thibault
* sysdeps/generic/pt-once.c: Include <atomic.h> instead of <bits/memory.h> (__pthread_once): Use atomic_full_barrier instead of __memory_barrier. * sysdeps/i386/bits/memory.h: Remove file.
2018-03-18Remove now-useless fileSamuel Thibault
* not-in-libc.h: Remove file.
2018-03-18Use sched_param for nowSamuel Thibault
This exposes more structure names than desired, but we can see how to fix that another way later. * sysdeps/pthread/bits/thread-attr.h (__need_schedparam): Do not define macro. (struct __pthread_attr): Make __schedparam field struct sched_param instead of struct __sched_param. * sysdeps/generic/pt-attr.c (__pthread_default_attr): Use sched_priority instead of __sched_priority. * sysdeps/generic/pt-getschedparam.c (__pthread_getschedparam): Likewise. * sysdeps/generic/timer_routines.h (thread_attr_compare): Likewise.
2018-03-18Remove __need_pthread_mutex / __pthread_mutex_definedSamuel Thibault
We do not actually use them. * sysdeps/mach/hurd/bits/mutex.h: Always include content. * sysdeps/pthread/bits/mutex.h: Always include content.
2018-03-18Fix getting typesSamuel Thibault
* pthread/pt-internal.h: Include <bits/types/res_state.h> instead of defining __need_res_state and including <resolv.h>. * sysdeps/pthread/semaphore.h [__USE_XOPEN2K]: Include <bits/types/struct_timespec.h> instead of defining __need_timespec and including <time.h>.
2018-03-18Remove unused __pthread_init hookSamuel Thibault
Since nothing uses it we get link failures. * pthread/pt-initialize.c (__pthread_init): Remove hook. (___pthread_init): Do not call __pthread_init hook.
2018-03-03Fix copyright years and addressesAmos Jeffries
* sysdeps/mach/hurd/bits/mutex.h: reformat copyright blurb intro to match other files * replace Free Software Foundation address using gnu.org URL from upstream glibc copyright blurbs. * apply upstream glibc scripts/update-copyrights * update copyright date syntax per upstream glibc request
2018-03-03Increase default thread stack to 8MiBSamuel Thibault
Linux' default is 8MiB and applications sometimes assume as much. * sysdeps/mach/hurd/pt-sysdep.h (PTHREAD_STACK_DEFAULT): Set macro to 8MiB.
2018-02-27Drop non-glibc build systemSamuel Thibault
* Makefile: Do not define IN_GLIBC. (elf): Do not define. [IN_GLIBC == no]: Remove support.
2018-02-27Drop deprecated glibc optionSamuel Thibault
* lockfile.c: Do not use _STDIO_USES_IOSTREAM condition any more.
2018-02-24Fix pthread_mutex_trylock return valueSamuel Thibault
* sysdeps/mach/hurd/pt-mutex-trylock.c (__pthread_mutex_trylock): Return EBUSY on failure instead of -1.
2018-02-18Add thread_attr_compare helper functionSamuel Thibault
* sysdeps/generic/timer_routines.h: New file.
2018-01-28Fix versions of forward symbolsSamuel Thibault
* Versions (pthread_attr_destroy, pthread_attr_getdetachstate, pthread_attr_getinheritsched, pthread_attr_getschedparam, pthread_attr_getschedpolicy, pthread_attr_getscope, pthread_attr_init, pthread_attr_setdetachstate, pthread_attr_setinheritsched, pthread_attr_setschedparam, pthread_attr_setschedpolicy, pthread_attr_setscope, pthread_condattr_destroy, pthread_condattr_init, pthread_cond_broadcast, pthread_cond_destroy, pthread_cond_init, pthread_cond_signal, pthread_cond_wait, pthread_cond_timedwait, pthread_equal, pthread_exit, pthread_getschedparam, pthread_setschedparam, pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock, pthread_self, pthread_setcancelstate, pthread_setcanceltype, __pthread_get_cleanup_stack): Move to GLIBC_2.21.