]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: move pthread_getschedparam into libc
authorGuy-Fleury Iteriteka <gfleury@disroot.org>
Sun, 16 Jul 2023 08:44:06 +0000 (10:44 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 23 Aug 2023 23:57:04 +0000 (01:57 +0200)
Signed-off-by: Guy-Fleury Iteriteka <gfleury@disroot.org>
Message-Id: <20230716084414.107245-3-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 b131aa19abd1d2f42a776010d39a8072618e2bc0..9362a58393845b03ea1daf995d29244091a66f43 100644 (file)
@@ -122,7 +122,7 @@ libpthread-routines := pt-attr pt-attr-destroy pt-attr-getdetachstate           \
        pt-kill                                                             \
        pt-getcpuclockid                                                    \
                                                                            \
-       pt-getschedparam pt-setschedparam pt-setschedprio                   \
+       pt-setschedparam pt-setschedprio                                    \
        pt-yield                                                            \
                                                                            \
        sem_close sem-destroy sem-getvalue sem-init sem_open                \
@@ -164,7 +164,8 @@ headers :=                          \
 
 distribute :=
 
-routines := forward libc_pthread_init alloca_cutoff htlfreeres pt-nthreads pt-pthread_self pt-self pt-equal
+routines := forward libc_pthread_init alloca_cutoff htlfreeres pt-nthreads pt-pthread_self pt-self pt-equal \
+       pt-getschedparam
 shared-only-routines = forward
 
 extra-libs := libpthread
index c2be77997b7f9b64969169f62f65208f1e5ffc76..f376bf2f18989943f0d3a2ef44e25738e059d6de 100644 (file)
@@ -94,7 +94,7 @@ libpthread {
     pthread_getattr_np;
 
     pthread_getconcurrency; pthread_getcpuclockid;
-    pthread_getschedparam; pthread_getspecific;
+    pthread_getspecific;
 
     pthread_join;
 
index a8147d362cfcd40a431657f1b9c40d4bfbf79210..df0d4ecc654dc13acca31445fae05ea316161f9a 100644 (file)
@@ -107,10 +107,6 @@ FORWARD_NORETURN (__pthread_exit, void, (void *retval), (retval),
                  exit (EXIT_SUCCESS))
 strong_alias (__pthread_exit, pthread_exit);
 
-
-FORWARD (pthread_getschedparam,
-        (pthread_t target_thread, int *policy, struct sched_param *param),
-        (target_thread, policy, param), 0)
 FORWARD (pthread_setschedparam,
         (pthread_t target_thread, int policy,
          const struct sched_param *param), (target_thread, policy, param), 0)
index 0386b755af15edcfc27faa31d93c75501ea08dd7..7fc066041d3cde42301ba546800a4d99772b8e82 100644 (file)
@@ -48,7 +48,6 @@ static const struct pthread_functions pthread_functions = {
   .ptr_pthread_cond_wait = __pthread_cond_wait,
   .ptr_pthread_cond_timedwait = __pthread_cond_timedwait,
   .ptr___pthread_exit = __pthread_exit,
-  .ptr_pthread_getschedparam = __pthread_getschedparam,
   .ptr_pthread_setschedparam = __pthread_setschedparam,
   .ptr_pthread_mutex_destroy = __pthread_mutex_destroy,
   .ptr_pthread_mutex_init = __pthread_mutex_init,
index 6aed953d29065fccad25402189f91b25955b8db5..89d90dc49b2e56c79f1fcfb39a8dfa211ee051bb 100644 (file)
@@ -46,7 +46,6 @@ int __pthread_cond_wait (pthread_cond_t *, pthread_mutex_t *);
 int __pthread_cond_timedwait (pthread_cond_t *, pthread_mutex_t *,
                             const struct timespec *);
 void __pthread_exit (void *) __attribute__ ((__noreturn__));
-int __pthread_getschedparam (pthread_t, int *, struct sched_param *);
 int __pthread_setschedparam (pthread_t, int,
                            const struct sched_param *);
 int _pthread_mutex_destroy (pthread_mutex_t *);
@@ -100,7 +99,6 @@ struct pthread_functions
   int (*ptr_pthread_cond_timedwait) (pthread_cond_t *, pthread_mutex_t *,
                                     const struct timespec *);
   void (*ptr___pthread_exit) (void *) __attribute__ ((__noreturn__));
-  int (*ptr_pthread_getschedparam) (pthread_t, int *, struct sched_param *);
   int (*ptr_pthread_setschedparam) (pthread_t, int,
                                    const struct sched_param *);
   int (*ptr_pthread_mutex_destroy) (pthread_mutex_t *);
index c4f3eb124678d6c080541627428ef140ef6712eb..241976e8ef290ce6e3d6711f8a1b631910b55874 100644 (file)
@@ -68,7 +68,6 @@ GLIBC_2.12 pthread_exit F
 GLIBC_2.12 pthread_getattr_np F
 GLIBC_2.12 pthread_getconcurrency F
 GLIBC_2.12 pthread_getcpuclockid F
-GLIBC_2.12 pthread_getschedparam F
 GLIBC_2.12 pthread_getspecific F
 GLIBC_2.12 pthread_join F
 GLIBC_2.12 pthread_key_create F
index 300ef26a9fe9d4aea4294ed3af08f675c75fb9ae..8f2d287d568bde1f54f1b491907a0a6eb52d04f7 100644 (file)
@@ -87,7 +87,6 @@ GLIBC_2.38 pthread_exit F
 GLIBC_2.38 pthread_getattr_np F
 GLIBC_2.38 pthread_getconcurrency F
 GLIBC_2.38 pthread_getcpuclockid F
-GLIBC_2.38 pthread_getschedparam F
 GLIBC_2.38 pthread_getspecific F
 GLIBC_2.38 pthread_hurd_cond_timedwait_np F
 GLIBC_2.38 pthread_hurd_cond_wait_np F