mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-23 13:09:58 +08:00
htl: move pthread_barrierattr_destroy into libc.
Message-ID: <20250209200108.865599-3-gfleury@disroot.org>
This commit is contained in:
parent
7d799d85e8
commit
40cbd3c361
@ -28,7 +28,6 @@ libpthread-routines := \
|
||||
pt-barrier-destroy \
|
||||
pt-barrier-init \
|
||||
pt-barrier-wait \
|
||||
pt-barrierattr-destroy \
|
||||
pt-barrierattr-init \
|
||||
pt-barrierattr-getpshared \
|
||||
pt-barrierattr-setpshared \
|
||||
@ -161,6 +160,7 @@ routines := \
|
||||
pt-attr-setstackaddr \
|
||||
pt-attr-setstacksize \
|
||||
pt-barrier \
|
||||
pt-barrierattr-destroy \
|
||||
pt-block \
|
||||
pt-block-intr \
|
||||
pt-cond \
|
||||
|
@ -26,6 +26,7 @@ libc {
|
||||
pthread_attr_setscope;
|
||||
pthread_attr_setschedparam;
|
||||
pthread_attr_init;
|
||||
pthread_barrierattr_destroy;
|
||||
pthread_cond_broadcast;
|
||||
pthread_cond_destroy;
|
||||
pthread_cond_init;
|
||||
@ -124,6 +125,7 @@ libc {
|
||||
}
|
||||
|
||||
GLIBC_2.42 {
|
||||
pthread_barrierattr_destroy;
|
||||
pthread_mutex_consistent; pthread_mutex_consistent_np;
|
||||
pthread_mutex_getprioceiling;
|
||||
pthread_mutex_setprioceiling;
|
||||
@ -203,7 +205,7 @@ libpthread {
|
||||
pthread_atfork;
|
||||
|
||||
pthread_barrier_destroy; pthread_barrier_init; pthread_barrier_wait;
|
||||
pthread_barrierattr_destroy; pthread_barrierattr_getpshared;
|
||||
pthread_barrierattr_getpshared;
|
||||
pthread_barrierattr_init; pthread_barrierattr_setpshared;
|
||||
|
||||
pthread_cancel;
|
||||
|
@ -16,11 +16,18 @@
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <pthread.h>
|
||||
#include <pthreadP.h>
|
||||
#include <pt-internal.h>
|
||||
#include <shlib-compat.h>
|
||||
|
||||
int
|
||||
pthread_barrierattr_destroy (pthread_barrierattr_t *attr)
|
||||
__pthread_barrierattr_destroy (pthread_barrierattr_t *attr)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
libc_hidden_def (__pthread_barrierattr_destroy)
|
||||
versioned_symbol (libc, __pthread_barrierattr_destroy, pthread_barrierattr_destroy, GLIBC_2_42);
|
||||
|
||||
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_42)
|
||||
compat_symbol (libpthread, __pthread_barrierattr_destroy, pthread_barrierattr_destroy, GLIBC_2_12);
|
||||
#endif
|
||||
|
@ -31,6 +31,8 @@ extern void __pthread_init_static_tls (struct link_map *) attribute_hidden;
|
||||
|
||||
/* These represent the interface used by glibc itself. */
|
||||
|
||||
extern int __pthread_barrierattr_destroy (pthread_barrierattr_t *__attr);
|
||||
libc_hidden_proto (__pthread_barrierattr_destroy)
|
||||
extern int __pthread_mutex_init (pthread_mutex_t *__mutex, const pthread_mutexattr_t *__attr);
|
||||
libc_hidden_proto (__pthread_mutex_init)
|
||||
extern int __pthread_mutex_clocklock (pthread_mutex_t *__mutex, clockid_t __clockid,
|
||||
|
@ -49,6 +49,7 @@ GLIBC_2.12 pthread_attr_setscope F
|
||||
GLIBC_2.12 pthread_attr_setstack F
|
||||
GLIBC_2.12 pthread_attr_setstackaddr F
|
||||
GLIBC_2.12 pthread_attr_setstacksize F
|
||||
GLIBC_2.12 pthread_barrierattr_destroy F
|
||||
GLIBC_2.12 pthread_cond_broadcast F
|
||||
GLIBC_2.12 pthread_cond_destroy F
|
||||
GLIBC_2.12 pthread_cond_init F
|
||||
@ -2561,6 +2562,7 @@ GLIBC_2.41 pthread_mutexattr_setrobust F
|
||||
GLIBC_2.41 pthread_mutexattr_setrobust_np F
|
||||
GLIBC_2.41 pthread_mutexattr_settype F
|
||||
GLIBC_2.41 pthread_sigmask F
|
||||
GLIBC_2.42 pthread_barrierattr_destroy F
|
||||
GLIBC_2.42 pthread_mutex_consistent F
|
||||
GLIBC_2.42 pthread_mutex_consistent_np F
|
||||
GLIBC_2.42 pthread_mutex_getprioceiling F
|
||||
|
@ -25,7 +25,6 @@ GLIBC_2.12 pthread_atfork F
|
||||
GLIBC_2.12 pthread_barrier_destroy F
|
||||
GLIBC_2.12 pthread_barrier_init F
|
||||
GLIBC_2.12 pthread_barrier_wait F
|
||||
GLIBC_2.12 pthread_barrierattr_destroy F
|
||||
GLIBC_2.12 pthread_barrierattr_getpshared F
|
||||
GLIBC_2.12 pthread_barrierattr_init F
|
||||
GLIBC_2.12 pthread_barrierattr_setpshared F
|
||||
|
@ -1531,6 +1531,7 @@ GLIBC_2.38 pthread_attr_setscope F
|
||||
GLIBC_2.38 pthread_attr_setstack F
|
||||
GLIBC_2.38 pthread_attr_setstackaddr F
|
||||
GLIBC_2.38 pthread_attr_setstacksize F
|
||||
GLIBC_2.38 pthread_barrierattr_destroy F
|
||||
GLIBC_2.38 pthread_cond_broadcast F
|
||||
GLIBC_2.38 pthread_cond_clockwait F
|
||||
GLIBC_2.38 pthread_cond_destroy F
|
||||
@ -2244,6 +2245,7 @@ GLIBC_2.41 pthread_mutexattr_setrobust F
|
||||
GLIBC_2.41 pthread_mutexattr_setrobust_np F
|
||||
GLIBC_2.41 pthread_mutexattr_settype F
|
||||
GLIBC_2.41 pthread_sigmask F
|
||||
GLIBC_2.42 pthread_barrierattr_destroy F
|
||||
GLIBC_2.42 pthread_mutex_consistent F
|
||||
GLIBC_2.42 pthread_mutex_consistent_np F
|
||||
GLIBC_2.42 pthread_mutex_getprioceiling F
|
||||
|
@ -42,7 +42,6 @@ GLIBC_2.38 mtx_unlock F
|
||||
GLIBC_2.38 pthread_barrier_destroy F
|
||||
GLIBC_2.38 pthread_barrier_init F
|
||||
GLIBC_2.38 pthread_barrier_wait F
|
||||
GLIBC_2.38 pthread_barrierattr_destroy F
|
||||
GLIBC_2.38 pthread_barrierattr_getpshared F
|
||||
GLIBC_2.38 pthread_barrierattr_init F
|
||||
GLIBC_2.38 pthread_barrierattr_setpshared F
|
||||
|
Loading…
Reference in New Issue
Block a user