]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl move pthread_attr_getscope into libc.
authorgfleury <gfleury@disroot.org>
Mon, 18 Nov 2024 11:21:36 +0000 (13:21 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 19 Nov 2024 00:19:00 +0000 (01:19 +0100)
Signed-off-by: gfleury <gfleury@disroot.org>
htl/Makefile
htl/Versions
htl/forward.c
htl/pt-initialize.c
sysdeps/htl/pt-attr-getscope.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 0318f8561ea50152d77909da0baf12193f57616a..d8a5757d0b77d74fbd608497d46813dcace8a9a1 100644 (file)
@@ -25,7 +25,6 @@ SYSDEPS := lockfile
 LCLHDRS :=
 
 libpthread-routines := \
-  pt-attr-getscope \
   pt-attr-getstack \
   pt-attr-getstackaddr \
   pt-attr-getstacksize \
@@ -203,6 +202,7 @@ routines := \
   pt-attr-getinheritsched \
   pt-attr-getschedparam \
   pt-attr-getschedpolicy \
+  pt-attr-getscope \
   pt-attr-setdetachstate \
   pt-attr-setinheritsched \
   pt-attr-setschedpolicy \
index 336d81bd7c15c78236ed10af233ad9ccebd20bb6..4372c2de8fbfcd8ccbebdff956d9d7b8c18424cf 100644 (file)
@@ -15,6 +15,7 @@ libc {
     pthread_setschedparam;
     pthread_attr_destroy;
     pthread_attr_getguardsize;
+    pthread_attr_getscope;
   }
 
   GLIBC_2.21 {
@@ -85,7 +86,7 @@ libpthread {
 
     pthread_atfork;
 
-    pthread_attr_getscope; pthread_attr_getstack; pthread_attr_getstackaddr;
+    pthread_attr_getstack; pthread_attr_getstackaddr;
     pthread_attr_getstacksize; pthread_attr_init;
     pthread_attr_setguardsize;
     pthread_attr_setschedparam;
index 579e8cba4ce3e096ec6bba2f239c43580e743228..6644d67da634c443a3777d650791df6bb9b43c56 100644 (file)
@@ -59,8 +59,6 @@ FORWARD (pthread_attr_setschedparam,
         (pthread_attr_t *attr, const struct sched_param *param),
         (attr, param), 0)
 
-FORWARD (pthread_attr_getscope,
-        (const pthread_attr_t *attr, int *scope), (attr, scope), 0)
 FORWARD (pthread_attr_setscope, (pthread_attr_t *attr, int scope),
         (attr, scope), 0)
 
index 0368bfa4c71cafae408cfc1cbcf35c0d9b4e40a7..0d20f39e5127e860b91205319660eef460cebcc7 100644 (file)
@@ -29,7 +29,6 @@
 static const struct pthread_functions pthread_functions = {
   .ptr_pthread_attr_init = __pthread_attr_init,
   .ptr_pthread_attr_setschedparam = __pthread_attr_setschedparam,
-  .ptr_pthread_attr_getscope = __pthread_attr_getscope,
   .ptr_pthread_attr_setscope = __pthread_attr_setscope,
   .ptr_pthread_condattr_destroy = __pthread_condattr_destroy,
   .ptr_pthread_condattr_init = __pthread_condattr_init,
index a1ef854cc9520d6f7133ed5f50cc94cc9dbe85f2..fe1f663b381ebd17bf1b375922a53e6e6eb63e5c 100644 (file)
@@ -17,6 +17,7 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <pthread.h>
+#include <shlib-compat.h>
 #include <pt-internal.h>
 
 int
@@ -25,5 +26,8 @@ __pthread_attr_getscope (const pthread_attr_t *attr, int *contentionscope)
   *contentionscope = attr->__contentionscope;
   return 0;
 }
+versioned_symbol (libc, __pthread_attr_getscope, pthread_attr_getscope, GLIBC_2_21);
 
-weak_alias (__pthread_attr_getscope, pthread_attr_getscope);
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_21)
+compat_symbol (libc, __pthread_attr_getscope, pthread_attr_getscope, GLIBC_2_12);
+#endif
index 0a98d9f5d8d97428230c0b0005bc1d889ea67a16..2a36f20152f78e93ac96f311636da326d62c2d28 100644 (file)
@@ -24,7 +24,6 @@
 int __pthread_attr_init (pthread_attr_t *);
 int __pthread_attr_setschedparam (pthread_attr_t *,
                                 const struct sched_param *);
-int __pthread_attr_getscope (const pthread_attr_t *, int *);
 int __pthread_attr_setscope (pthread_attr_t *, int);
 int __pthread_condattr_destroy (pthread_condattr_t *);
 int __pthread_condattr_init (pthread_condattr_t *);
@@ -66,7 +65,6 @@ struct pthread_functions
   int (*ptr_pthread_attr_init) (pthread_attr_t *);
   int (*ptr_pthread_attr_setschedparam) (pthread_attr_t *,
                                         const struct sched_param *);
-  int (*ptr_pthread_attr_getscope) (const pthread_attr_t *, int *);
   int (*ptr_pthread_attr_setscope) (pthread_attr_t *, int);
   int (*ptr_pthread_condattr_destroy) (pthread_condattr_t *);
   int (*ptr_pthread_condattr_init) (pthread_condattr_t *);
index 0a6f990c09a66b73128c5934b508a1c62a091058..8dd66f4a643b5568ebcde867980f0c341459be14 100644 (file)
@@ -35,6 +35,7 @@ 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
+GLIBC_2.12 pthread_attr_getscope F
 GLIBC_2.12 pthread_attr_setdetachstate F
 GLIBC_2.12 pthread_attr_setinheritsched F
 GLIBC_2.12 pthread_attr_setschedpolicy F
index 3451543da511d187e9e908c0101bcf44ea340c74..03fcee4ce6d5772a6de087f81fdff5ee85bcc286 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_getscope F
 GLIBC_2.12 pthread_attr_getstack F
 GLIBC_2.12 pthread_attr_getstackaddr F
 GLIBC_2.12 pthread_attr_getstacksize F
index 556cc6e2af0e641e946b6d08b57fc5b8c4d28b89..1d18972651f7ab8c8f702b6da37bd9adf43129b2 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_getscope F
 GLIBC_2.38 pthread_attr_getstack F
 GLIBC_2.38 pthread_attr_getstackaddr F
 GLIBC_2.38 pthread_attr_getstacksize F