]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: move pthread_condattr_init into libc.
authorgfleury <gfleury@disroot.org>
Tue, 26 Nov 2024 20:53:27 +0000 (22:53 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 9 Dec 2024 01:03:18 +0000 (02:03 +0100)
Signed-off-by: gfleury <gfleury@disroot.org>
Message-ID: <20241126205329.2215295-6-gfleury@disroot.org>

htl/Makefile
htl/Versions
htl/forward.c
htl/pt-initialize.c
sysdeps/htl/pt-condattr-init.c
sysdeps/htl/pthread-functions.h
sysdeps/htl/pthreadP.h
sysdeps/mach/hurd/i386/libc.abilist
sysdeps/mach/hurd/i386/libpthread.abilist
sysdeps/mach/hurd/x86_64/libpthread.abilist

index 60a28e0c594931698b02ae404d445796c768f7ca..e68cf2b5337593f19fd05ebedf479b8f14807e06 100644 (file)
@@ -92,7 +92,6 @@ libpthread-routines := \
   pt-rwlock-timedrdlock \
   pt-rwlock-timedwrlock \
   pt-rwlock-unlock \
-  pt-condattr-init \
   pt-condattr-setclock \
   pt-condattr-setpshared \
   pt-cond-destroy \
@@ -206,6 +205,7 @@ routines := \
   pt-condattr-destroy \
   pt-condattr-getclock \
   pt-condattr-getpshared \
+  pt-condattr-init \
   pt-getschedparam \
   pt-nthreads \
   pt-pthread_self \
index 331060141bbf241f8ecf8497844340bac565af3c..95c8a521849bdbdeca3375c835a51c2fb6df9cf1 100644 (file)
@@ -27,6 +27,7 @@ libc {
     pthread_attr_setschedparam;
     pthread_attr_init;
     pthread_condattr_getclock;
+    pthread_condattr_init;
     pthread_condattr_destroy;
     pthread_condattr_getpshared;
   }
@@ -87,6 +88,7 @@ libc {
     __pthread_attr_setstacksize;
     __pthread_attr_setstackaddr;
     __pthread_attr_setstack;
+    __pthread_condattr_init;
     __pthread_default_condattr;
   }
 }
