mirror of git://sourceware.org/git/glibc.git
htl: move pthread_detach into libc.
Message-ID: <20250815181500.107433-16-gfleury@disroot.org>
This commit is contained in:
parent
d0667a77de
commit
a901f2599e
|
|
@ -26,7 +26,6 @@ LCLHDRS :=
|
|||
|
||||
libpthread-routines := \
|
||||
pt-create \
|
||||
pt-detach \
|
||||
pt-exit \
|
||||
pt-initialize \
|
||||
pt-join \
|
||||
|
|
@ -140,6 +139,7 @@ routines := \
|
|||
pt-condattr-setpshared \
|
||||
pt-dealloc \
|
||||
pt-destroy-specific \
|
||||
pt-detach \
|
||||
pt-docancel \
|
||||
pt-getattr \
|
||||
pt-getconcurrency \
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ libc {
|
|||
pthread_condattr_getpshared;
|
||||
pthread_condattr_setclock;
|
||||
pthread_condattr_setpshared;
|
||||
pthread_detach;
|
||||
pthread_getattr_np;
|
||||
pthread_getconcurrency;
|
||||
pthread_key_create;
|
||||
|
|
@ -200,6 +201,7 @@ libc {
|
|||
|
||||
GLIBC_2.43 {
|
||||
pthread_cancel;
|
||||
pthread_detach;
|
||||
pthread_getattr_np;
|
||||
pthread_getconcurrency;
|
||||
pthread_getcpuclockid;
|
||||
|
|
@ -295,7 +297,7 @@ libpthread {
|
|||
|
||||
pthread_atfork;
|
||||
|
||||
pthread_create; pthread_detach; pthread_exit;
|
||||
pthread_create; pthread_exit;
|
||||
|
||||
pthread_join;
|
||||
|
||||
|
|
@ -336,7 +338,6 @@ libpthread {
|
|||
|
||||
__cthread_detach;
|
||||
__cthread_fork;
|
||||
__pthread_detach;
|
||||
__pthread_create;
|
||||
__cthread_keycreate;
|
||||
__cthread_getspecific;
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@
|
|||
#include <stddef.h>
|
||||
|
||||
#include <pt-internal.h>
|
||||
#include <shlib-compat.h>
|
||||
#include <ldsodefs.h>
|
||||
|
||||
/* Indicate that the storage for THREAD can be reclaimed when it
|
||||
terminates. */
|
||||
|
|
@ -71,5 +73,9 @@ __pthread_detach (pthread_t thread)
|
|||
|
||||
return err;
|
||||
}
|
||||
weak_alias (__pthread_detach, pthread_detach)
|
||||
hidden_def (__pthread_detach)
|
||||
libc_hidden_def (__pthread_detach)
|
||||
versioned_symbol (libc, __pthread_detach, pthread_detach, GLIBC_2_43);
|
||||
|
||||
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_43)
|
||||
compat_symbol (libpthread, __pthread_detach, pthread_detach, GLIBC_2_12);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -180,6 +180,7 @@ int __pthread_create (pthread_t *newthread,
|
|||
|
||||
void __cthread_detach (__cthread_t);
|
||||
int __pthread_detach (pthread_t __threadp);
|
||||
libc_hidden_proto (__pthread_detach)
|
||||
void __pthread_exit (void *value) __attribute__ ((__noreturn__));
|
||||
int __pthread_join (pthread_t, void **);
|
||||
int __cthread_keycreate (__cthread_key_t *);
|
||||
|
|
@ -230,7 +231,6 @@ libc_hidden_proto (__pthread_get_cleanup_stack)
|
|||
|
||||
#if IS_IN (libpthread)
|
||||
hidden_proto (__pthread_create)
|
||||
hidden_proto (__pthread_detach)
|
||||
#endif
|
||||
|
||||
#if !defined(__NO_WEAK_PTHREAD_ALIASES) && !IS_IN (libpthread)
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ GLIBC_2.12 pthread_condattr_getpshared F
|
|||
GLIBC_2.12 pthread_condattr_init F
|
||||
GLIBC_2.12 pthread_condattr_setclock F
|
||||
GLIBC_2.12 pthread_condattr_setpshared F
|
||||
GLIBC_2.12 pthread_detach F
|
||||
GLIBC_2.12 pthread_equal F
|
||||
GLIBC_2.12 pthread_getattr_np F
|
||||
GLIBC_2.12 pthread_getconcurrency F
|
||||
|
|
@ -2646,6 +2647,7 @@ GLIBC_2.42 uimaxabs F
|
|||
GLIBC_2.42 ulabs F
|
||||
GLIBC_2.42 ullabs F
|
||||
GLIBC_2.43 pthread_cancel F
|
||||
GLIBC_2.43 pthread_detach F
|
||||
GLIBC_2.43 pthread_getattr_np F
|
||||
GLIBC_2.43 pthread_getconcurrency F
|
||||
GLIBC_2.43 pthread_getcpuclockid F
|
||||
|
|
@ -2720,6 +2722,7 @@ HURD_CTHREADS_0.3 __mutex_lock_solid F
|
|||
HURD_CTHREADS_0.3 __mutex_trylock F
|
||||
HURD_CTHREADS_0.3 __mutex_unlock F
|
||||
HURD_CTHREADS_0.3 __mutex_unlock_solid F
|
||||
HURD_CTHREADS_0.3 __pthread_detach F
|
||||
HURD_CTHREADS_0.3 __pthread_getattr_np F
|
||||
HURD_CTHREADS_0.3 __spin_lock F
|
||||
HURD_CTHREADS_0.3 __spin_lock_init F
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ GLIBC_2.12 ftrylockfile F
|
|||
GLIBC_2.12 funlockfile F
|
||||
GLIBC_2.12 pthread_atfork F
|
||||
GLIBC_2.12 pthread_create F
|
||||
GLIBC_2.12 pthread_detach F
|
||||
GLIBC_2.12 pthread_exit F
|
||||
GLIBC_2.12 pthread_join F
|
||||
GLIBC_2.12 pthread_spin_destroy F
|
||||
|
|
|
|||
|
|
@ -1555,6 +1555,7 @@ GLIBC_2.38 pthread_condattr_getpshared F
|
|||
GLIBC_2.38 pthread_condattr_init F
|
||||
GLIBC_2.38 pthread_condattr_setclock F
|
||||
GLIBC_2.38 pthread_condattr_setpshared F
|
||||
GLIBC_2.38 pthread_detach F
|
||||
GLIBC_2.38 pthread_equal F
|
||||
GLIBC_2.38 pthread_exit F
|
||||
GLIBC_2.38 pthread_getattr_np F
|
||||
|
|
@ -2328,6 +2329,7 @@ GLIBC_2.42 uimaxabs F
|
|||
GLIBC_2.42 ulabs F
|
||||
GLIBC_2.42 ullabs F
|
||||
GLIBC_2.43 pthread_cancel F
|
||||
GLIBC_2.43 pthread_detach F
|
||||
GLIBC_2.43 pthread_getattr_np F
|
||||
GLIBC_2.43 pthread_getconcurrency F
|
||||
GLIBC_2.43 pthread_getcpuclockid F
|
||||
|
|
@ -2346,6 +2348,7 @@ HURD_CTHREADS_0.3 __mutex_lock_solid F
|
|||
HURD_CTHREADS_0.3 __mutex_trylock F
|
||||
HURD_CTHREADS_0.3 __mutex_unlock F
|
||||
HURD_CTHREADS_0.3 __mutex_unlock_solid F
|
||||
HURD_CTHREADS_0.3 __pthread_detach F
|
||||
HURD_CTHREADS_0.3 __pthread_getattr_np F
|
||||
HURD_CTHREADS_0.3 __spin_lock F
|
||||
HURD_CTHREADS_0.3 __spin_lock_init F
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ GLIBC_2.38 mtx_trylock F
|
|||
GLIBC_2.38 mtx_unlock F
|
||||
GLIBC_2.38 pthread_clockjoin_np F
|
||||
GLIBC_2.38 pthread_create F
|
||||
GLIBC_2.38 pthread_detach F
|
||||
GLIBC_2.38 pthread_exit F
|
||||
GLIBC_2.38 pthread_hurd_cond_timedwait_np F
|
||||
GLIBC_2.38 pthread_hurd_cond_wait_np F
|
||||
|
|
|
|||
Loading…
Reference in New Issue