]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: move pthread_equal into libc
authorGuy-Fleury Iteriteka <gfleury@disroot.org>
Sun, 16 Jul 2023 08:44:05 +0000 (10:44 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 23 Aug 2023 23:56:57 +0000 (01:56 +0200)
Signed-off-by: Guy-Fleury Iteriteka <gfleury@disroot.org>
Message-Id: <20230716084414.107245-2-gfleury@disroot.org>

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

index 5de036acfd038eafa45804e4f2f36d1c688b74f5..b131aa19abd1d2f42a776010d39a8072618e2bc0 100644 (file)
@@ -46,7 +46,6 @@ libpthread-routines := pt-attr pt-attr-destroy pt-attr-getdetachstate     \
        pt-alloc                                                            \
        pt-create                                                           \
        pt-getattr                                                          \
-       pt-equal                                                            \
        pt-dealloc                                                          \
        pt-detach                                                           \
        pt-exit                                                             \
@@ -165,7 +164,7 @@ headers :=                          \
 
 distribute :=
 
-routines := forward libc_pthread_init alloca_cutoff htlfreeres pt-nthreads pt-pthread_self pt-self
+routines := forward libc_pthread_init alloca_cutoff htlfreeres pt-nthreads pt-pthread_self pt-self pt-equal
 shared-only-routines = forward
 
 extra-libs := libpthread
index 70fa44631aa9725e1c78f27b87c3ffdb419157bf..c2be77997b7f9b64969169f62f65208f1e5ffc76 100644 (file)
@@ -89,7 +89,7 @@ libpthread {
     pthread_condattr_getpshared; pthread_condattr_init;
     pthread_condattr_setclock; pthread_condattr_setpshared;
 
-    pthread_create; pthread_detach; pthread_equal; pthread_exit;
+    pthread_create; pthread_detach; pthread_exit;
 
     pthread_getattr_np;
 
index 1bee2b0203859014fa98f1ef8dc8b9100d54646b..a8147d362cfcd40a431657f1b9c40d4bfbf79210 100644 (file)
@@ -102,10 +102,6 @@ FORWARD (pthread_cond_timedwait,
         (pthread_cond_t *cond, pthread_mutex_t *mutex,
          const struct timespec *abstime), (cond, mutex, abstime), 0)
 
-FORWARD (pthread_equal, (pthread_t thread1, pthread_t thread2),
-        (thread1, thread2), 1)
-
-
 /* Use an alias to avoid warning, as pthread_exit is declared noreturn.  */
 FORWARD_NORETURN (__pthread_exit, void, (void *retval), (retval),
                  exit (EXIT_SUCCESS))
index aa8561f7d5448767ec62675c145b8456374f7d1b..0386b755af15edcfc27faa31d93c75501ea08dd7 100644 (file)
@@ -47,7 +47,6 @@ static const struct pthread_functions pthread_functions = {
   .ptr_pthread_cond_signal = __pthread_cond_signal,
   .ptr_pthread_cond_wait = __pthread_cond_wait,
   .ptr_pthread_cond_timedwait = __pthread_cond_timedwait,
-  .ptr_pthread_equal = __pthread_equal,
   .ptr___pthread_exit = __pthread_exit,
   .ptr_pthread_getschedparam = __pthread_getschedparam,
   .ptr_pthread_setschedparam = __pthread_setschedparam,
index 96728b838f5f16818b3bbb2ee4ecd8b2721d78d4..6aed953d29065fccad25402189f91b25955b8db5 100644 (file)
@@ -45,7 +45,6 @@ int __pthread_cond_signal (pthread_cond_t *);
 int __pthread_cond_wait (pthread_cond_t *, pthread_mutex_t *);
 int __pthread_cond_timedwait (pthread_cond_t *, pthread_mutex_t *,
                             const struct timespec *);
-int __pthread_equal (pthread_t, pthread_t);
 void __pthread_exit (void *) __attribute__ ((__noreturn__));
 int __pthread_getschedparam (pthread_t, int *, struct sched_param *);
 int __pthread_setschedparam (pthread_t, int,
@@ -100,7 +99,6 @@ struct pthread_functions
   int (*ptr_pthread_cond_wait) (pthread_cond_t *, pthread_mutex_t *);
   int (*ptr_pthread_cond_timedwait) (pthread_cond_t *, pthread_mutex_t *,
                                     const struct timespec *);
-  int (*ptr_pthread_equal) (pthread_t, pthread_t);
   void (*ptr___pthread_exit) (void *) __attribute__ ((__noreturn__));
   int (*ptr_pthread_getschedparam) (pthread_t, int *, struct sched_param *);
   int (*ptr_pthread_setschedparam) (pthread_t, int,
index 2ef0f67091a4153d5a4920f1c032556fca7fe969..c4f3eb124678d6c080541627428ef140ef6712eb 100644 (file)
@@ -64,7 +64,6 @@ GLIBC_2.12 pthread_condattr_setclock F
 GLIBC_2.12 pthread_condattr_setpshared F
 GLIBC_2.12 pthread_create F
 GLIBC_2.12 pthread_detach F
-GLIBC_2.12 pthread_equal F
 GLIBC_2.12 pthread_exit F
 GLIBC_2.12 pthread_getattr_np F
 GLIBC_2.12 pthread_getconcurrency F
index d8785b4cf7e16009d79770dfe6c7014b9e392222..300ef26a9fe9d4aea4294ed3af08f675c75fb9ae 100644 (file)
@@ -83,7 +83,6 @@ GLIBC_2.38 pthread_condattr_setclock F
 GLIBC_2.38 pthread_condattr_setpshared F
 GLIBC_2.38 pthread_create F
 GLIBC_2.38 pthread_detach F
-GLIBC_2.38 pthread_equal F
 GLIBC_2.38 pthread_exit F
 GLIBC_2.38 pthread_getattr_np F
 GLIBC_2.38 pthread_getconcurrency F