]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: move pthread_mutex_transfer_np into libc.
authorgfleury <gfleury@disroot.org>
Fri, 15 Aug 2025 18:14:54 +0000 (20:14 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 15 Aug 2025 23:44:51 +0000 (01:44 +0200)
Message-ID: <20250815181500.107433-14-gfleury@disroot.org>

htl/Makefile
htl/Versions
sysdeps/mach/hurd/htl/pt-mutex-transfer-np.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 64e484c589b43850cca259585a9085f6d8b4d96f..7ce56265f553be6a3332415ec388d1ba2807344d 100644 (file)
@@ -31,7 +31,6 @@ libpthread-routines := \
   pt-initialize \
   pt-join \
   pt-spin-inlines \
-  pt-mutex-transfer-np \
   pt-hurd-cond-wait \
   pt-hurd-cond-timedwait \
   pt-startup \
@@ -161,6 +160,7 @@ routines := \
   pt-mutex-lock \
   pt-mutex-setprioceiling \
   pt-mutex-timedlock \
+  pt-mutex-transfer-np \
   pt-mutex-trylock \
   pt-mutex-unlock \
   pt-mutexattr-destroy \
index c94bd61500b44b9821181a52ae4200e6157742a9..7d0b5f21be399c032f08677d2f408272779fb4ac 100644 (file)
@@ -5,6 +5,7 @@ libc {
     __pthread_get_cleanup_stack;
     __pthread_key_create;
     __pthread_kill;
+    __pthread_mutex_transfer_np;
     __pthread_self;
     pthread_attr_getdetachstate;
     pthread_attr_getinheritsched;
@@ -62,6 +63,7 @@ libc {
     pthread_mutex_lock;
     pthread_mutex_setprioceiling;
     pthread_mutex_timedlock;
+    pthread_mutex_transfer_np;
     pthread_mutex_trylock;
     pthread_mutex_unlock;
     pthread_mutexattr_destroy;
@@ -202,6 +204,7 @@ libc {
     pthread_getconcurrency;
     pthread_getcpuclockid;
     pthread_kill;
+    pthread_mutex_transfer_np;
     pthread_setconcurrency;
     pthread_setschedprio;
     pthread_testcancel;
@@ -276,8 +279,6 @@ libpthread {
     __errno_location; __h_errno_location;
   }
   GLIBC_2.12 {
-    __pthread_mutex_transfer_np;
-
     cthread_detach;
     cthread_fork;
     cthread_keycreate;
@@ -297,8 +298,6 @@ libpthread {
 
     pthread_join;
 
-    pthread_mutex_transfer_np;
-
     sem_close; sem_destroy; sem_getvalue; sem_init; sem_open; sem_post;
     sem_timedwait; sem_trywait; sem_unlink; sem_wait;
 
index 72f83ee0b0fdbe3f3b9263f448d582d97902456e..8961cb26bdbe22f96f6d8d6298899d64c1ba2b9c 100644 (file)
@@ -24,6 +24,8 @@
 #include "pt-mutex.h"
 #include <hurdlock.h>
 #include <unistd.h>
+#include <shlib-compat.h>
+#include <ldsodefs.h>
 
 int
 __pthread_mutex_transfer_np (pthread_mutex_t *mtxp, pthread_t th)
@@ -73,5 +75,8 @@ __pthread_mutex_transfer_np (pthread_mutex_t *mtxp, pthread_t th)
 
   return ret;
 }
+versioned_symbol (libc, __pthread_mutex_transfer_np, pthread_mutex_transfer_np, GLIBC_2_43);
 
-weak_alias (__pthread_mutex_transfer_np, pthread_mutex_transfer_np)
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_43)
+compat_symbol (libpthread, __pthread_mutex_transfer_np, pthread_mutex_transfer_np, GLIBC_2_12);
+#endif
index 0cbff57785b2f9293048cbd7ac23a9f1cdf1ae2e..e795ff5ace9c8ff8829d820ad9939c9457e70c49 100644 (file)
@@ -31,6 +31,7 @@ GLIBC_2.11 mkstemps64 F
 GLIBC_2.12 __pthread_get_cleanup_stack F
 GLIBC_2.12 __pthread_key_create F
 GLIBC_2.12 __pthread_kill F
+GLIBC_2.12 __pthread_mutex_transfer_np F
 GLIBC_2.12 __pthread_self F
 GLIBC_2.12 pthread_attr_destroy F
 GLIBC_2.12 pthread_attr_getdetachstate F
@@ -87,6 +88,7 @@ GLIBC_2.12 pthread_mutex_init F
 GLIBC_2.12 pthread_mutex_lock F
 GLIBC_2.12 pthread_mutex_setprioceiling F
 GLIBC_2.12 pthread_mutex_timedlock F
+GLIBC_2.12 pthread_mutex_transfer_np F
 GLIBC_2.12 pthread_mutex_trylock F
 GLIBC_2.12 pthread_mutex_unlock F
 GLIBC_2.12 pthread_mutexattr_destroy F
@@ -2648,6 +2650,7 @@ GLIBC_2.43 pthread_getattr_np F
 GLIBC_2.43 pthread_getconcurrency F
 GLIBC_2.43 pthread_getcpuclockid F
 GLIBC_2.43 pthread_kill F
+GLIBC_2.43 pthread_mutex_transfer_np F
 GLIBC_2.43 pthread_setconcurrency F
 GLIBC_2.43 pthread_setschedprio F
 GLIBC_2.43 pthread_testcancel F
index 3d225166884df056567d83deecb8b643a042ad0b..bfec2a2ad3b5bb91df26ee375018d04abf465217 100644 (file)
@@ -1,6 +1,5 @@
 GLIBC_2.12 __mutex_lock_solid F
 GLIBC_2.12 __mutex_unlock_solid F
-GLIBC_2.12 __pthread_mutex_transfer_np F
 GLIBC_2.12 __pthread_spin_destroy F
 GLIBC_2.12 __pthread_spin_init F
 GLIBC_2.12 __pthread_spin_lock F
@@ -23,7 +22,6 @@ GLIBC_2.12 pthread_create F
 GLIBC_2.12 pthread_detach F
 GLIBC_2.12 pthread_exit F
 GLIBC_2.12 pthread_join F
-GLIBC_2.12 pthread_mutex_transfer_np F
 GLIBC_2.12 pthread_spin_destroy F
 GLIBC_2.12 pthread_spin_init F
 GLIBC_2.12 pthread_spin_lock F
index 2b983e489d4199c98ff955895c588cedf2ee5458..bebf927688972d745b39d73fb4c73dc184cb4315 100644 (file)
@@ -394,6 +394,7 @@ GLIBC_2.38 __progname_full D 0x8
 GLIBC_2.38 __pthread_get_cleanup_stack F
 GLIBC_2.38 __pthread_key_create F
 GLIBC_2.38 __pthread_kill F
+GLIBC_2.38 __pthread_mutex_transfer_np F
 GLIBC_2.38 __pthread_self F
 GLIBC_2.38 __ptsname_r_chk F
 GLIBC_2.38 __pwrite64 F
@@ -1573,6 +1574,7 @@ GLIBC_2.38 pthread_mutex_init F
 GLIBC_2.38 pthread_mutex_lock F
 GLIBC_2.38 pthread_mutex_setprioceiling F
 GLIBC_2.38 pthread_mutex_timedlock F
+GLIBC_2.38 pthread_mutex_transfer_np F
 GLIBC_2.38 pthread_mutex_trylock F
 GLIBC_2.38 pthread_mutex_unlock F
 GLIBC_2.38 pthread_mutexattr_destroy F
@@ -2330,6 +2332,7 @@ GLIBC_2.43 pthread_getattr_np F
 GLIBC_2.43 pthread_getconcurrency F
 GLIBC_2.43 pthread_getcpuclockid F
 GLIBC_2.43 pthread_kill F
+GLIBC_2.43 pthread_mutex_transfer_np F
 GLIBC_2.43 pthread_setconcurrency F
 GLIBC_2.43 pthread_setschedprio F
 GLIBC_2.43 pthread_testcancel F
index cf451505396f79e50f119b6223bff449f461a0b7..9164c479a1ee5462768781e3b8102bc35535d4b6 100644 (file)
@@ -5,7 +5,6 @@ GLIBC_2.38 __errno_location F
 GLIBC_2.38 __h_errno_location F
 GLIBC_2.38 __mutex_lock_solid F
 GLIBC_2.38 __mutex_unlock_solid F
-GLIBC_2.38 __pthread_mutex_transfer_np F
 GLIBC_2.38 __pthread_spin_destroy F
 GLIBC_2.38 __pthread_spin_init F
 GLIBC_2.38 __pthread_spin_lock F
@@ -43,7 +42,6 @@ GLIBC_2.38 pthread_exit F
 GLIBC_2.38 pthread_hurd_cond_timedwait_np F
 GLIBC_2.38 pthread_hurd_cond_wait_np F
 GLIBC_2.38 pthread_join F
-GLIBC_2.38 pthread_mutex_transfer_np F
 GLIBC_2.38 pthread_spin_destroy F
 GLIBC_2.38 pthread_spin_init F
 GLIBC_2.38 pthread_spin_lock F