nptl: Move pthread_attr_getschedpolicy implementation into libc

This is part of the libpthread removal project:

  <https://sourceware.org/ml/libc-alpha/2019-10/msg00080.html>

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer 2020-02-10 11:20:30 +01:00
parent 8923b9962c
commit ce197a6e0a
32 changed files with 3 additions and 33 deletions

View File

@ -41,6 +41,7 @@ routines = \
pthread_attr_getdetachstate \ pthread_attr_getdetachstate \
pthread_attr_getinheritsched \ pthread_attr_getinheritsched \
pthread_attr_getschedparam \ pthread_attr_getschedparam \
pthread_attr_getschedpolicy \
pthread_attr_init \ pthread_attr_init \
pthread_attr_setdetachstate \ pthread_attr_setdetachstate \
pthread_attr_setinheritsched \ pthread_attr_setinheritsched \
@ -72,7 +73,7 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \
pthread_getschedparam pthread_setschedparam \ pthread_getschedparam pthread_setschedparam \
pthread_setschedprio \ pthread_setschedprio \
pthread_attr_getguardsize pthread_attr_setguardsize \ pthread_attr_getguardsize pthread_attr_setguardsize \
pthread_attr_getschedpolicy pthread_attr_setschedpolicy \ pthread_attr_setschedpolicy \
pthread_attr_getscope pthread_attr_setscope \ pthread_attr_getscope pthread_attr_setscope \
pthread_attr_getstackaddr pthread_attr_setstackaddr \ pthread_attr_getstackaddr pthread_attr_setstackaddr \
pthread_attr_getstacksize pthread_attr_setstacksize \ pthread_attr_getstacksize pthread_attr_setstacksize \

View File

