]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl move pthread_attr_getguardsize into libc.
authorgfleury <gfleury@disroot.org>
Mon, 18 Nov 2024 11:21:35 +0000 (13:21 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 19 Nov 2024 00:18:59 +0000 (01:18 +0100)
Signed-off-by: gfleury <gfleury@disroot.org>
htl/Makefile
htl/Versions
sysdeps/htl/pt-attr-getguardsize.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 beb39e5fea2b709a165d8bbdf09d59599dfb8b66..0318f8561ea50152d77909da0baf12193f57616a 100644 (file)
@@ -25,7 +25,6 @@ SYSDEPS := lockfile
 LCLHDRS :=
 
 libpthread-routines := \
-  pt-attr-getguardsize \
   pt-attr-getscope \
   pt-attr-getstack \
   pt-attr-getstackaddr \
@@ -200,6 +199,7 @@ routines := \
   pt-attr \
   pt-attr-destroy \
   pt-attr-getdetachstate \
+  pt-attr-getguardsize \
   pt-attr-getinheritsched \
   pt-attr-getschedparam \
   pt-attr-getschedpolicy \
index 05ef80548fd62e0f896ebd35233e9e06c0026380..336d81bd7c15c78236ed10af233ad9ccebd20bb6 100644 (file)
@@ -14,6 +14,7 @@ libc {
     pthread_getschedparam;
     pthread_setschedparam;
     pthread_attr_destroy;
+    pthread_attr_getguardsize;
   }
 
   GLIBC_2.21 {
@@ -43,6 +44,11 @@ libc {
     thrd_current; thrd_equal; thrd_sleep; thrd_yield;
   }
 
+  GLIBC_2.41 {
+    pthread_attr_getguardsize;
+  }
+
+
   GLIBC_PRIVATE {
     __libc_alloca_cutoff;
     __libc_pthread_init;
@@ -79,7 +85,6 @@ libpthread {
 
     pthread_atfork;
 
-    pthread_attr_getguardsize;
     pthread_attr_getscope; pthread_attr_getstack; pthread_attr_getstackaddr;
     pthread_attr_getstacksize; pthread_attr_init;
     pthread_attr_setguardsize;
index e9e56d0d60bdf6fd09d74220347f64385e1144c7..986e212440b35d7a74f3b2a4bb77ccab4ad17bfe 100644 (file)
    <https://www.gnu.org/licenses/>.  */
 
 #include <pthread.h>
+#include <shlib-compat.h>
 #include <pt-internal.h>
 
 int
-pthread_attr_getguardsize (const pthread_attr_t *attr, size_t * guardsize)
+__pthread_attr_getguardsize (const pthread_attr_t *attr, size_t * guardsize)
 {
   *guardsize = attr->__guardsize;
   return 0;
 }
+versioned_symbol (libpthread, __pthread_attr_getguardsize, pthread_attr_getguardsize, GLIBC_2_41);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_41)
+compat_symbol (libpthread, __pthread_attr_getguardsize, pthread_attr_getguardsize, GLIBC_2_12);
+#endif
index 83c3218398ec071c4a595e88a6f89fb441e8b52b..0a6f990c09a66b73128c5934b508a1c62a091058 100644 (file)
@@ -31,6 +31,7 @@ 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_getguardsize F
 GLIBC_2.12 pthread_attr_getinheritsched F
 GLIBC_2.12 pthread_attr_getschedparam F
 GLIBC_2.12 pthread_attr_getschedpolicy F
@@ -2483,6 +2484,7 @@ GLIBC_2.4 readlinkat F
 GLIBC_2.4 renameat F
 GLIBC_2.4 symlinkat F
 GLIBC_2.4 unlinkat F
+GLIBC_2.41 pthread_attr_getguardsize F
 GLIBC_2.5 __readlinkat_chk F
 GLIBC_2.5 inet6_opt_append F
 GLIBC_2.5 inet6_opt_find F
index f8f5daf56749e421b0d040606c3d2be4165ecaee..3451543da511d187e9e908c0101bcf44ea340c74 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_getguardsize F
 GLIBC_2.12 pthread_attr_getscope F
 GLIBC_2.12 pthread_attr_getstack F
 GLIBC_2.12 pthread_attr_getstackaddr F
index 7c685645bb3174de6af8b5cd9a7dcc6082f36d75..ca72304ddcc1d9b5cfedf202d0df0d070892c1f4 100644 (file)
@@ -1513,6 +1513,7 @@ GLIBC_2.38 psiginfo F
 GLIBC_2.38 psignal F
 GLIBC_2.38 pthread_attr_destroy F
 GLIBC_2.38 pthread_attr_getdetachstate F
+GLIBC_2.38 pthread_attr_getguardsize F
 GLIBC_2.38 pthread_attr_getinheritsched F
 GLIBC_2.38 pthread_attr_getschedparam F
 GLIBC_2.38 pthread_attr_getschedpolicy F
@@ -2184,6 +2185,7 @@ GLIBC_2.39 stdc_trailing_zeros_ui F
 GLIBC_2.39 stdc_trailing_zeros_ul F
 GLIBC_2.39 stdc_trailing_zeros_ull F
 GLIBC_2.39 stdc_trailing_zeros_us F
+GLIBC_2.41 pthread_attr_getguardsize F
 HURD_CTHREADS_0.3 __cthread_getspecific F
 HURD_CTHREADS_0.3 __cthread_keycreate F
 HURD_CTHREADS_0.3 __cthread_setspecific F
index 54b3e34b9b868609d1fa4c886f440ba0303e3eb9..556cc6e2af0e641e946b6d08b57fc5b8c4d28b89 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_getguardsize F
 GLIBC_2.38 pthread_attr_getscope F
 GLIBC_2.38 pthread_attr_getstack F
 GLIBC_2.38 pthread_attr_getstackaddr F