Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
* forward.c (__register_atfork): Add missing def for hidden symbol.
|
|
* sysdeps/i386/bits/pthreadtypes-arch.h: New file.
* sysdeps/pthread/bits/thread-shared-types.h: New file.
* sysdeps/pthread/bits/pthreadtypes.h: Include
<thread-shared-types.h>
|
|
* sysdeps/generic/pt-attr.c
(__pthread_default_attr.__schedparam): Use __sched_priority
field name instead of sched_priority.
|
|
* sysdeps/generic/pt-getschedparam.c (__pthread_getschedparam): Return
SCHED_OTHER and priority 0. Remove stub warning.
|
|
* include/pthread.h: Move to...
* sysdeps/pthread/pthread.h: ... here.
|
|
* Makeconfig [($(subdir) == malloc] (LDLIBS-tst-interpose-static-thread): Add
-lihash.
[($(subdir) == elf] (LDLIBS-tst-linkall-static): Add -lihash.
|
|
This reverts commit d3b47d4482e0c8372f51472d9d075a89759919ea.
The variable is actually used for dependencies as well.
|
|
This is used by tests link, which would fail linking if libihash is not
brought in.
* Makeconfig (static-thread-library): Add -lihash.
|
|
to avoid future incompatibilities when changing the implementation.
* include/pthread/pthread.h [!_LIBC] (pthread_spin_destroy,
pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
pthread_spin_unlock): Do not provide inline definition.
|
|
* 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.
|
|
* sysdeps/generic/old_pt-atfork.c: New file.
* Makefile (libpthread-routines): Add old_pt-atfork.
(libpthread-static-only-routines): Add pt-atfork.
[build-shared=yes] (install): Explicit $(inst_libdir)/libpthread.so
[build-shared=yes] $(inst_libdir)/libpthread.so: Replace with script to
link libpthread_nonshared.a in.
[build-shared=yes] (tests): Link libpthread_nonshared.a in addition to
libpthread.so.
(generated): Add libpthread_nonshared.a.
|
|
* pthread/pt-internal.h (__pthread_default_rwlockattr,
__pthread_default_condattr): Add missing extern qualifier to variable
declaration.
|
|
* sysdeps/pthread/libc-lockP.h [IS_IN (libpthread)]: Do not make __pthread
symbols weak.
|
|
This reverts part of a87bf9a8 for now. This fixes a crash in exec due to
ext2fs, still to be investigated.
* pthread/pt-exit.c (__pthread_exit): Use pthread_setcancelstate instead
of __pthread_setcancelstate.
|
|
* sysdeps/generic/pt-atfork.c: Include <fork.h>
|
|
|
|
* sysdeps/generic/fork.h: New file.
* forward.c: Include <fork.h>.
(__unregister_atfork): New function.
|
|
|
|
* sysdeps/pthread/Makefile (librt-sysdep_routines) [subdir = rt]: Add
timer_routines.
|
|
|
|
* sysdeps/mach/pt-thread-terminate.c (__pthread_thread_terminate): Cast
stack address to vm_address_t before calling __thread_terminate_release.
|
|
* libc_pthread_init.c (__libc_pthread_init): Fix old-style function
definition.
|
|
* sysdeps/pthread/flockfile.c (__flockfile): Fix old-style function
definition.
* sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
* sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
|
|
* 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.
|
|
as required by Posix
* sysdeps/pthread/bits/once.h (__PTHREAD_ONCE_INIT): Cast initializer to
(struct __pthread_once).
|
|
* Makefile (CPPFLAGS): Add -imacros $(srcdir)/not-in-libc.h only when
IN_GLIBC is no.
|
|
* pthread/pt-create.c (__pthread_create_internal): Call __getrlimit
instead of getrlimit.
|
|
* 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.
|
|
|
|
|
|
|
|
* 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.
|
|
|
|
|
|
* sysdeps/pthread/bits/libc-lockP.h: Use IS_IN (libc) instead of !defined
NOT_IN_libc.
|
|
|
|
This reverts commit 80d014410ffdd3ce86ff7dcc7d8ca695f6fbb2ed.
|
|
|
|
This reverts commit edb5bb83ec918dc6b77b3da5b246c056932d78d7.
|
|
|
|
* pthread/alloca_cutoff.c: New file.
* Makefile (routines): Add alloca_cutoff.
* Versions (GLIBC_PRIVATE): Add __libc_alloca_cutoff.
|
|
|
|
* shlib-versions: Remove first column.
|
|
|
|
* forward.c (pthread_setcancelstate): Define alias to
__pthread_setcancelstate.
|
|
|
|
|