@ -49,7 +49,7 @@ libpthread {
pthread_getschedparam; pthread_setschedparam; pthread_getschedparam; pthread_setschedparam;
pthread_attr_getschedpolicy; pthread_attr_setschedpolicy; pthread_attr_setschedpolicy;
pthread_attr_getscope; pthread_attr_setscope; pthread_attr_getscope; pthread_attr_setscope;
pthread_mutex_init; pthread_mutex_destroy; pthread_mutex_init; pthread_mutex_destroy;

View File

@ -56,8 +56,6 @@ name decl \
FORWARD2 (name, int, decl, params, return defretval) FORWARD2 (name, int, decl, params, return defretval)
FORWARD (pthread_attr_getschedpolicy,
(const pthread_attr_t *attr, int *policy), (attr, policy), 0)
FORWARD (pthread_attr_setschedpolicy, (pthread_attr_t *attr, int policy), FORWARD (pthread_attr_setschedpolicy, (pthread_attr_t *attr, int policy),
(attr, policy), 0) (attr, policy), 0)

View File

@ -72,7 +72,6 @@ void __nptl_set_robust (struct pthread *);
#ifdef SHARED #ifdef SHARED
static const struct pthread_functions pthread_functions = static const struct pthread_functions pthread_functions =
{ {
.ptr_pthread_attr_getschedpolicy = __pthread_attr_getschedpolicy,
.ptr_pthread_attr_setschedpolicy = __pthread_attr_setschedpolicy, .ptr_pthread_attr_setschedpolicy = __pthread_attr_setschedpolicy,
.ptr_pthread_attr_getscope = __pthread_attr_getscope, .ptr_pthread_attr_getscope = __pthread_attr_getscope,
.ptr_pthread_attr_setscope = __pthread_attr_setscope, .ptr_pthread_attr_setscope = __pthread_attr_setscope,

View File

@ -30,7 +30,6 @@ struct xid_command;
the thread functions. */ the thread functions. */
struct pthread_functions struct pthread_functions
{ {
int (*ptr_pthread_attr_getschedpolicy) (const pthread_attr_t *, int *);
int (*ptr_pthread_attr_setschedpolicy) (pthread_attr_t *, int); int (*ptr_pthread_attr_setschedpolicy) (pthread_attr_t *, int);
int (*ptr_pthread_attr_getscope) (const pthread_attr_t *, int *); int (*ptr_pthread_attr_getscope) (const pthread_attr_t *, int *);
int (*ptr_pthread_attr_setscope) (pthread_attr_t *, int); int (*ptr_pthread_attr_setscope) (pthread_attr_t *, int);

View File

@ -69,7 +69,6 @@ GLIBC_2.17 pread F
GLIBC_2.17 pread64 F GLIBC_2.17 pread64 F
GLIBC_2.17 pthread_attr_getaffinity_np F GLIBC_2.17 pthread_attr_getaffinity_np F
GLIBC_2.17 pthread_attr_getguardsize F GLIBC_2.17 pthread_attr_getguardsize F
GLIBC_2.17 pthread_attr_getschedpolicy F
GLIBC_2.17 pthread_attr_getscope F GLIBC_2.17 pthread_attr_getscope F
GLIBC_2.17 pthread_attr_getstack F GLIBC_2.17 pthread_attr_getstack F
GLIBC_2.17 pthread_attr_getstackaddr F GLIBC_2.17 pthread_attr_getstackaddr F

View File

@ -44,7 +44,6 @@ GLIBC_2.0 msync F
GLIBC_2.0 open F GLIBC_2.0 open F
GLIBC_2.0 pause F GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedpolicy F GLIBC_2.0 pthread_attr_setschedpolicy F
GLIBC_2.0 pthread_attr_setscope F GLIBC_2.0 pthread_attr_setscope F

View File

@ -104,7 +104,6 @@ GLIBC_2.4 pread F
GLIBC_2.4 pread64 F GLIBC_2.4 pread64 F
GLIBC_2.4 pthread_attr_getaffinity_np F GLIBC_2.4 pthread_attr_getaffinity_np F
GLIBC_2.4 pthread_attr_getguardsize F GLIBC_2.4 pthread_attr_getguardsize F
GLIBC_2.4 pthread_attr_getschedpolicy F
GLIBC_2.4 pthread_attr_getscope F GLIBC_2.4 pthread_attr_getscope F
GLIBC_2.4 pthread_attr_getstack F GLIBC_2.4 pthread_attr_getstack F
GLIBC_2.4 pthread_attr_getstackaddr F GLIBC_2.4 pthread_attr_getstackaddr F

View File

@ -104,7 +104,6 @@ GLIBC_2.4 pread F
GLIBC_2.4 pread64 F GLIBC_2.4 pread64 F
GLIBC_2.4 pthread_attr_getaffinity_np F GLIBC_2.4 pthread_attr_getaffinity_np F
GLIBC_2.4 pthread_attr_getguardsize F GLIBC_2.4 pthread_attr_getguardsize F
GLIBC_2.4 pthread_attr_getschedpolicy F
GLIBC_2.4 pthread_attr_getscope F GLIBC_2.4 pthread_attr_getscope F
GLIBC_2.4 pthread_attr_getstack F GLIBC_2.4 pthread_attr_getstack F
GLIBC_2.4 pthread_attr_getstackaddr F GLIBC_2.4 pthread_attr_getstackaddr F

View File

@ -77,7 +77,6 @@ GLIBC_2.29 pread F
GLIBC_2.29 pread64 F GLIBC_2.29 pread64 F
GLIBC_2.29 pthread_attr_getaffinity_np F GLIBC_2.29 pthread_attr_getaffinity_np F
GLIBC_2.29 pthread_attr_getguardsize F GLIBC_2.29 pthread_attr_getguardsize F
GLIBC_2.29 pthread_attr_getschedpolicy F
GLIBC_2.29 pthread_attr_getscope F GLIBC_2.29 pthread_attr_getscope F
GLIBC_2.29 pthread_attr_getstack F GLIBC_2.29 pthread_attr_getstack F
GLIBC_2.29 pthread_attr_getstackaddr F GLIBC_2.29 pthread_attr_getstackaddr F

View File

@ -71,7 +71,6 @@ GLIBC_2.2 pread F
GLIBC_2.2 pread64 F GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getschedpolicy F
GLIBC_2.2 pthread_attr_getscope F GLIBC_2.2 pthread_attr_getscope F
GLIBC_2.2 pthread_attr_getstack F GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_getstackaddr F GLIBC_2.2 pthread_attr_getstackaddr F

View File

@ -44,7 +44,6 @@ GLIBC_2.0 msync F
GLIBC_2.0 open F GLIBC_2.0 open F
GLIBC_2.0 pause F GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedpolicy F GLIBC_2.0 pthread_attr_setschedpolicy F
GLIBC_2.0 pthread_attr_setscope F GLIBC_2.0 pthread_attr_setscope F

View File

@ -71,7 +71,6 @@ GLIBC_2.2 pread F
GLIBC_2.2 pread64 F GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getschedpolicy F
GLIBC_2.2 pthread_attr_getscope F GLIBC_2.2 pthread_attr_getscope F
GLIBC_2.2 pthread_attr_getstack F GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_getstackaddr F GLIBC_2.2 pthread_attr_getstackaddr F

View File

@ -104,7 +104,6 @@ GLIBC_2.4 pread F
GLIBC_2.4 pread64 F GLIBC_2.4 pread64 F
GLIBC_2.4 pthread_attr_getaffinity_np F GLIBC_2.4 pthread_attr_getaffinity_np F
GLIBC_2.4 pthread_attr_getguardsize F GLIBC_2.4 pthread_attr_getguardsize F
GLIBC_2.4 pthread_attr_getschedpolicy F
GLIBC_2.4 pthread_attr_getscope F GLIBC_2.4 pthread_attr_getscope F
GLIBC_2.4 pthread_attr_getstack F GLIBC_2.4 pthread_attr_getstack F
GLIBC_2.4 pthread_attr_getstackaddr F GLIBC_2.4 pthread_attr_getstackaddr F

View File

@ -44,7 +44,6 @@ GLIBC_2.0 msync F
GLIBC_2.0 open F GLIBC_2.0 open F
GLIBC_2.0 pause F GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedpolicy F GLIBC_2.0 pthread_attr_setschedpolicy F
GLIBC_2.0 pthread_attr_setscope F GLIBC_2.0 pthread_attr_setscope F

View File

@ -69,7 +69,6 @@ GLIBC_2.18 pread F
GLIBC_2.18 pread64 F GLIBC_2.18 pread64 F
GLIBC_2.18 pthread_attr_getaffinity_np F GLIBC_2.18 pthread_attr_getaffinity_np F
GLIBC_2.18 pthread_attr_getguardsize F GLIBC_2.18 pthread_attr_getguardsize F
GLIBC_2.18 pthread_attr_getschedpolicy F
GLIBC_2.18 pthread_attr_getscope F GLIBC_2.18 pthread_attr_getscope F
GLIBC_2.18 pthread_attr_getstack F GLIBC_2.18 pthread_attr_getstack F
GLIBC_2.18 pthread_attr_getstackaddr F GLIBC_2.18 pthread_attr_getstackaddr F

View File

@ -69,7 +69,6 @@ GLIBC_2.18 pread F
GLIBC_2.18 pread64 F GLIBC_2.18 pread64 F
GLIBC_2.18 pthread_attr_getaffinity_np F GLIBC_2.18 pthread_attr_getaffinity_np F
GLIBC_2.18 pthread_attr_getguardsize F GLIBC_2.18 pthread_attr_getguardsize F
GLIBC_2.18 pthread_attr_getschedpolicy F
GLIBC_2.18 pthread_attr_getscope F GLIBC_2.18 pthread_attr_getscope F
GLIBC_2.18 pthread_attr_getstack F GLIBC_2.18 pthread_attr_getstack F
GLIBC_2.18 pthread_attr_getstackaddr F GLIBC_2.18 pthread_attr_getstackaddr F

View File

@ -44,7 +44,6 @@ GLIBC_2.0 msync F
GLIBC_2.0 open F GLIBC_2.0 open F
GLIBC_2.0 pause F GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedpolicy F GLIBC_2.0 pthread_attr_setschedpolicy F
GLIBC_2.0 pthread_attr_setscope F GLIBC_2.0 pthread_attr_setscope F

View File

@ -44,7 +44,6 @@ GLIBC_2.0 msync F
GLIBC_2.0 open F GLIBC_2.0 open F
GLIBC_2.0 pause F GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedpolicy F GLIBC_2.0 pthread_attr_setschedpolicy F
GLIBC_2.0 pthread_attr_setscope F GLIBC_2.0 pthread_attr_setscope F

View File

@ -69,7 +69,6 @@ GLIBC_2.21 pread F
GLIBC_2.21 pread64 F GLIBC_2.21 pread64 F
GLIBC_2.21 pthread_attr_getaffinity_np F GLIBC_2.21 pthread_attr_getaffinity_np F
GLIBC_2.21 pthread_attr_getguardsize F GLIBC_2.21 pthread_attr_getguardsize F
GLIBC_2.21 pthread_attr_getschedpolicy F
GLIBC_2.21 pthread_attr_getscope F GLIBC_2.21 pthread_attr_getscope F
GLIBC_2.21 pthread_attr_getstack F GLIBC_2.21 pthread_attr_getstack F
GLIBC_2.21 pthread_attr_getstackaddr F GLIBC_2.21 pthread_attr_getstackaddr F

View File

@ -44,7 +44,6 @@ GLIBC_2.0 msync F
GLIBC_2.0 open F GLIBC_2.0 open F
GLIBC_2.0 pause F GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedpolicy F GLIBC_2.0 pthread_attr_setschedpolicy F
GLIBC_2.0 pthread_attr_setscope F GLIBC_2.0 pthread_attr_setscope F

View File

@ -91,7 +91,6 @@ GLIBC_2.3 pause F
GLIBC_2.3 pread F GLIBC_2.3 pread F
GLIBC_2.3 pread64 F GLIBC_2.3 pread64 F
GLIBC_2.3 pthread_attr_getguardsize F GLIBC_2.3 pthread_attr_getguardsize F
GLIBC_2.3 pthread_attr_getschedpolicy F
GLIBC_2.3 pthread_attr_getscope F GLIBC_2.3 pthread_attr_getscope F
GLIBC_2.3 pthread_attr_getstack F GLIBC_2.3 pthread_attr_getstack F
GLIBC_2.3 pthread_attr_getstackaddr F GLIBC_2.3 pthread_attr_getstackaddr F

View File

@ -69,7 +69,6 @@ GLIBC_2.17 pread F
GLIBC_2.17 pread64 F GLIBC_2.17 pread64 F
GLIBC_2.17 pthread_attr_getaffinity_np F GLIBC_2.17 pthread_attr_getaffinity_np F
GLIBC_2.17 pthread_attr_getguardsize F GLIBC_2.17 pthread_attr_getguardsize F
GLIBC_2.17 pthread_attr_getschedpolicy F
GLIBC_2.17 pthread_attr_getscope F GLIBC_2.17 pthread_attr_getscope F
GLIBC_2.17 pthread_attr_getstack F GLIBC_2.17 pthread_attr_getstack F
GLIBC_2.17 pthread_attr_getstackaddr F GLIBC_2.17 pthread_attr_getstackaddr F

View File

@ -66,7 +66,6 @@ GLIBC_2.27 pread F
GLIBC_2.27 pread64 F GLIBC_2.27 pread64 F
GLIBC_2.27 pthread_attr_getaffinity_np F GLIBC_2.27 pthread_attr_getaffinity_np F
GLIBC_2.27 pthread_attr_getguardsize F GLIBC_2.27 pthread_attr_getguardsize F
GLIBC_2.27 pthread_attr_getschedpolicy F
GLIBC_2.27 pthread_attr_getscope F GLIBC_2.27 pthread_attr_getscope F
GLIBC_2.27 pthread_attr_getstack F GLIBC_2.27 pthread_attr_getstack F
GLIBC_2.27 pthread_attr_getstackaddr F GLIBC_2.27 pthread_attr_getstackaddr F

View File

@ -44,7 +44,6 @@ GLIBC_2.0 msync F
GLIBC_2.0 open F GLIBC_2.0 open F
GLIBC_2.0 pause F GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedpolicy F GLIBC_2.0 pthread_attr_setschedpolicy F
GLIBC_2.0 pthread_attr_setscope F GLIBC_2.0 pthread_attr_setscope F

View File

@ -73,7 +73,6 @@ GLIBC_2.2 pread F
GLIBC_2.2 pread64 F GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getschedpolicy F
GLIBC_2.2 pthread_attr_getscope F GLIBC_2.2 pthread_attr_getscope F
GLIBC_2.2 pthread_attr_getstack F GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_getstackaddr F GLIBC_2.2 pthread_attr_getstackaddr F

View File

@ -71,7 +71,6 @@ GLIBC_2.2 pread F
GLIBC_2.2 pread64 F GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getschedpolicy F
GLIBC_2.2 pthread_attr_getscope F GLIBC_2.2 pthread_attr_getscope F
GLIBC_2.2 pthread_attr_getstack F GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_getstackaddr F GLIBC_2.2 pthread_attr_getstackaddr F

View File

@ -71,7 +71,6 @@ GLIBC_2.2 pread F
GLIBC_2.2 pread64 F GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getschedpolicy F
GLIBC_2.2 pthread_attr_getscope F GLIBC_2.2 pthread_attr_getscope F
GLIBC_2.2 pthread_attr_getstack F GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_getstackaddr F GLIBC_2.2 pthread_attr_getstackaddr F

View File

@ -44,7 +44,6 @@ GLIBC_2.0 msync F
GLIBC_2.0 open F GLIBC_2.0 open F
GLIBC_2.0 pause F GLIBC_2.0 pause F
GLIBC_2.0 pthread_atfork F GLIBC_2.0 pthread_atfork F
GLIBC_2.0 pthread_attr_getschedpolicy F
GLIBC_2.0 pthread_attr_getscope F GLIBC_2.0 pthread_attr_getscope F
GLIBC_2.0 pthread_attr_setschedpolicy F GLIBC_2.0 pthread_attr_setschedpolicy F
GLIBC_2.0 pthread_attr_setscope F GLIBC_2.0 pthread_attr_setscope F

View File

@ -71,7 +71,6 @@ GLIBC_2.2 pread F
GLIBC_2.2 pread64 F GLIBC_2.2 pread64 F
GLIBC_2.2 pthread_atfork F GLIBC_2.2 pthread_atfork F
GLIBC_2.2 pthread_attr_getguardsize F GLIBC_2.2 pthread_attr_getguardsize F
GLIBC_2.2 pthread_attr_getschedpolicy F
GLIBC_2.2 pthread_attr_getscope F GLIBC_2.2 pthread_attr_getscope F
GLIBC_2.2 pthread_attr_getstack F GLIBC_2.2 pthread_attr_getstack F
GLIBC_2.2 pthread_attr_getstackaddr F GLIBC_2.2 pthread_attr_getstackaddr F

View File

@ -71,7 +71,6 @@ GLIBC_2.2.5 pread F
GLIBC_2.2.5 pread64 F GLIBC_2.2.5 pread64 F
GLIBC_2.2.5 pthread_atfork F GLIBC_2.2.5 pthread_atfork F
GLIBC_2.2.5 pthread_attr_getguardsize F GLIBC_2.2.5 pthread_attr_getguardsize F
GLIBC_2.2.5 pthread_attr_getschedpolicy F
GLIBC_2.2.5 pthread_attr_getscope F GLIBC_2.2.5 pthread_attr_getscope F
GLIBC_2.2.5 pthread_attr_getstack F GLIBC_2.2.5 pthread_attr_getstack F
GLIBC_2.2.5 pthread_attr_getstackaddr F GLIBC_2.2.5 pthread_attr_getstackaddr F

View File

@ -69,7 +69,6 @@ GLIBC_2.16 pread F
GLIBC_2.16 pread64 F GLIBC_2.16 pread64 F
GLIBC_2.16 pthread_attr_getaffinity_np F GLIBC_2.16 pthread_attr_getaffinity_np F
GLIBC_2.16 pthread_attr_getguardsize F GLIBC_2.16 pthread_attr_getguardsize F
GLIBC_2.16 pthread_attr_getschedpolicy F
GLIBC_2.16 pthread_attr_getscope F GLIBC_2.16 pthread_attr_getscope F
GLIBC_2.16 pthread_attr_getstack F GLIBC_2.16 pthread_attr_getstack F
GLIBC_2.16 pthread_attr_getstackaddr F GLIBC_2.16 pthread_attr_getstackaddr F