]> sourceware.org Git - glibc.git/commitdiff
htl: move pthread_attr_destroy into libc.
authorgfleury <gfleury@disroot.org>
Mon, 18 Nov 2024 11:21:33 +0000 (13:21 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 19 Nov 2024 00:08:14 +0000 (01:08 +0100)
Signed-off-by: gfleury <gfleury@disroot.org>
htl/Makefile
htl/Versions
htl/forward.c
htl/pt-initialize.c
sysdeps/htl/pt-attr-destroy.c
sysdeps/htl/pthread-functions.h
sysdeps/mach/hurd/i386/libc.abilist
sysdeps/mach/hurd/i386/libpthread.abilist
sysdeps/mach/hurd/x86_64/libpthread.abilist

index c5d1c473a09629a1a0528e8d52439c5582d24b3a..bd1afe800947741704165a22cea184b6658c7280 100644 (file)
@@ -26,7 +26,6 @@ LCLHDRS :=
 
 libpthread-routines := \
   pt-attr \
-  pt-attr-destroy \
   pt-attr-getguardsize \
   pt-attr-getscope \
   pt-attr-getstack \
@@ -199,6 +198,7 @@ routines := \
   forward \
   htlfreeres \
   libc_pthread_init \
+  pt-attr-destroy \
   pt-attr-getdetachstate \
   pt-attr-getinheritsched \
   pt-attr-getschedparam \
index 949c1867fe9c0fb1280d2e12f12929e37b4f9501..34b1f87a5f55b5c71f9f50aee8555510fc4a6a40 100644 (file)
@@ -13,6 +13,7 @@ libc {
     pthread_equal;
     pthread_getschedparam;
     pthread_setschedparam;
+    pthread_attr_destroy;
   }
 
   GLIBC_2.21 {
@@ -77,7 +78,6 @@ libpthread {
 
     pthread_atfork;
 
-    pthread_attr_destroy;
     pthread_attr_getguardsize;
     pthread_attr_getscope; pthread_attr_getstack; pthread_attr_getstackaddr;
     pthread_attr_getstacksize; pthread_attr_init;
index ee89e50b3c34334980522dd80b8f53238285a8c1..579e8cba4ce3e096ec6bba2f239c43580e743228 100644 (file)
@@ -53,8 +53,6 @@ name decl                                                                   \
 #define FORWARD(name, decl, params, defretval) \
   FORWARD2 (name, int, decl, params, return defretval)
 
-FORWARD (pthread_attr_destroy, (pthread_attr_t *attr), (attr), 0)
-
 FORWARD (pthread_attr_init, (pthread_attr_t *attr), (attr), 0)
 
 FORWARD (pthread_attr_setschedparam,
index 47b992fe06c896a89087cf2b36b19e37546ba292..0368bfa4c71cafae408cfc1cbcf35c0d9b4e40a7 100644 (file)
@@ -27,7 +27,6 @@
 
 #if IS_IN (libpthread)
 static const struct pthread_functions pthread_functions = {
-  .ptr_pthread_attr_destroy = __pthread_attr_destroy,
   .ptr_pthread_attr_init = __pthread_attr_init,
   .ptr_pthread_attr_setschedparam = __pthread_attr_setschedparam,
   .ptr_pthread_attr_getscope = __pthread_attr_getscope,
index 8b6814e44753254772e9c39b11df4a2c9e840c49..3ad76fa365b66cc19d57fa0e8036716b8ea9c04a 100644 (file)
@@ -17,6 +17,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <pthread.h>
+#include <shlib-compat.h>
 #include <pt-internal.h>
 
 int
@@ -24,4 +25,8 @@ __pthread_attr_destroy (pthread_attr_t *attr)
 {
   return 0;
 }
-weak_alias (__pthread_attr_destroy, pthread_attr_destroy);
+versioned_symbol (libc, __pthread_attr_destroy, pthread_attr_destroy, GLIBC_2_21);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_21)
+compat_symbol (libc, __pthread_attr_destroy, pthread_attr_destroy, GLIBC_2_12);
+#endif
index f7b6fb7976b268b414d7f57520dad5366b9cb3bc..0a98d9f5d8d97428230c0b0005bc1d889ea67a16 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <pthread.h>
 
-int __pthread_attr_destroy (pthread_attr_t *);
 int __pthread_attr_init (pthread_attr_t *);
 int __pthread_attr_setschedparam (pthread_attr_t *,
                                 const struct sched_param *);
@@ -64,7 +63,6 @@ int _cthreads_ftrylockfile (FILE *);
    so if possible avoid breaking it and append new hooks to the end.  */
 struct pthread_functions
 {
-  int (*ptr_pthread_attr_destroy) (pthread_attr_t *);
   int (*ptr_pthread_attr_init) (pthread_attr_t *);
   int (*ptr_pthread_attr_setschedparam) (pthread_attr_t *,
                                         const struct sched_param *);
index dc2c6b505b739718ccda3de9b88caa60f8545bb9..83c3218398ec071c4a595e88a6f89fb441e8b52b 100644 (file)
@@ -29,6 +29,7 @@ GLIBC_2.11 mkostemps64 F
 GLIBC_2.11 mkstemps F
 GLIBC_2.11 mkstemps64 F
 GLIBC_2.12 __pthread_self F
+GLIBC_2.12 pthread_attr_destroy F
 GLIBC_2.12 pthread_attr_getdetachstate F
 GLIBC_2.12 pthread_attr_getinheritsched F
 GLIBC_2.12 pthread_attr_getschedparam F
index 3ea7cb41fa50c711e9af953993f7d4211a9c2453..f8f5daf56749e421b0d040606c3d2be4165ecaee 100644 (file)
@@ -22,7 +22,6 @@ GLIBC_2.12 flockfile F
 GLIBC_2.12 ftrylockfile F
 GLIBC_2.12 funlockfile F
 GLIBC_2.12 pthread_atfork F
-GLIBC_2.12 pthread_attr_destroy F
 GLIBC_2.12 pthread_attr_getguardsize F
 GLIBC_2.12 pthread_attr_getscope F
 GLIBC_2.12 pthread_attr_getstack F
index 69999df5bbbf8c09e503461098730a984bccf763..54b3e34b9b868609d1fa4c886f440ba0303e3eb9 100644 (file)
@@ -39,7 +39,6 @@ GLIBC_2.38 mtx_lock F
 GLIBC_2.38 mtx_timedlock F
 GLIBC_2.38 mtx_trylock F
 GLIBC_2.38 mtx_unlock F
-GLIBC_2.38 pthread_attr_destroy F
 GLIBC_2.38 pthread_attr_getguardsize F
 GLIBC_2.38 pthread_attr_getscope F
 GLIBC_2.38 pthread_attr_getstack F
This page took 0.04752 seconds and 5 git commands to generate.