htl: move sem_destroy into libc.

Message-ID: <20250817104023.91919-2-gfleury@disroot.org>
This commit is contained in:
gfleury 2025-08-17 12:40:16 +02:00 committed by Samuel Thibault
parent 35296a6e73
commit c2560a0c56
7 changed files with 13 additions and 5 deletions

View File

@ -35,7 +35,6 @@ libpthread-routines := \
pt-getname-np \
pt-setname-np \
sem_close \
sem-destroy \
sem-getvalue \
sem-init \
sem_open \
@ -211,6 +210,7 @@ routines := \
pt-timedblock-intr \
pt-wakeup \
pt-yield \
sem-destroy \
# routines
shared-only-routines = forward

View File

@ -101,6 +101,7 @@ libc {
pthread_sigmask;
pthread_testcancel;
pthread_yield;
sem_destroy;
}
GLIBC_2.21 {
@ -219,6 +220,7 @@ libc {
pthread_timedjoin_np;
pthread_tryjoin_np;
pthread_yield;
sem_destroy;
}
GLIBC_PRIVATE {
@ -311,7 +313,7 @@ libpthread {
pthread_create;
sem_close; sem_destroy; sem_getvalue; sem_init; sem_open; sem_post;
sem_close; sem_getvalue; sem_init; sem_open; sem_post;
sem_timedwait; sem_trywait; sem_unlink; sem_wait;
pthread_spin_destroy; pthread_spin_init; pthread_spin_lock;

View File

@ -21,6 +21,7 @@
#include <hurd.h>
#include <pt-internal.h>
#include <shlib-compat.h>
int
__sem_destroy (sem_t *sem)
@ -40,4 +41,7 @@ __sem_destroy (sem_t *sem)
return 0;
}
strong_alias (__sem_destroy, sem_destroy);
versioned_symbol (libc, __sem_destroy, sem_destroy, GLIBC_2_43);
# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_43)
compat_symbol (libpthread, __sem_destroy, sem_destroy, GLIBC_2_12);
#endif

View File

@ -128,6 +128,7 @@ GLIBC_2.12 pthread_setspecific F
GLIBC_2.12 pthread_sigmask F
GLIBC_2.12 pthread_testcancel F
GLIBC_2.12 pthread_yield F
GLIBC_2.12 sem_destroy F
GLIBC_2.13 __fentry__ F
GLIBC_2.14 syncfs F
GLIBC_2.15 __fdelt_chk F
@ -2666,6 +2667,7 @@ GLIBC_2.43 pthread_testcancel F
GLIBC_2.43 pthread_timedjoin_np F
GLIBC_2.43 pthread_tryjoin_np F
GLIBC_2.43 pthread_yield F
GLIBC_2.43 sem_destroy F
GLIBC_2.5 __readlinkat_chk F
GLIBC_2.5 inet6_opt_append F
GLIBC_2.5 inet6_opt_find F

View File

@ -25,7 +25,6 @@ GLIBC_2.12 pthread_spin_lock F
GLIBC_2.12 pthread_spin_trylock F
GLIBC_2.12 pthread_spin_unlock F
GLIBC_2.12 sem_close F
GLIBC_2.12 sem_destroy F
GLIBC_2.12 sem_getvalue F
GLIBC_2.12 sem_init F
GLIBC_2.12 sem_open F

View File

@ -1759,6 +1759,7 @@ GLIBC_2.38 seed48 F
GLIBC_2.38 seed48_r F
GLIBC_2.38 seekdir F
GLIBC_2.38 select F
GLIBC_2.38 sem_destroy F
GLIBC_2.38 semctl F
GLIBC_2.38 semget F
GLIBC_2.38 semop F
@ -2347,6 +2348,7 @@ GLIBC_2.43 pthread_testcancel F
GLIBC_2.43 pthread_timedjoin_np F
GLIBC_2.43 pthread_tryjoin_np F
GLIBC_2.43 pthread_yield F
GLIBC_2.43 sem_destroy F
HURD_CTHREADS_0.3 __cthread_getspecific F
HURD_CTHREADS_0.3 __cthread_keycreate F
HURD_CTHREADS_0.3 __cthread_setspecific F

View File

@ -45,7 +45,6 @@ GLIBC_2.38 pthread_spin_trylock F
GLIBC_2.38 pthread_spin_unlock F
GLIBC_2.38 sem_clockwait F
GLIBC_2.38 sem_close F
GLIBC_2.38 sem_destroy F
GLIBC_2.38 sem_getvalue F
GLIBC_2.38 sem_init F
GLIBC_2.38 sem_open F