Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
* 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.
|
|
|
|
* 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.
|
|
* sysdeps/pthread/semaphore.h (SEM_FAILED, sem_t): Move definitions
to...
* sysdeps/pthread/bits/semaphore.h: ... this file.
|
|
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>
|
|
* 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>
|
|
* 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.
|
|
* 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.
|
|
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.
|
|
We do not actually use them.
* sysdeps/mach/hurd/bits/mutex.h: Always include content.
* sysdeps/pthread/bits/mutex.h: Always include content.
|
|
* 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>.
|
|
* 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
|
|
Linux' default is 8MiB and applications sometimes assume as much.
* sysdeps/mach/hurd/pt-sysdep.h (PTHREAD_STACK_DEFAULT): Set macro to
8MiB.
|
|
* sysdeps/mach/hurd/pt-mutex-trylock.c (__pthread_mutex_trylock): Return
EBUSY on failure instead of -1.
|
|
* sysdeps/generic/timer_routines.h: New file.
|
|
Now that libpthread is built along glibc, it should follow that
versioning anyway.
* Makefile (pthread-version): Do not define.
* sysdeps/pthread/Makefile [$(subdir) == posix] (CFLAGS-confstr.c): Set
-DLIBPTHREAD_VERSION='"HTL $(version)"'.
|
|
* sysdeps/pthread/pthread-functions.h (struct pthread_functions): Rename
ptr_pthread_key_create, ptr_pthread_getspecific, ptr_pthread_setspecific
fields into ptr___pthread_key_create, ptr___pthread_getspecific,
ptr___pthread_setspecific
* pthread/pt-initialize.c (struct pthread_functions): Likewise.
* sysdeps/pthread/libc-lockP.h (__libc_key_t): Define type.
[IS_IN (libpthread)] (PTFAVAIL, __libc_ptf_call,
__libc_ptf_call_always): Directly call pthread functions.
(__libc_key_create): Define macro to calling __pthread_key_create.
(__libc_getspecific): Define macro to calling __pthread_getspecific.
(__libc_setspecific): Define macro to calling __pthread_setspecific.
|
|
* sysdeps/pthread/flockfile.c: Do not include <libio.h>
* sysdeps/pthread/funlockfile.c: Likewise.
|
|
* sysdeps/mach/hurd/pt-sigstate-init.c: Include <hurd/signal.h>
|
|
* sysdeps/generic/pthread/pthread.h (pthread_mutexattr_getrobust,
pthread_mutexattr_getrobust_np, pthread_mutexattr_setrobust,
pthread_mutexattr_setrobust_np, pthread_rwlockattr_getkind_np,
pthread_rwlockattr_setkind_np): Add prototypes.
|
|
|
|
* sysdeps/pthread/Versions (__mach_port_allocate): Add symbol.
|
|
to cope with the removal of add-ons mechanism.
* pthread/Versions: Move to sysdeps/pthread/.
|
|
to cope with the removal of add-ons mechanism.
* include/pthread/pthread.h: rename to sysdeps/generic/pthread/pthread.h
* include/pthread/pthreadtypes.h: rename to
sysdeps/generic/pthread/pthreadtypes.h
* pthreadP.h: rename to sysdeps/pthread/pthreadP.h
|
|
Recent glibc does not define it any more.
* sysdeps/pthread/pthread-functions.h (__libc_pthread_init): Do not
qualify with internal_function.
|
|
Now that it does not use libihash any more, it is not hurd-dependent any
more.
* sysdeps/hurd/pt-destroy-specific.c: Move to sysdeps/generic/pt-destroy-specific.c
* sysdeps/hurd/pt-key-create.c: Move to sysdeps/generic/pt-key-create.c.
* sysdeps/hurd/pt-key-delete.c: Move to sysdeps/generic/pt-key-delete.c.
* sysdeps/hurd/pt-key.h: Move to sysdeps/generic/pt-key.h.
* sysdeps/hurd/pt-getspecific.c: Move to
sysdeps/generic/pt-getspecific.c.
* sysdeps/hurd/pt-init-specific.c: Move to
sysdeps/generic/pt-init-specific.c.
* sysdeps/hurd/pt-setspecific.c: Move to
sysdeps/generic/pt-setspecific.c.
|
|
* Makefile (libpthread-routines): Add pt-mutexattr-getrobust
pt-mutexattr-setrobust pt-mutex-consistent.
* include/pthread/pthreadtypes.h (__pthread_mutex_robustness): New enum,
containing __PTHREAD_MUTEX_STALLED, __PTHREAD_MUTEX_ROBUST.
* include/pthread/pthread.h [__USE_XOPEN2K] (PTHREAD_MUTEX_STALLED,
PTHREAD_MUTEX_ROBUST): New macros.
[__USE_XOPEN2K8] (pthread_mutex_consistent,
pthread_mutex_consistent_np): New declarations.
* sysdeps/mach/hurd/bits/mutex.h
sysdeps/mach/hurd/pt-mutex-consistent.c
sysdeps/mach/hurd/pt-mutex-destroy.c
sysdeps/mach/hurd/pt-mutex-getprioceiling.c
sysdeps/mach/hurd/pt-mutex-init.c
sysdeps/mach/hurd/pt-mutex-lock.c
sysdeps/mach/hurd/pt-mutex-setprioceiling.c
sysdeps/mach/hurd/pt-mutex-timedlock.c
sysdeps/mach/hurd/pt-mutex-transfer-np.c
sysdeps/mach/hurd/pt-mutex-trylock.c
sysdeps/mach/hurd/pt-mutex-unlock.c
sysdeps/mach/hurd/pt-mutex.h
sysdeps/mach/hurd/pt-mutexattr-destroy.c
sysdeps/mach/hurd/pt-mutexattr-getprioceiling.c
sysdeps/mach/hurd/pt-mutexattr-getprotocol.c
sysdeps/mach/hurd/pt-mutexattr-getpshared.c
sysdeps/mach/hurd/pt-mutexattr-getrobust.c
sysdeps/mach/hurd/pt-mutexattr-gettype.c
sysdeps/mach/hurd/pt-mutexattr-init.c
sysdeps/mach/hurd/pt-mutexattr-setprioceiling.c
sysdeps/mach/hurd/pt-mutexattr-setprotocol.c
sysdeps/mach/hurd/pt-mutexattr-setpshared.c
sysdeps/mach/hurd/pt-mutexattr-setrobust.c
sysdeps/mach/hurd/pt-mutexattr-settype.c
sysdeps/mach/hurd/pt-mutexattr.c: New files
|