@@ -125,7 +127,6 @@ libpthread {
     pthread_cond_broadcast; pthread_cond_destroy; pthread_cond_init;
     pthread_cond_signal; pthread_cond_timedwait; pthread_cond_wait;
 
-    pthread_condattr_init;
     pthread_condattr_setclock; pthread_condattr_setpshared;
 
     pthread_create; pthread_detach; pthread_exit;
index 3fe0a74d0078388fe5fd738f1b686f1121e8da7f..48825de0b03f3a50bd3fb9052547c93b64f962f8 100644 (file)
@@ -53,9 +53,6 @@ name decl                                                                   \
 #define FORWARD(name, decl, params, defretval) \
   FORWARD2 (name, int, decl, params, return defretval)
 
-FORWARD (pthread_condattr_init, (pthread_condattr_t *attr), (attr), 0)
-
-
 FORWARD (pthread_cond_broadcast, (pthread_cond_t *cond), (cond), 0)
 FORWARD (pthread_cond_destroy, (pthread_cond_t *cond), (cond), 0)
 FORWARD (pthread_cond_init,
index 632ee84773ca2cf45cf29084f0fd5921bbb68e94..ae721f3a13eebd76b90352594de406945726bb44 100644 (file)
@@ -27,7 +27,6 @@
 
 #if IS_IN (libpthread)
 static const struct pthread_functions pthread_functions = {
-  .ptr_pthread_condattr_init = __pthread_condattr_init,
   .ptr_pthread_cond_broadcast = __pthread_cond_broadcast,
   .ptr_pthread_cond_destroy = __pthread_cond_destroy,
   .ptr_pthread_cond_init = __pthread_cond_init,
index 4f7486a2f5ee0ebe106cf66f4a7356e150dd1cd0..7ffa1622b5ea7c9811951ddfc2cecc8694a994b7 100644 (file)
@@ -17,6 +17,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <pthread.h>
+#include <shlib-compat.h>
 #include <pt-internal.h>
 
 int
@@ -27,5 +28,9 @@ __pthread_condattr_init (pthread_condattr_t *attr)
   *attr = __pthread_default_condattr;
   return 0;
 }
+libc_hidden_def (__pthread_condattr_init)
+versioned_symbol (libc, __pthread_condattr_init, pthread_condattr_init, GLIBC_2_21);
 
-weak_alias (__pthread_condattr_init, pthread_condattr_init);
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_21)
+compat_symbol (libc, __pthread_condattr_init, pthread_condattr_init, GLIBC_2_12);
+#endif
index 6bd01682bb1c06bb9ec2c5d5e0f808e16c67b12d..8ee01d3ff4af013516341537dbeee300b1a50864 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <pthread.h>
 
-int __pthread_condattr_init (pthread_condattr_t *);
 int __pthread_cond_broadcast (pthread_cond_t *);
 int __pthread_cond_destroy (pthread_cond_t *);
 int __pthread_cond_init (pthread_cond_t *,
@@ -57,7 +56,6 @@ int _cthreads_ftrylockfile (FILE *);
    so if possible avoid breaking it and append new hooks to the end.  */
 struct pthread_functions
 {
-  int (*ptr_pthread_condattr_init) (pthread_condattr_t *);
   int (*ptr_pthread_cond_broadcast) (pthread_cond_t *);
   int (*ptr_pthread_cond_destroy) (pthread_cond_t *);
   int (*ptr_pthread_cond_init) (pthread_cond_t *,
index 68e6cf17b04737c43f6fd3611f3dd20cd8678788..afdf2cbd9f4c2aeb256f2ba429872d576210938f 100644 (file)
@@ -98,11 +98,13 @@ int __pthread_attr_getstack (const pthread_attr_t *, void **, size_t *);
 libc_hidden_proto (__pthread_attr_getstack)
 void __pthread_testcancel (void);
 int __pthread_attr_init (pthread_attr_t *attr);
+int __pthread_condattr_init (pthread_condattr_t *attr);
 
 #define __pthread_raise_internal(__sig) raise (__sig)
 
 libc_hidden_proto (__pthread_self)
 libc_hidden_proto (__pthread_attr_init)
+libc_hidden_proto (__pthread_condattr_init)
 
 #if IS_IN (libpthread)
 hidden_proto (__pthread_create)
index de6db602107a0be29e9f356ecd29de3fe150d65b..1e3e648978e478831fb7600965bd6ab6ca3b01eb 100644 (file)
@@ -52,6 +52,7 @@ GLIBC_2.12 pthread_attr_setstacksize F
 GLIBC_2.12 pthread_condattr_destroy F
 GLIBC_2.12 pthread_condattr_getclock F
 GLIBC_2.12 pthread_condattr_getpshared F
+GLIBC_2.12 pthread_condattr_init F
 GLIBC_2.12 pthread_equal F
 GLIBC_2.12 pthread_getschedparam F
 GLIBC_2.12 pthread_self F
index 6a1e221edc5dd846c2ebf5411e2314d526861a3a..6bacf9a4067f032c71635b08b7ef6fe2942b3163 100644 (file)
@@ -36,7 +36,6 @@ GLIBC_2.12 pthread_cond_init F
 GLIBC_2.12 pthread_cond_signal F
 GLIBC_2.12 pthread_cond_timedwait F
 GLIBC_2.12 pthread_cond_wait F
-GLIBC_2.12 pthread_condattr_init F
 GLIBC_2.12 pthread_condattr_setclock F
 GLIBC_2.12 pthread_condattr_setpshared F
 GLIBC_2.12 pthread_create F
index ae4480ca2da5af63630a8e786d0d9d2a125b8bf0..35ff3d0333b2adf2a280318fe29b2c357b5de8e7 100644 (file)
@@ -55,7 +55,6 @@ GLIBC_2.38 pthread_cond_init F
 GLIBC_2.38 pthread_cond_signal F
 GLIBC_2.38 pthread_cond_timedwait F
 GLIBC_2.38 pthread_cond_wait F
-GLIBC_2.38 pthread_condattr_init F
 GLIBC_2.38 pthread_condattr_setclock F
 GLIBC_2.38 pthread_condattr_setpshared F
 GLIBC_2.38 pthread_create F