]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: move sem_destroy into libc.
authorgfleury <gfleury@disroot.org>
Sun, 17 Aug 2025 10:40:16 +0000 (12:40 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 17 Aug 2025 22:22:43 +0000 (00:22 +0200)
Message-ID: <20250817104023.91919-2-gfleury@disroot.org>

htl/Makefile
htl/Versions
sysdeps/htl/sem-destroy.c
sysdeps/mach/hurd/i386/libc.abilist
sysdeps/mach/hurd/i386/libpthread.abilist
sysdeps/mach/hurd/x86_64/libc.abilist
sysdeps/mach/hurd/x86_64/libpthread.abilist

index ec48f8b91af2a73231f4a878f759c237216b2bd9..e4a3adc99cb3269406a5e1692cc2ac28ab78eac4 100644 (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
 
index 5570a2b6317550d2372cfdc28e07dc1356e3aec5..48e7fcead40308c32f663a7e9def7cc512e3c768 100644 (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;
index 89b162d64c7079a4aef771e28801118ff7c5f4b3..daecf1a7e4fdccc010c36075752bc9ea1419a64d 100644 (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
index 1e5454818a9e985f0efa6b45b049ef13dfce1513..80bf6408efb8ccc3906a56d4ebd437551855db45 100644 (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
index 8a056c89ffad68cab98e9586b5529699aae8f14f..99fdf00e1464a2bd016735c38569c8011a22df19 100644 (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
index 1bf1bcabe4c43e786def9a1493a4497e7ac8de03..b3d402f059162bbd15cc489b677aa60b6bc25b3c 100644 (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
index 5caa7bcfb99c47f569b4970e0028fab5ac94801e..a03bebdf9eec0904470a2f2876e0fde3dbc22635 100644 (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