]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: move pthread_rwlockattr_init into libc.
authorgfleury <gfleury@disroot.org>
Sun, 16 Feb 2025 14:54:26 +0000 (16:54 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 16 Feb 2025 21:59:07 +0000 (22:59 +0100)
Signed-off-by: gfleury <gfleury@disroot.org>
Message-ID: <20250216145434.7089-3-gfleury@disroot.org>

htl/Makefile
htl/Versions
sysdeps/htl/pt-rwlockattr-init.c
sysdeps/htl/pthreadP.h
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 13215943d767d869c46273f2dce0ddba968fbdd1..2d275dac1c3a7f74458459064646114ee37f19b3 100644 (file)
@@ -45,7 +45,6 @@ libpthread-routines := \
   pt-testcancel \
   pt-cancel \
   pt-mutex-transfer-np \
-  pt-rwlockattr-init \
   pt-rwlockattr-destroy \
   pt-rwlockattr-getpshared \
   pt-rwlockattr-setpshared \
@@ -201,6 +200,7 @@ routines := \
   pt-nthreads \
   pt-pthread_self \
   pt-rwlock-attr \
+  pt-rwlockattr-init \
   pt-self pt-equal \
   pt-setcancelstate \
   pt-setcanceltype \
index ff24da019053b833c88ecb2e39faf4d1bb907b71..c02ac04e22b0a12f4596b7d4c002a0ef4114a708 100644 (file)
@@ -63,6 +63,7 @@ libc {
     pthread_mutexattr_setprotocol;
     pthread_mutexattr_setpshared;
     pthread_mutexattr_settype;
+    pthread_rwlockattr_init;
     pthread_setcancelstate;
     pthread_setcanceltype;
     pthread_sigmask;
@@ -142,6 +143,7 @@ libc {
     pthread_mutex_getprioceiling;
     pthread_mutex_setprioceiling;
     pthread_mutex_trylock;
+    pthread_rwlockattr_init;
   }
 
   GLIBC_PRIVATE {
@@ -243,7 +245,7 @@ libpthread {
     pthread_rwlock_unlock; pthread_rwlock_wrlock;
 
     pthread_rwlockattr_destroy; pthread_rwlockattr_getpshared;
-    pthread_rwlockattr_init; pthread_rwlockattr_setpshared;
+    pthread_rwlockattr_setpshared;
 
     pthread_setconcurrency;
     pthread_setschedprio; pthread_setspecific;
index 04a3ca62be6155e5b57c99414e90a5ffa34cd057..ce3f3c655d061c8ecae662ad60fec4c934de7e34 100644 (file)
 
 #include <pthread.h>
 #include <pt-internal.h>
+#include <shlib-compat.h>
 
 int
-pthread_rwlockattr_init (pthread_rwlockattr_t *attr)
+__pthread_rwlockattr_init (pthread_rwlockattr_t *attr)
 {
   ASSERT_TYPE_SIZE (pthread_rwlockattr_t, __SIZEOF_PTHREAD_RWLOCKATTR_T);
 
   *attr = __pthread_default_rwlockattr;
   return 0;
 }
+libc_hidden_def (__pthread_rwlockattr_init)
+versioned_symbol (libc, __pthread_rwlockattr_init, pthread_rwlockattr_init, GLIBC_2_42);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_42)
+compat_symbol (libpthread, __pthread_rwlockattr_init, pthread_rwlockattr_init, GLIBC_2_12);
+#endif
index 9ded2f8576b3f9a4648e376a27a8b7e3b7bea1e6..2f779d27cc2f001f8251850f81ebffb6fcebaa17 100644 (file)
@@ -114,6 +114,8 @@ libc_hidden_proto (__pthread_mutexattr_gettype)
 extern int __pthread_mutexattr_settype(pthread_mutexattr_t *__attr,
                                     int __type);
 libc_hidden_proto (__pthread_mutexattr_settype)
+extern int __pthread_rwlockattr_init (pthread_rwlockattr_t *__attr);
+libc_hidden_proto (__pthread_rwlockattr_init)
 
 extern int __pthread_cond_init (pthread_cond_t *cond,
                                const pthread_condattr_t *cond_attr);
index 0a100f876deb8d66436df27caee09906ebf5190a..096ab46b38bdf1fddd148f10a4d13ad2f51e06c5 100644 (file)
@@ -88,6 +88,7 @@ GLIBC_2.12 pthread_mutexattr_setprioceiling F
 GLIBC_2.12 pthread_mutexattr_setprotocol F
 GLIBC_2.12 pthread_mutexattr_setpshared F
 GLIBC_2.12 pthread_mutexattr_settype F
+GLIBC_2.12 pthread_rwlockattr_init F
 GLIBC_2.12 pthread_self F
 GLIBC_2.12 pthread_setcancelstate F
 GLIBC_2.12 pthread_setcanceltype F
@@ -2580,6 +2581,7 @@ GLIBC_2.42 pthread_mutex_consistent_np F
 GLIBC_2.42 pthread_mutex_getprioceiling F
 GLIBC_2.42 pthread_mutex_setprioceiling F
 GLIBC_2.42 pthread_mutex_trylock F
+GLIBC_2.42 pthread_rwlockattr_init F
 GLIBC_2.5 __readlinkat_chk F
 GLIBC_2.5 inet6_opt_append F
 GLIBC_2.5 inet6_opt_find F
index d85b9d69128800c06e9e959ecafc45ae5f9c8f45..7a20505888591deade39243b5ba2f2f3fcd77d44 100644 (file)
@@ -47,7 +47,6 @@ GLIBC_2.12 pthread_rwlock_unlock F
 GLIBC_2.12 pthread_rwlock_wrlock F
 GLIBC_2.12 pthread_rwlockattr_destroy F
 GLIBC_2.12 pthread_rwlockattr_getpshared F
-GLIBC_2.12 pthread_rwlockattr_init F
 GLIBC_2.12 pthread_rwlockattr_setpshared F
 GLIBC_2.12 pthread_setconcurrency F
 GLIBC_2.12 pthread_setschedprio F
index 2266d3c8467f87c7b2e0238c41c0f9747b60992f..d0010a3ce96c28007190761417c109824ca97b48 100644 (file)
@@ -1579,6 +1579,7 @@ GLIBC_2.38 pthread_mutexattr_setpshared F
 GLIBC_2.38 pthread_mutexattr_setrobust F
 GLIBC_2.38 pthread_mutexattr_setrobust_np F
 GLIBC_2.38 pthread_mutexattr_settype F
+GLIBC_2.38 pthread_rwlockattr_init F
 GLIBC_2.38 pthread_self F
 GLIBC_2.38 pthread_setcancelstate F
 GLIBC_2.38 pthread_setcanceltype F
@@ -2263,6 +2264,7 @@ GLIBC_2.42 pthread_mutex_consistent_np F
 GLIBC_2.42 pthread_mutex_getprioceiling F
 GLIBC_2.42 pthread_mutex_setprioceiling F
 GLIBC_2.42 pthread_mutex_trylock F
+GLIBC_2.42 pthread_rwlockattr_init F
 HURD_CTHREADS_0.3 __cthread_getspecific F
 HURD_CTHREADS_0.3 __cthread_keycreate F
 HURD_CTHREADS_0.3 __cthread_setspecific F
index 37b6190c13f596b310ad03405cc6f93f0572319b..a5f5b0a2c735ce3fa81107e827ed6e8f3884a74a 100644 (file)
@@ -69,7 +69,6 @@ GLIBC_2.38 pthread_rwlock_unlock F
 GLIBC_2.38 pthread_rwlock_wrlock F
 GLIBC_2.38 pthread_rwlockattr_destroy F
 GLIBC_2.38 pthread_rwlockattr_getpshared F
-GLIBC_2.38 pthread_rwlockattr_init F
 GLIBC_2.38 pthread_rwlockattr_setpshared F
 GLIBC_2.38 pthread_setconcurrency F
 GLIBC_2.38 pthread_setschedprio F