diff options
author | gfleury <gfleury@disroot.org> | 2025-08-17 12:40:20 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-08-18 00:55:33 +0200 |
commit | 795f5f2a8b05a8d1636d95823246f11e9203eaa1 (patch) | |
tree | 024e71fa40d75a89ce87112346290f571147cfca /sysdeps | |
parent | 50f5ddc20abe4c389f2b8c4f34164ae3f330bb80 (diff) | |
download | glibc-795f5f2a8b05a8d1636d95823246f11e9203eaa1.zip glibc-795f5f2a8b05a8d1636d95823246f11e9203eaa1.tar.gz glibc-795f5f2a8b05a8d1636d95823246f11e9203eaa1.tar.bz2 |
htl: move sem_post into libc.
Message-ID: <20250817104023.91919-6-gfleury@disroot.org>
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/htl/include/semaphore.h | 2 | ||||
-rw-r--r-- | sysdeps/htl/sem-post.c | 8 | ||||
-rw-r--r-- | sysdeps/mach/hurd/i386/libc.abilist | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/i386/libpthread.abilist | 1 | ||||
-rw-r--r-- | sysdeps/mach/hurd/x86_64/libc.abilist | 2 | ||||
-rw-r--r-- | sysdeps/mach/hurd/x86_64/libpthread.abilist | 1 |
6 files changed, 11 insertions, 5 deletions
diff --git a/sysdeps/htl/include/semaphore.h b/sysdeps/htl/include/semaphore.h index 58fa2bf..5e5d3c1 100644 --- a/sysdeps/htl/include/semaphore.h +++ b/sysdeps/htl/include/semaphore.h @@ -3,7 +3,7 @@ #ifndef _ISOMAC extern __typeof (sem_post) __sem_post; -libpthread_hidden_proto (__sem_post) +libc_hidden_proto (__sem_post) #endif #endif diff --git a/sysdeps/htl/sem-post.c b/sysdeps/htl/sem-post.c index 36f20f9..419a5ec 100644 --- a/sysdeps/htl/sem-post.c +++ b/sysdeps/htl/sem-post.c @@ -23,6 +23,7 @@ #include <hurd.h> #include <pt-internal.h> +#include <shlib-compat.h> int __sem_post (sem_t *sem) @@ -61,5 +62,8 @@ __sem_post (sem_t *sem) return 0; } -libpthread_hidden_def (__sem_post) -strong_alias (__sem_post, sem_post); +libc_hidden_def (__sem_post) +versioned_symbol (libc, __sem_post, sem_post, GLIBC_2_43); +# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_43) +compat_symbol (libpthread, __sem_post, sem_post, GLIBC_2_12); +#endif diff --git a/sysdeps/mach/hurd/i386/libc.abilist b/sysdeps/mach/hurd/i386/libc.abilist index 9764b60..661bbf9 100644 --- a/sysdeps/mach/hurd/i386/libc.abilist +++ b/sysdeps/mach/hurd/i386/libc.abilist @@ -133,6 +133,7 @@ GLIBC_2.12 sem_destroy F GLIBC_2.12 sem_getvalue F GLIBC_2.12 sem_init F GLIBC_2.12 sem_open F +GLIBC_2.12 sem_post F GLIBC_2.13 __fentry__ F GLIBC_2.14 syncfs F GLIBC_2.15 __fdelt_chk F @@ -2676,6 +2677,7 @@ GLIBC_2.43 sem_destroy F GLIBC_2.43 sem_getvalue F GLIBC_2.43 sem_init F GLIBC_2.43 sem_open F +GLIBC_2.43 sem_post F GLIBC_2.5 __readlinkat_chk F GLIBC_2.5 inet6_opt_append F GLIBC_2.5 inet6_opt_find F diff --git a/sysdeps/mach/hurd/i386/libpthread.abilist b/sysdeps/mach/hurd/i386/libpthread.abilist index c7e8bc5..07dd753 100644 --- a/sysdeps/mach/hurd/i386/libpthread.abilist +++ b/sysdeps/mach/hurd/i386/libpthread.abilist @@ -24,7 +24,6 @@ GLIBC_2.12 pthread_spin_init F 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_post F GLIBC_2.12 sem_timedwait F GLIBC_2.12 sem_trywait F GLIBC_2.12 sem_unlink F diff --git a/sysdeps/mach/hurd/x86_64/libc.abilist b/sysdeps/mach/hurd/x86_64/libc.abilist index e64bf54..6fa0e6f 100644 --- a/sysdeps/mach/hurd/x86_64/libc.abilist +++ b/sysdeps/mach/hurd/x86_64/libc.abilist @@ -1764,6 +1764,7 @@ GLIBC_2.38 sem_destroy F GLIBC_2.38 sem_getvalue F GLIBC_2.38 sem_init F GLIBC_2.38 sem_open F +GLIBC_2.38 sem_post F GLIBC_2.38 semctl F GLIBC_2.38 semget F GLIBC_2.38 semop F @@ -2357,6 +2358,7 @@ GLIBC_2.43 sem_destroy F GLIBC_2.43 sem_getvalue F GLIBC_2.43 sem_init F GLIBC_2.43 sem_open F +GLIBC_2.43 sem_post F HURD_CTHREADS_0.3 __cthread_getspecific F HURD_CTHREADS_0.3 __cthread_keycreate F HURD_CTHREADS_0.3 __cthread_setspecific F diff --git a/sysdeps/mach/hurd/x86_64/libpthread.abilist b/sysdeps/mach/hurd/x86_64/libpthread.abilist index ee0fac3..38cf0d2 100644 --- a/sysdeps/mach/hurd/x86_64/libpthread.abilist +++ b/sysdeps/mach/hurd/x86_64/libpthread.abilist @@ -44,7 +44,6 @@ GLIBC_2.38 pthread_spin_lock F GLIBC_2.38 pthread_spin_trylock F GLIBC_2.38 pthread_spin_unlock F GLIBC_2.38 sem_clockwait F -GLIBC_2.38 sem_post F GLIBC_2.38 sem_timedwait F GLIBC_2.38 sem_trywait F GLIBC_2.38 sem_unlink F |