Age | Commit message (Collapse) | Author |
|
* Versions (libpthread): Add __pthread_self.
|
|
* 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.
|
|
* Versions (pthread_hurd_cond_timedwait_np, pthread_hurd_cond_wait_np):
Move to GLIBC_2.21.
|
|
Libc uses some thread functions, but should not expose the corresponding
symbols, so use aliases.
* Versions (__cthread_detach, __cthread_fork, __cthread_keycreate,
__cthread_getspecific, __cthread_setspecific, __pthread_getattr_np,
__pthread_attr_getstack): Add symbols
* pthread/cthreads-compat.c (cthread_t, cthread_fn_t, cthread_key_t): Do
not define.
(cthread_detach): Rename to __cthread_detach.
(cthread_detach): Define as weak alias to __cthread_detach.
(cthread_fork, cthread_keycreate, cthread_getspecific,
cthread_setspecific): Likewise.
* pthread/pt-getattr.c (pthread_getattr_np): Likewise.
* sysdeps/generic/pt-attr-getstack.c (pthread_attr_getstack): Likewise.
* sysdeps/pthread/pthread.h (__cthread_t, __cthread_key_t,
__cthread_fn_t, __cthread_fork, __cthread_detach, __cthread_keycreate,
__cthread_getspecific, __cthread_setspecific, __pthread_getattr_np,
__pthread_attr_getstack): Declare.
|
|
* Versions (__pthread_threads): Add in GLIBC_PRIVATE.
* pthreadP.h (__pthread_threads): Declare.
* sysdeps/generic/raise.c (__pthread_threads): Make symbol weak.
(raise): Check for __pthread_threads before calling __pthread_self.
|
|
* pthreadP.h: New file.
* sysdeps/generic/pt-kill.c (pthread_kill): Rename to __pthread_kill.
pthread_kill: New strong alias.
* sysdeps/hurd/pt-kill.c: Likewise.
* sysdeps/generic/raise.c: Include <pthreadP.h> instead of <pthread.h>.
Make __pthread_kill and __pthread_self weak.
(raise): Use __pthread_kill and __pthread_self instead of pthread_kill
and pthread_self.
|
|
Some applications make use of it, and get spurious strong dependencies when
the symbol is versioned as private.
* Version (__register_atfork): Move from GLIBC_PRIVATE to GLIBC_2.22.
|
|
|
|
|
|
* pthread/alloca_cutoff.c: New file.
* Makefile (routines): Add alloca_cutoff.
* Versions (GLIBC_PRIVATE): Add __libc_alloca_cutoff.
|
|
This reverts commit 5ccba334490200282cda43f74df90bb79da2048c.
|
|
Like glibc does.
* Versions (__register_atfork): Expose with version GLIBC_2.24 instead of
GLIBC_PRIVATE.
|
|
|
|
|
|
The version from libc was not made to be replaced, and doesn't need to
indeed.
* Version: Remove __libc_getspecific symbol.
* libpthread.a: Likewise.
* libpthread_pic.a: Likewise.
* pthread/cthreads-compat: Remove __libc_getspecific function.
|
|
* Versions (libc): Add missing closing brace.
|
|
* Versions (libc): Add missing closing brace.
|
|
This reverts commit 5f7caa161f5e190c058166dc0ddccae64a258f28.
|
|
This reverts commit 8b48173fdc8f52a234ff9d3d1de5277c60d7eea4.
|
|
* Makefile (libpthread-routines): Add shm-directory.
* Versions (GLIBC_PRIVATE): Add __shm_directory.
|
|
Some versions of std::thread use it to detect the presence of libpthread (don't
ask why)
* sysdeps/hurd/pt-key-create.c (pthread_key_create): Rename to
__pthread_key_create.
(pthread_key_create): Define as strong alias of __pthread_key_create.
* Versions (libpthread): Add __pthread_key_create.
|
|
* Versions (libc): Add __register_atfork with GLIBC_PRIVATE version.
* forward.c: Include <errno.h>
(atfork): New structure.
(atfork_lock): New mutex.
(fork_handlers, fork_last_handler): New variables.
(atfork_pthread_prepare, atfork_pthread_parent, atfork_pthread_child): New
atfork hooks
(__register_atfork): New function.
* sysdeps/generic/pt-atfork.c (pthread_atfork): Call __register_atfork.
|
|
This new Hurd-specific function is meant to allow Hurd servers to wait
for events during a bounded period of time.
* Makefile (libpthread-routines): Add pt-hurd-cond-timedwait.
* Versions: Include pthread_hurd_cond_timedwait_np in version GLIBC_2.17
of libpthread.
* sysdeps/mach/hurd/bits/pthread-np.h (pthread_hurd_cond_timedwait_np): New
declaration.
* sysdeps/mach/hurd/pt-hurd-cond-timedwait.c: New file that provides
__pthread_hurd_cond_timedwait_internal and __pthread_hurd_cond_timedwait_np.
* sysdeps/mach/hurd/pt-hurd-cond-wait.c (__pthread_hurd_cond_wait_np):
Rewrite as a call to __pthread_hurd_cond_timedwait_internal with no timeout.
|
|
* Versions: Include _IO_flockfile, _IO_ftrylockfile and _IO_funlockfile
in version 2.2.6 of libpthread.
|
|
* Version: Do not include pthread_hurd_cond_wait_np in libc, as we don't
define a forward for it. Include pthread_hurd_cond_wait_np in version
GLIBC_2.17 of libpthread, as this is a new symbol.
|
|
* Makefile (libpthread-routines): Add pt-hurd-cond-wait.
* Versions (libc): Add pthread_hurd_cond_wait_np.
(libpthread): Likewise.
* sysdeps/mach/hurd/bits/pthread-np.h: New file.
* sysdeps/mach/hurd/pt-hurd-cond-wait.c: Likewise.
|
|
* Makeconfig, Versions, configure.in, forward.c, libc_pthread_init.c,
pthread/pthread-functions.h, shlib-versions, sysdeps/i386/Implies,
sysdeps/mach/hurd/Implies, sysdeps/mach/hurd/i386/Implies: New files.
* Makefile: Add glibc rules, enabled when IN_GLIBC is defined to yes, when
$(..) is defined.
* pthread/pt-initialize.c [IS_IN_libpthread] (pthread_functions): New variable.
[IS_IN_libpthread] (__pthread_initialize): Call __libc_pthread_init.
|