htl: move pthread_condattr_setpshared into libc.

Signed-off-by: gfleury <gfleury@disroot.org>
Message-ID: <20241126205329.2215295-8-gfleury@disroot.org>
This commit is contained in:
gfleury 2024-11-26 22:53:29 +02:00 committed by Samuel Thibault
parent 5ccb28e65d
commit a4b4b9a96b
7 changed files with 14 additions and 6 deletions

View File

@ -92,7 +92,6 @@ libpthread-routines := \
pt-rwlock-timedrdlock \
pt-rwlock-timedwrlock \
pt-rwlock-unlock \
pt-condattr-setpshared \
pt-cond-destroy \
pt-cond-init \
pt-cond-brdcast \
@ -206,6 +205,7 @@ routines := \
pt-condattr-getpshared \
pt-condattr-init \
pt-condattr-setclock \
pt-condattr-setpshared \
pt-getschedparam \
pt-nthreads \
pt-pthread_self \

View File

@ -31,6 +31,7 @@ libc {
pthread_condattr_destroy;
pthread_condattr_getpshared;
pthread_condattr_setclock;
pthread_condattr_setpshared;
}
GLIBC_2.21 {
@ -72,6 +73,7 @@ libc {
pthread_condattr_getclock;
pthread_condattr_getpshared;
pthread_condattr_setclock;
pthread_condattr_setpshared;
}
@ -129,8 +131,6 @@ libpthread {
pthread_cond_broadcast; pthread_cond_destroy; pthread_cond_init;
pthread_cond_signal; pthread_cond_timedwait; pthread_cond_wait;
pthread_condattr_setpshared;
pthread_create; pthread_detach; pthread_exit;
pthread_getattr_np;

View File

@ -17,10 +17,11 @@
<https://www.gnu.org/licenses/>. */
#include <pthread.h>
#include <shlib-compat.h>
#include <pt-internal.h>
int
pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
__pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
{
switch (pshared)
{
@ -36,3 +37,8 @@ pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
}
}
stub_warning (pthread_condattr_setpshared)
versioned_symbol (libc, __pthread_condattr_setpshared, pthread_condattr_setpshared, GLIBC_2_41);
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
compat_symbol (libpthread, __pthread_condattr_setpshared, pthread_condattr_setpshared, GLIBC_2_12);
#endif

View File

@ -54,6 +54,7 @@ GLIBC_2.12 pthread_condattr_getclock F
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_equal F
GLIBC_2.12 pthread_getschedparam F
GLIBC_2.12 pthread_self F
@ -2511,6 +2512,7 @@ GLIBC_2.41 pthread_attr_setstacksize F
GLIBC_2.41 pthread_condattr_getclock F
GLIBC_2.41 pthread_condattr_getpshared F
GLIBC_2.41 pthread_condattr_setclock F
GLIBC_2.41 pthread_condattr_setpshared F
GLIBC_2.5 __readlinkat_chk F
GLIBC_2.5 inet6_opt_append F
GLIBC_2.5 inet6_opt_find F

View File

@ -36,7 +36,6 @@ GLIBC_2.12 pthread_cond_init F
GLIBC_2.12 pthread_cond_signal F
GLIBC_2.12 pthread_cond_timedwait F
GLIBC_2.12 pthread_cond_wait F
GLIBC_2.12 pthread_condattr_setpshared F
GLIBC_2.12 pthread_create F
GLIBC_2.12 pthread_detach F
GLIBC_2.12 pthread_exit F

View File

@ -1542,6 +1542,7 @@ GLIBC_2.38 pthread_condattr_getclock F
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_equal F
GLIBC_2.38 pthread_exit F
GLIBC_2.38 pthread_getschedparam F
@ -2206,6 +2207,7 @@ GLIBC_2.41 pthread_attr_setstacksize F
GLIBC_2.41 pthread_condattr_getclock F
GLIBC_2.41 pthread_condattr_getpshared F
GLIBC_2.41 pthread_condattr_setclock F
GLIBC_2.41 pthread_condattr_setpshared F
HURD_CTHREADS_0.3 __cthread_getspecific F
HURD_CTHREADS_0.3 __cthread_keycreate F
HURD_CTHREADS_0.3 __cthread_setspecific F

View File

@ -55,7 +55,6 @@ GLIBC_2.38 pthread_cond_init F
GLIBC_2.38 pthread_cond_signal F
GLIBC_2.38 pthread_cond_timedwait F
GLIBC_2.38 pthread_cond_wait F
GLIBC_2.38 pthread_condattr_setpshared F
GLIBC_2.38 pthread_create F
GLIBC_2.38 pthread_detach F
GLIBC_2.38 pthread_exit F