Age | Commit message (Collapse) | Author |
|
Like glibc does.
* Versions (__register_atfork): Expose with version GLIBC_2.24 instead of
GLIBC_PRIVATE.
|
|
* sysdeps/mach/hurd/pt-sigstate.c (__pthread_sigstate): Always remove
_SIG_CANT_MASK from blocked signals, like sigprocmask does.
|
|
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.
|
|
* include/pthread/pthread.h: Add __THROW and __THROWNL specification to
extern inlines definitions.
|
|
* include/pthread/pthread.h: Add __THROW and __nonnull attributes to
functions.
|
|
* 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.
|
|
master-glibc
|
|
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.
|
|
|
|
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.
|
|
* sysdeps/hurd/pt-kill.c (pthread_kill): Lock ss lock before calling
_hurd_raise_signal. Return error returned by _hurd_raise_signal.
|
|
* sysdeps/generic/raise.c: Include <signal.h> and <unistd.h>.
(raise): Only set errno when calling pthread_kill, not kill.
|
|
* sysdeps/pthread/bits/semaphore.h: Include <bits/spinlock.h> and
<bits/pthread.h> instead of the full <pthread.h>.
|
|
* include/pthread/pthread.h (pthread_mutex_setprioceiling): Prepend '__'
to prio parameter name.
|
|
* ./include/pthread/pthread.h (pthread_exit): Use __noreturn__ attribute
instead of noreturn.
|
|
* include/pthread/pthread.h: Prepend '__' to parameter names.
* sysdeps/mach/hurd/bits/pthread-np.h: Likewise.
|
|
* include/semaphore.h: Move to ...
* sysdeps/pthread/semaphore.h: ... here.
|
|
* include/semaphore.h: Reorder function declarations, prepend parameter
names with __.
(sem_init, sem_destroy, *sem_open, sem_close, sem_unlink, sem_getvalue): Add
__THROW attribute.
(sem_trywait, sem_post): Add __THROWNL attribute.
|
|
* include/semaphore.h: Include <sys/types.h>
[__USE_XOPEN2K]: Define __need_timespec and include <time.h>
|
|
* Versions (libc): Add missing closing brace.
|
|
* sysdeps/generic/raise.c (pthread_self): Make reference weak.
|
|
* sysdeps/generic/raise.c (pthread_kill): Make ref weak.
(raise): Only call pthread_kill when it is not NULL. Call kill otherwise.
|
|
* sysdeps/generic/raise.c (raise): Do not call debug.
|
|
* sysdeps/generic/raise.c: Include <pthread.h> instead of non-existing
"sig-internal.h"
|
|
* sysdeps/generic/killpg.c: Remove file.
* sysdeps/generic/sigaddset.c: Likewise.
* sysdeps/generic/sigdelset.c: Likewise.
* sysdeps/generic/sigemptyset.c: Likewise.
* sysdeps/generic/sigfillset.c: Likewise.
* sysdeps/generic/siginterrupt.c: Likewise.
* sysdeps/generic/sigismember.c: Likewise.
* sysdeps/generic/signal.c: Likewise.
* sysdeps/generic/sigwait.c: Likewise.
|
|
* include/semaphore.h: Reorder function declarations, prepend parameter
names with __.
(sem_init, sem_destroy, *sem_open, sem_close, sem_unlink, sem_getvalue): Add
__THROW attribute.
(sem_trywait, sem_post): Add __THROWNL attribute.
|
|
* include/semaphore.h: Include <sys/types.h>
[__USE_XOPEN2K]: Define __need_timespec and include <time.h>
|
|
* Versions (libc): Add missing closing brace.
|
|
* sysdeps/generic/raise.c (pthread_self): Make reference weak.
|
|
* sysdeps/generic/raise.c (pthread_kill): Make ref weak.
(raise): Only call pthread_kill when it is not NULL. Call kill otherwise.
|
|
* sysdeps/generic/raise.c (raise): Do not call debug.
|
|
* sysdeps/generic/raise.c: Include <pthread.h> instead of non-existing
"sig-internal.h"
|
|
* sysdeps/generic/killpg.c: Remove file.
* sysdeps/generic/sigaddset.c: Likewise.
* sysdeps/generic/sigdelset.c: Likewise.
* sysdeps/generic/sigemptyset.c: Likewise.
* sysdeps/generic/sigfillset.c: Likewise.
* sysdeps/generic/siginterrupt.c: Likewise.
* sysdeps/generic/sigismember.c: Likewise.
* sysdeps/generic/signal.c: Likewise.
* sysdeps/generic/sigwait.c: Likewise.
|
|
|
|
* Makefile (install-lib): New variable.
(install-lib-ldscripts): Remove variable.
[IN_GLIBC] ($(inst_libdir)/libpthread.so): Remove rule.
|
|
* configure: New file
* include/libc-symbols.h: Remove file
* include/set-hooks: Remove file
* sysdeps/i386/bits/spin-lock-inline.h: Move to...
* b/sysdeps/mach/i386/bits/spin-lock-inline.h: ... here.
* sysdeps/i386/bits/spin-lock.h: Move to...
* b/sysdeps/mach/i386/bits/spin-lock.h: ... here.
|
|
(code grabbed from glibc)
* libpthread/sysdeps/mach/hurd/pt-sigstate.c: Include <hurd/msg.h>
(__pthread_sigstate): Use _hurd_sigstate_lock/unlock instead of
__pthread_spin_lock on `ss->lock'. Check _hurd_sigstate_pending and
send a message to the signal thread if needed.
|
|
* pthread/pt-internal.h: Use IS_IN_libpthread instead of IS_IN (libpthread).
|
|
This reverts commit 8b48173fdc8f52a234ff9d3d1de5277c60d7eea4.
|
|
This reverts commit 44ae774bed1a75ea926590f1bc7c9f3328219832.
|
|
* sysdeps/generic/pt-once.c (__pthread_once): Call __memory_barrier before
testing the __run field.
|
|
So that the glibc makerules can find them instead of using the system ones.
* sysdeps/generic/bits/barrier-attr.h: Move to...
* sysdeps/pthread/bits/barrier-attr.: ... here.
* sysdeps/generic/bits/barrier.h: Move to...
* sysdeps/pthread/bits/barrier.: ... here.
* sysdeps/generic/bits/cancelation.h: Move to...
* sysdeps/pthread/bits/cancelation.: ... here.
* sysdeps/generic/bits/condition-attr.h: Move to...
* sysdeps/pthread/bits/condition-attr.: ... here.
* sysdeps/generic/bits/condition.h: Move to...
* sysdeps/pthread/bits/condition.: ... here.
* sysdeps/generic/bits/mutex-attr.h: Move to...
* sysdeps/pthread/bits/mutex-attr.: ... here.
* sysdeps/generic/bits/mutex.h: Move to...
* sysdeps/pthread/bits/mutex.: ... here.
* sysdeps/generic/bits/once.h: Move to...
* sysdeps/pthread/bits/once.: ... here.
* sysdeps/generic/bits/pthread-np.h: Move to...
* sysdeps/pthread/bits/pthread-np.: ... here.
* sysdeps/generic/bits/pthread.h: Move to...
* sysdeps/pthread/bits/pthread.: ... here.
* sysdeps/generic/bits/pthreadtypes.h: Move to...
* sysdeps/pthread/bits/pthreadtypes.: ... here.
* sysdeps/generic/bits/rwlock-attr.h: Move to...
* sysdeps/pthread/bits/rwlock-attr.: ... here.
* sysdeps/generic/bits/rwlock.h: Move to...
* sysdeps/pthread/bits/rwlock.: ... here.
* sysdeps/generic/bits/semaphore.h: Move to...
* sysdeps/pthread/bits/semaphore.: ... here.
* sysdeps/generic/bits/thread-attr.h: Move to...
* sysdeps/pthread/bits/thread-attr.: ... here.
* sysdeps/generic/bits/thread-specific.h: Move to...
* sysdeps/pthread/bits/thread-specific.: ... here.
|
|
* sysdeps/generic/bits/barrier-attr.h (__pthread_barrierattr): Rename
`pshared' field to `__pshared'.
* sysdeps/generic/bits/barrier.h (__pthread_barrier): Rename `lock',
`'queue', `pending', `count', `attr', and `data' fields to `__lock',
`__queue', `__pending', `__count', `__attr', and `__data'.
* sysdeps/generic/bits/cancelation.h (__pthread_cancelation_handler): Rename
`handler', `arg', and `next' fields to `__handler', `__arg', and `__next'.
* sysdeps/generic/bits/condition-attr.h (__pthread_condattr): Rename
`pshared' and `clock' fields to `__pshared', and `__clock'.
* sysdeps/generic/bits/mutex-attr.h (__pthread_mutexattr): Rename
`prioceiling', `protocol', `pshared', and `mutex_type' fields to
`__prioceiling', `__protocol', `__pshared', and `__mutex_type'.
* sysdeps/generic/bits/mutex.h (__pthread_mutex): Rename `cthreadscompat1',
`attr', `data', `owner', and `locks' fields to `__cthreadscompat1',
`__attr', `__data', `__owner', and `__locks'.
* sysdeps/generic/bits/once.h (__pthread_once): Rename `run' and `lock'
fields to `__run' and `__lock'.
* sysdeps/generic/bits/rwlock-attr.h (__pthread_rwlockattr): Rename
`psharead' field to `__pshared'.
* sysdeps/generic/bits/rwlock.h (__pthread_rwlock): Rename `readers',
`readerqueue', and `writerqueue' fields to `__readers', `__readerqueue', and
`__writerqueue'.
* sysdeps/generic/bits/thread-attr.h (__pthread_contentionscope): Rename
`schedparam', `stackaddr', `stacksize', `guardsize', `detachstate',
`inheritsched', `contentionscope', and `schedpolicy' fields to
`__schedparam', `__stackaddr', `__stacksize', `__guardsize',
`__detachstate', `__inheritsched', `__contentionscope', and
`__schedpolicy''.
* sysdeps/generic/bits/cancelation.h: Update code accordingly.
* pthread/pt-create.c: Likewise.
* pthread/pt-exit.c: Likewise.
* pthread/pt-getattr.c: Likewise.
* sysdeps/generic/pt-attr-getdetachstate.c: Likewise.
* sysdeps/generic/pt-attr-getguardsize.c: Likewise.
* sysdeps/generic/pt-attr-getinheritsched.c: Likewise.
* sysdeps/generic/pt-attr-getschedparam.c: Likewise.
* sysdeps/generic/pt-attr-getschedpolicy.c: Likewise.
* sysdeps/generic/pt-attr-getscope.c: Likewise.
* sysdeps/generic/pt-attr-getstackaddr.c: Likewise.
* sysdeps/generic/pt-attr-getstacksize.c: Likewise.
* sysdeps/generic/pt-attr-setdetachstate.c: Likewise.
* sysdeps/generic/pt-attr-setguardsize.c: Likewise.
* sysdeps/generic/pt-attr-setinheritsched.c: Likewise.
* sysdeps/generic/pt-attr-setschedparam.c: Likewise.
* sysdeps/generic/pt-attr-setschedpolicy.c: Likewise.
* sysdeps/generic/pt-attr-setscope.c: Likewise.
* sysdeps/generic/pt-attr-setstackaddr.c: Likewise.
* sysdeps/generic/pt-attr-setstacksize.c: Likewise.
* sysdeps/generic/pt-attr.c: Likewise.
* sysdeps/generic/pt-barrier-init.c: Likewise.
* sysdeps/generic/pt-barrier-wait.c: Likewise.
* sysdeps/generic/pt-barrier.c: Likewise.
* sysdeps/generic/pt-barrierattr-getpshared.c: Likewise.
* sysdeps/generic/pt-barrierattr-setpshared.c: Likewise.
* sysdeps/generic/pt-cond-timedwait.c: Likewise.
* sysdeps/generic/pt-cond.c: Likewise.
* sysdeps/generic/pt-condattr-getclock.c: Likewise.
* sysdeps/generic/pt-condattr-getpshared.c: Likewise.
* sysdeps/generic/pt-condattr-setclock.c: Likewise.
* sysdeps/generic/pt-condattr-setpshared.c: Likewise.
* sysdeps/generic/pt-mutex-destroy.c: Likewise.
* sysdeps/generic/pt-mutex-init.c: Likewise.
* sysdeps/generic/pt-mutex-timedlock.c: Likewise.
* sysdeps/generic/pt-mutex-transfer-np.c: Likewise.
* sysdeps/generic/pt-mutex-trylock.c: Likewise.
* sysdeps/generic/pt-mutex-unlock.c: Likewise.
* sysdeps/generic/pt-mutexattr-getprotocol.c: Likewise.
* sysdeps/generic/pt-mutexattr-getpshared.c: Likewise.
* sysdeps/generic/pt-mutexattr-gettype.c: Likewise.
* sysdeps/generic/pt-mutexattr-setprotocol.c: Likewise.
* sysdeps/generic/pt-mutexattr-setpshared.c: Likewise.
* sysdeps/generic/pt-mutexattr-settype.c: Likewise.
* sysdeps/generic/pt-mutexattr.c: Likewise.
* sysdeps/generic/pt-once.c: Likewise.
* sysdeps/generic/pt-rwlock-attr.c: Likewise.
* sysdeps/generic/pt-rwlock-timedrdlock.c: Likewise.
* sysdeps/generic/pt-rwlock-timedwrlock.c: Likewise.
* sysdeps/generic/pt-rwlock-tryrdlock.c: Likewise.
* sysdeps/generic/pt-rwlock-trywrlock.c: Likewise.
* sysdeps/generic/pt-rwlock-unlock.c: Likewise.
* sysdeps/generic/pt-rwlockattr-getpshared.c: Likewise.
* sysdeps/generic/pt-rwlockattr-setpshared.c: Likewise.
* sysdeps/mach/hurd/pt-attr-setstackaddr.c: Likewise.
* sysdeps/mach/hurd/pt-attr-setstacksize.c: Likewise.
* sysdeps/mach/hurd/pt-hurd-cond-timedwait.c: Likewise.
|
|
* sysdeps/generic/bits/thread-attr.h: Define __need_size_t macro, include
<stddef.h>.
|
|
* sysdeps/pthread/pthread-functions.h (pthread_functions): Rename
ptr_pthread_exit field to ptr___pthread_exit.
* pthread/pt-initialize.c (pthread_functions): Likewise.
|
|
* sysdeps/mach/hurd/pt-hurd-cond-timedwait.c (err): Initialize to 0.
|
|
* forward.c (pthread_exit): Rename to __pthread_exit.
(pthread_exit): New strong alias for __pthread_exit.
|
|
* Makefile (libpthread-routines): Add shm-directory.
* Versions (GLIBC_PRIVATE): Add __shm_directory.
|
|
* sysdeps/mach/hurd/pt-sysdep.c (_init_routine): Call ___pthread_init
instead of __pthread_init.
|
|
* sysdeps/mach/hurd/pt-sysdep.c (_init_routine): Use `stack' parameter
instead of hardcoding __libc_stack_end.
|