mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
htl: move pthread_barrierattr_getpshared, pthread_barrierattr_setpshared into libc.
Message-ID: <20250209200108.865599-5-gfleury@disroot.org>
This commit is contained in:
@@ -28,8 +28,6 @@ libpthread-routines := \
|
|||||||
pt-barrier-destroy \
|
pt-barrier-destroy \
|
||||||
pt-barrier-init \
|
pt-barrier-init \
|
||||||
pt-barrier-wait \
|
pt-barrier-wait \
|
||||||
pt-barrierattr-getpshared \
|
|
||||||
pt-barrierattr-setpshared \
|
|
||||||
pt-destroy-specific \
|
pt-destroy-specific \
|
||||||
pt-init-specific \
|
pt-init-specific \
|
||||||
pt-key-create \
|
pt-key-create \
|
||||||
@@ -160,7 +158,9 @@ routines := \
|
|||||||
pt-attr-setstacksize \
|
pt-attr-setstacksize \
|
||||||
pt-barrier \
|
pt-barrier \
|
||||||
pt-barrierattr-destroy \
|
pt-barrierattr-destroy \
|
||||||
|
pt-barrierattr-getpshared \
|
||||||
pt-barrierattr-init \
|
pt-barrierattr-init \
|
||||||
|
pt-barrierattr-setpshared \
|
||||||
pt-block \
|
pt-block \
|
||||||
pt-block-intr \
|
pt-block-intr \
|
||||||
pt-cond \
|
pt-cond \
|
||||||
|
@@ -27,7 +27,9 @@ libc {
|
|||||||
pthread_attr_setschedparam;
|
pthread_attr_setschedparam;
|
||||||
pthread_attr_init;
|
pthread_attr_init;
|
||||||
pthread_barrierattr_destroy;
|
pthread_barrierattr_destroy;
|
||||||
|
pthread_barrierattr_getpshared;
|
||||||
pthread_barrierattr_init;
|
pthread_barrierattr_init;
|
||||||
|
pthread_barrierattr_setpshared;
|
||||||
pthread_cond_broadcast;
|
pthread_cond_broadcast;
|
||||||
pthread_cond_destroy;
|
pthread_cond_destroy;
|
||||||
pthread_cond_init;
|
pthread_cond_init;
|
||||||
@@ -127,7 +129,9 @@ libc {
|
|||||||
|
|
||||||
GLIBC_2.42 {
|
GLIBC_2.42 {
|
||||||
pthread_barrierattr_destroy;
|
pthread_barrierattr_destroy;
|
||||||
|
pthread_barrierattr_getpshared;
|
||||||
pthread_barrierattr_init;
|
pthread_barrierattr_init;
|
||||||
|
pthread_barrierattr_setpshared;
|
||||||
pthread_mutex_consistent; pthread_mutex_consistent_np;
|
pthread_mutex_consistent; pthread_mutex_consistent_np;
|
||||||
pthread_mutex_getprioceiling;
|
pthread_mutex_getprioceiling;
|
||||||
pthread_mutex_setprioceiling;
|
pthread_mutex_setprioceiling;
|
||||||
@@ -207,8 +211,6 @@ libpthread {
|
|||||||
pthread_atfork;
|
pthread_atfork;
|
||||||
|
|
||||||
pthread_barrier_destroy; pthread_barrier_init; pthread_barrier_wait;
|
pthread_barrier_destroy; pthread_barrier_init; pthread_barrier_wait;
|
||||||
pthread_barrierattr_getpshared;
|
|
||||||
pthread_barrierattr_setpshared;
|
|
||||||
|
|
||||||
pthread_cancel;
|
pthread_cancel;
|
||||||
|
|
||||||
|
@@ -18,11 +18,18 @@
|
|||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <pt-internal.h>
|
#include <pt-internal.h>
|
||||||
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
pthread_barrierattr_getpshared (const pthread_barrierattr_t *attr,
|
__pthread_barrierattr_getpshared (const pthread_barrierattr_t *attr,
|
||||||
int *pshared)
|
int *pshared)
|
||||||
{
|
{
|
||||||
*pshared = attr->__pshared;
|
*pshared = attr->__pshared;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
libc_hidden_def (__pthread_barrierattr_getpshared)
|
||||||
|
versioned_symbol (libc, __pthread_barrierattr_getpshared, pthread_barrierattr_getpshared, GLIBC_2_42);
|
||||||
|
|
||||||
|
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_42)
|
||||||
|
compat_symbol (libpthread, __pthread_barrierattr_getpshared, pthread_barrierattr_getpshared, GLIBC_2_12);
|
||||||
|
#endif
|
||||||
|
@@ -18,9 +18,10 @@
|
|||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <pt-internal.h>
|
#include <pt-internal.h>
|
||||||
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
pthread_barrierattr_setpshared (pthread_barrierattr_t *attr, int pshared)
|
__pthread_barrierattr_setpshared (pthread_barrierattr_t *attr, int pshared)
|
||||||
{
|
{
|
||||||
switch (pshared)
|
switch (pshared)
|
||||||
{
|
{
|
||||||
@@ -35,4 +36,10 @@ pthread_barrierattr_setpshared (pthread_barrierattr_t *attr, int pshared)
|
|||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
libc_hidden_def (__pthread_barrierattr_setpshared)
|
||||||
|
versioned_symbol (libc, __pthread_barrierattr_setpshared, pthread_barrierattr_setpshared, GLIBC_2_42);
|
||||||
|
|
||||||
|
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_42)
|
||||||
|
compat_symbol (libpthread, __pthread_barrierattr_setpshared, pthread_barrierattr_setpshared, GLIBC_2_12);
|
||||||
|
#endif
|
||||||
stub_warning (pthread_barrierattr_setpshared)
|
stub_warning (pthread_barrierattr_setpshared)
|
||||||
|
@@ -33,8 +33,14 @@ extern void __pthread_init_static_tls (struct link_map *) attribute_hidden;
|
|||||||
|
|
||||||
extern int __pthread_barrierattr_destroy (pthread_barrierattr_t *__attr);
|
extern int __pthread_barrierattr_destroy (pthread_barrierattr_t *__attr);
|
||||||
libc_hidden_proto (__pthread_barrierattr_destroy)
|
libc_hidden_proto (__pthread_barrierattr_destroy)
|
||||||
|
extern int __pthread_barrierattr_getpshared (const pthread_barrierattr_t *__attr,
|
||||||
|
int *__pshared);
|
||||||
|
libc_hidden_proto (__pthread_barrierattr_getpshared)
|
||||||
extern int __pthread_barrierattr_init (pthread_barrierattr_t *__attr);
|
extern int __pthread_barrierattr_init (pthread_barrierattr_t *__attr);
|
||||||
libc_hidden_proto (__pthread_barrierattr_init)
|
libc_hidden_proto (__pthread_barrierattr_init)
|
||||||
|
extern int __pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr,
|
||||||
|
int __pshared);
|
||||||
|
libc_hidden_proto (__pthread_barrierattr_setpshared)
|
||||||
extern int __pthread_mutex_init (pthread_mutex_t *__mutex, const pthread_mutexattr_t *__attr);
|
extern int __pthread_mutex_init (pthread_mutex_t *__mutex, const pthread_mutexattr_t *__attr);
|
||||||
libc_hidden_proto (__pthread_mutex_init)
|
libc_hidden_proto (__pthread_mutex_init)
|
||||||
extern int __pthread_mutex_clocklock (pthread_mutex_t *__mutex, clockid_t __clockid,
|
extern int __pthread_mutex_clocklock (pthread_mutex_t *__mutex, clockid_t __clockid,
|
||||||
|
@@ -50,7 +50,9 @@ GLIBC_2.12 pthread_attr_setstack F
|
|||||||
GLIBC_2.12 pthread_attr_setstackaddr F
|
GLIBC_2.12 pthread_attr_setstackaddr F
|
||||||
GLIBC_2.12 pthread_attr_setstacksize F
|
GLIBC_2.12 pthread_attr_setstacksize F
|
||||||
GLIBC_2.12 pthread_barrierattr_destroy 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_init F
|
||||||
|
GLIBC_2.12 pthread_barrierattr_setpshared F
|
||||||
GLIBC_2.12 pthread_cond_broadcast F
|
GLIBC_2.12 pthread_cond_broadcast F
|
||||||
GLIBC_2.12 pthread_cond_destroy F
|
GLIBC_2.12 pthread_cond_destroy F
|
||||||
GLIBC_2.12 pthread_cond_init F
|
GLIBC_2.12 pthread_cond_init F
|
||||||
@@ -2564,7 +2566,9 @@ GLIBC_2.41 pthread_mutexattr_setrobust_np F
|
|||||||
GLIBC_2.41 pthread_mutexattr_settype F
|
GLIBC_2.41 pthread_mutexattr_settype F
|
||||||
GLIBC_2.41 pthread_sigmask F
|
GLIBC_2.41 pthread_sigmask F
|
||||||
GLIBC_2.42 pthread_barrierattr_destroy F
|
GLIBC_2.42 pthread_barrierattr_destroy F
|
||||||
|
GLIBC_2.42 pthread_barrierattr_getpshared F
|
||||||
GLIBC_2.42 pthread_barrierattr_init F
|
GLIBC_2.42 pthread_barrierattr_init F
|
||||||
|
GLIBC_2.42 pthread_barrierattr_setpshared F
|
||||||
GLIBC_2.42 pthread_mutex_consistent F
|
GLIBC_2.42 pthread_mutex_consistent F
|
||||||
GLIBC_2.42 pthread_mutex_consistent_np F
|
GLIBC_2.42 pthread_mutex_consistent_np F
|
||||||
GLIBC_2.42 pthread_mutex_getprioceiling F
|
GLIBC_2.42 pthread_mutex_getprioceiling F
|
||||||
|
@@ -25,8 +25,6 @@ GLIBC_2.12 pthread_atfork F
|
|||||||
GLIBC_2.12 pthread_barrier_destroy F
|
GLIBC_2.12 pthread_barrier_destroy F
|
||||||
GLIBC_2.12 pthread_barrier_init F
|
GLIBC_2.12 pthread_barrier_init F
|
||||||
GLIBC_2.12 pthread_barrier_wait F
|
GLIBC_2.12 pthread_barrier_wait F
|
||||||
GLIBC_2.12 pthread_barrierattr_getpshared F
|
|
||||||
GLIBC_2.12 pthread_barrierattr_setpshared F
|
|
||||||
GLIBC_2.12 pthread_cancel F
|
GLIBC_2.12 pthread_cancel F
|
||||||
GLIBC_2.12 pthread_create F
|
GLIBC_2.12 pthread_create F
|
||||||
GLIBC_2.12 pthread_detach F
|
GLIBC_2.12 pthread_detach F
|
||||||
|
@@ -1532,7 +1532,9 @@ GLIBC_2.38 pthread_attr_setstack F
|
|||||||
GLIBC_2.38 pthread_attr_setstackaddr F
|
GLIBC_2.38 pthread_attr_setstackaddr F
|
||||||
GLIBC_2.38 pthread_attr_setstacksize F
|
GLIBC_2.38 pthread_attr_setstacksize F
|
||||||
GLIBC_2.38 pthread_barrierattr_destroy 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_init F
|
||||||
|
GLIBC_2.38 pthread_barrierattr_setpshared F
|
||||||
GLIBC_2.38 pthread_cond_broadcast F
|
GLIBC_2.38 pthread_cond_broadcast F
|
||||||
GLIBC_2.38 pthread_cond_clockwait F
|
GLIBC_2.38 pthread_cond_clockwait F
|
||||||
GLIBC_2.38 pthread_cond_destroy F
|
GLIBC_2.38 pthread_cond_destroy F
|
||||||
@@ -2247,7 +2249,9 @@ GLIBC_2.41 pthread_mutexattr_setrobust_np F
|
|||||||
GLIBC_2.41 pthread_mutexattr_settype F
|
GLIBC_2.41 pthread_mutexattr_settype F
|
||||||
GLIBC_2.41 pthread_sigmask F
|
GLIBC_2.41 pthread_sigmask F
|
||||||
GLIBC_2.42 pthread_barrierattr_destroy F
|
GLIBC_2.42 pthread_barrierattr_destroy F
|
||||||
|
GLIBC_2.42 pthread_barrierattr_getpshared F
|
||||||
GLIBC_2.42 pthread_barrierattr_init F
|
GLIBC_2.42 pthread_barrierattr_init F
|
||||||
|
GLIBC_2.42 pthread_barrierattr_setpshared F
|
||||||
GLIBC_2.42 pthread_mutex_consistent F
|
GLIBC_2.42 pthread_mutex_consistent F
|
||||||
GLIBC_2.42 pthread_mutex_consistent_np F
|
GLIBC_2.42 pthread_mutex_consistent_np F
|
||||||
GLIBC_2.42 pthread_mutex_getprioceiling F
|
GLIBC_2.42 pthread_mutex_getprioceiling F
|
||||||
|
@@ -42,8 +42,6 @@ GLIBC_2.38 mtx_unlock F
|
|||||||
GLIBC_2.38 pthread_barrier_destroy F
|
GLIBC_2.38 pthread_barrier_destroy F
|
||||||
GLIBC_2.38 pthread_barrier_init F
|
GLIBC_2.38 pthread_barrier_init F
|
||||||
GLIBC_2.38 pthread_barrier_wait F
|
GLIBC_2.38 pthread_barrier_wait F
|
||||||
GLIBC_2.38 pthread_barrierattr_getpshared F
|
|
||||||
GLIBC_2.38 pthread_barrierattr_setpshared F
|
|
||||||
GLIBC_2.38 pthread_cancel F
|
GLIBC_2.38 pthread_cancel F
|
||||||
GLIBC_2.38 pthread_clockjoin_np F
|
GLIBC_2.38 pthread_clockjoin_np F
|
||||||
GLIBC_2.38 pthread_create F
|
GLIBC_2.38 pthread_create F
|
||||||
|
Reference in New Issue
Block a user