summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-09-19Fix exposition of pthread functionsSamuel Thibault
* pthread/pt-alloc.c (__pthread_alloc): Use __pthread_rwlock_wrlock and __pthread_rwlock_unlock instead of pthread_rwlock_wrlock and pthread_rwlock_unlock. * pthread/pt-create.c (__pthread_create_internal): Use__pthread_rwlock_rdlock and __pthread_rwlock_unlock instead of pthread_rwlock_rdlock and pthread_rwlock_unlock. * pthread/pt-dealloc.c (__pthread_dealloc): Use __pthread_cond_broadcast, __pthread_mutex_lock, and __pthread_mutex_unlock instead of pthread_cond_broadcast, pthread_mutex_lock, and pthread_mutex_unlock * pthread/pt-exit.c (__pthread_exit): Use __pthread_setcancelstate and __pthread_cond_broadcast instead of pthread_setcancelstate and pthread_cond_broadcast. * pthread/pt-internal.h (__pthread_getid, __pthread_setid): Use __pthread_rwlock_rdlock, __pthread_rwlock_wrlock, and __pthread_rwlock_unlock instead of pthread_rwlock_rdlock, pthread_rwlock_wrlock, and pthread_rwlock_unlock * pthread/pt-join.c (pthread_join): Use __pthread_cond_wait instead of pthread_cond_wait. * sysdeps/hurd/pt-key-delete.c (pthread_key_delete): Use __pthread_rwlock_rdlock and __pthread_rwlock_unlock instead of pthread_rwlock_rdlock and pthread_rwlock_unlock.
2016-09-19Make PTHREAD_ONCE_INIT a symbolic valueSamuel Thibault
as required by Posix * sysdeps/pthread/bits/once.h (__PTHREAD_ONCE_INIT): Cast initializer to (struct __pthread_once).
2016-09-19Fix hiding functionsSamuel Thibault
* Makefile (CPPFLAGS): Add -imacros $(srcdir)/not-in-libc.h only when IN_GLIBC is no.
2016-09-19Fix getrlimit visibilitySamuel Thibault
* pthread/pt-create.c (__pthread_create_internal): Call __getrlimit instead of getrlimit.
2016-09-19Fix pthread_kill and pthread_self visibility from raiseSamuel Thibault
* 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.
2016-09-12Expose __register_atfork publiclySamuel Thibault
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.
2016-09-12Merge branch 'master-glibc-2.22' into master-glibc-2.23Samuel Thibault
2016-09-12Merge branch 'master-glibc-2.21' into master-glibc-2.22Samuel Thibault
2016-09-12Merge branch 'master' into master-glibc-2.21Samuel Thibault
2016-09-11Add dso_handle parameter to __register_atforkSamuel Thibault
* forward.c (struct atfork): Add dso_handle field. (__register_atfork): Add dso_handle parameter. Store it it dso_handle field. * sysdeps/generic/pt-atfork.c (__dso_handle): New variable. (pthread_atfork): Pass address of __dso_handle to __register_atfork.
2016-08-23Merge branch 'master-glibc-2.22' into master-glibc-2.23Samuel Thibault
2016-08-23Merge branch 'master-glibc-2.21' into master-glibc-2.22Samuel Thibault
2016-08-23Missing NOT_IN_ -> IS_IN conversionSamuel Thibault
* sysdeps/pthread/bits/libc-lockP.h: Use IS_IN (libc) instead of !defined NOT_IN_libc.
2016-08-21Merge branch 'master-glibc-2.22' into master-glibc-2.23Samuel Thibault
2016-08-21Revert "Add missing pthread_setcancelstate alias"Samuel Thibault
This reverts commit 80d014410ffdd3ce86ff7dcc7d8ca695f6fbb2ed.
2016-08-21Merge branch 'master-glibc-2.22' into master-glibc-2.23Samuel Thibault
2016-08-21Revert "Fix build with 2.22"Samuel Thibault
This reverts commit edb5bb83ec918dc6b77b3da5b246c056932d78d7.
2016-08-21Merge branch 'master-glibc-2.22' into master-glibc-2.23Samuel Thibault
2016-08-21fix glibc 2.22 buildSamuel Thibault
* pthread/alloca_cutoff.c: New file. * Makefile (routines): Add alloca_cutoff. * Versions (GLIBC_PRIVATE): Add __libc_alloca_cutoff.
2016-08-21Merge branch 'master-glibc-2.22' into master-glibc-2.23Samuel Thibault
2016-08-21Fix build with glibc 2.22Samuel Thibault
* shlib-versions: Remove first column.
2016-08-20Fix build with 2.22Samuel Thibault
2016-08-20Add missing pthread_setcancelstate aliasSamuel Thibault
* forward.c (pthread_setcancelstate): Define alias to __pthread_setcancelstate.
2016-08-20Fix weak reference for static linkingSamuel Thibault
2016-08-20Mark __libc_pthread_init as internal function, as in nptlSamuel Thibault
2016-07-13Add missing pthread_setcancelstate aliasSamuel Thibault
* forward.c (pthread_setcancelstate): Define alias to __pthread_setcancelstate.
2016-07-07Revert "Expose __register_atfork"Samuel Thibault
This reverts commit 5ccba334490200282cda43f74df90bb79da2048c.
2016-07-06Expose __register_atforkSamuel Thibault
Like glibc does. * Versions (__register_atfork): Expose with version GLIBC_2.24 instead of GLIBC_PRIVATE.
2016-03-21Fix weak reference for static linkingSamuel Thibault
2016-03-20Mark __libc_pthread_init as internal function, as in nptlSamuel Thibault
2016-03-19Fix build with 2.23Samuel Thibault
* sysdeps/pthread/bits/libc-lockP.h: Move to... * sysdeps/pthread/libc-lockP.h: ... here.
2016-03-19Merge branch 'master-glibc-2.21' into master-glibc-2.23Samuel Thibault
2016-03-19Merge branch 'master' into master-glibc-2.21Samuel Thibault
2016-03-17Fix build against glibc 2.23Samuel Thibault
2016-01-03Do not block unmaskable signalsglibc-2.19-hurd+libpthread-20160518Samuel Thibault
* sysdeps/mach/hurd/pt-sigstate.c (__pthread_sigstate): Always remove _SIG_CANT_MASK from blocked signals, like sigprocmask does.
2015-12-22Remove __THROW* from extern inlinesSamuel Thibault
They pose more problems than they solve. * include/pthread/pthread.h (pthread_equal, pthread_spin_destroy, pthread_spin_init, pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove __THROW or __THROWNL attribute.
2015-12-11Add throw specification to inlinesSamuel Thibault
* include/pthread/pthread.h: Add __THROW and __THROWNL specification to extern inlines definitions.
2015-12-06Add __THROW and __nonnull attributesSamuel Thibault
* include/pthread/pthread.h: Add __THROW and __nonnull attributes to functions.
2015-11-25Fix build with hidden supportSamuel Thibault
* sysdeps/generic/pt-key-create.c (pthread_key_create): Rename to __pthread_key_create. (pthread_key_create): New strong_alias. * sysdeps/generic/raise.c (raise): Add libc_hidden_def. (gsignal): Add weak_alias. * sysdeps/hurd/pt-key-create.c (__pthread_key_create): Remove hidden_def.
2015-11-01Merge branch 'master-glibc' into master-glibc-2.21Samuel Thibault
2015-11-01Merge branch 'master-glibc' into master-glibc-2.21Samuel Thibault
2015-10-31Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/libpthread into ↵glibc-2.19-hurd+libpthread-20151031Samuel Thibault
master-glibc
2015-10-31Do not use __thread as parameter nameSamuel Thibault
That is the TLS qualifier. * include/pthread/pthread.h (pthread_getattr_np, pthread_cancel, pthread_kill, pthread_getcpuclockid, pthread_getschedparam, pthread_setschedparam, pthread_setschedprio): Use __thr as parameter name instead of __thread.
2015-10-31Merge branch 'master' into master-glibcSamuel Thibault
2015-10-11Remove __libc_getspecificSamuel Thibault
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.
2015-10-10Fix pthread_killSamuel Thibault
* sysdeps/hurd/pt-kill.c (pthread_kill): Lock ss lock before calling _hurd_raise_signal. Return error returned by _hurd_raise_signal.
2015-10-10Fix errno set by raiseSamuel Thibault
* sysdeps/generic/raise.c: Include <signal.h> and <unistd.h>. (raise): Only set errno when calling pthread_kill, not kill.
2015-09-22Fix name exposure of including semaphore.hSamuel Thibault
* sysdeps/pthread/bits/semaphore.h: Include <bits/spinlock.h> and <bits/pthread.h> instead of the full <pthread.h>.
2015-09-22Avoid exposing function prototype parameter namesSamuel Thibault
* include/pthread/pthread.h (pthread_mutex_setprioceiling): Prepend '__' to prio parameter name.
2015-09-22Do not expose "noreturn" nameSamuel Thibault
* ./include/pthread/pthread.h (pthread_exit): Use __noreturn__ attribute instead of noreturn.