mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
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:
parent
8923b9962c
commit
ce197a6e0a
@ -41,6 +41,7 @@ routines = \
|
||||
pthread_attr_getdetachstate \
|
||||
pthread_attr_getinheritsched \
|
||||
pthread_attr_getschedparam \
|
||||
pthread_attr_getschedpolicy \
|
||||
pthread_attr_init \
|
||||
pthread_attr_setdetachstate \
|
||||
pthread_attr_setinheritsched \
|
||||
@ -72,7 +73,7 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \
|
||||
pthread_getschedparam pthread_setschedparam \
|
||||
pthread_setschedprio \
|
||||
pthread_attr_getguardsize pthread_attr_setguardsize \
|
||||
pthread_attr_getschedpolicy pthread_attr_setschedpolicy \
|
||||
pthread_attr_setschedpolicy \
|
||||
pthread_attr_getscope pthread_attr_setscope \
|
||||
pthread_attr_getstackaddr pthread_attr_setstackaddr \
|
||||
pthread_attr_getstacksize pthread_attr_setstacksize \
|
||||
|
@ -49,7 +49,7 @@ libpthread {
|
||||
|
||||
pthread_getschedparam; pthread_setschedparam;
|
||||
|
||||
pthread_attr_getschedpolicy; pthread_attr_setschedpolicy;
|
||||
pthread_attr_setschedpolicy;
|
||||
pthread_attr_getscope; pthread_attr_setscope;
|
||||
|
||||
pthread_mutex_init; pthread_mutex_destroy;
|
||||
|
@ -56,8 +56,6 @@ name decl \
|
||||
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),
|
||||
(attr, policy), 0)
|
||||
|
||||
|
@ -72,7 +72,6 @@ void __nptl_set_robust (struct pthread *);
|
||||
#ifdef SHARED
|
||||
static const struct pthread_functions pthread_functions =
|
||||
{
|
||||
.ptr_pthread_attr_getschedpolicy = __pthread_attr_getschedpolicy,
|
||||
.ptr_pthread_attr_setschedpolicy = __pthread_attr_setschedpolicy,
|
||||
.ptr_pthread_attr_getscope = __pthread_attr_getscope,
|
||||
.ptr_pthread_attr_setscope = __pthread_attr_setscope,
|
||||
|
@ -30,7 +30,6 @@ struct xid_command;
|
||||
the thread 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_getscope) (const pthread_attr_t *, int *);
|
||||
int (*ptr_pthread_attr_setscope) (pthread_attr_t *, int);
|
||||
|
@ -69,7 +69,6 @@ GLIBC_2.17 pread F
|
||||
GLIBC_2.17 pread64 F
|
||||
GLIBC_2.17 pthread_attr_getaffinity_np 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_getstack F
|
||||
GLIBC_2.17 pthread_attr_getstackaddr F
|
||||
|
@ -44,7 +44,6 @@ GLIBC_2.0 msync F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause 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_setschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_setscope F
|
||||
|
@ -104,7 +104,6 @@ GLIBC_2.4 pread F
|
||||
GLIBC_2.4 pread64 F
|
||||
GLIBC_2.4 pthread_attr_getaffinity_np 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_getstack F
|
||||
GLIBC_2.4 pthread_attr_getstackaddr F
|
||||
|
@ -104,7 +104,6 @@ GLIBC_2.4 pread F
|
||||
GLIBC_2.4 pread64 F
|
||||
GLIBC_2.4 pthread_attr_getaffinity_np 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_getstack F
|
||||
GLIBC_2.4 pthread_attr_getstackaddr F
|
||||
|
@ -77,7 +77,6 @@ GLIBC_2.29 pread F
|
||||
GLIBC_2.29 pread64 F
|
||||
GLIBC_2.29 pthread_attr_getaffinity_np 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_getstack F
|
||||
GLIBC_2.29 pthread_attr_getstackaddr F
|
||||
|
@ -71,7 +71,6 @@ GLIBC_2.2 pread F
|
||||
GLIBC_2.2 pread64 F
|
||||
GLIBC_2.2 pthread_atfork 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_getstack F
|
||||
GLIBC_2.2 pthread_attr_getstackaddr F
|
||||
|
@ -44,7 +44,6 @@ GLIBC_2.0 msync F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause 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_setschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_setscope F
|
||||
|
@ -71,7 +71,6 @@ GLIBC_2.2 pread F
|
||||
GLIBC_2.2 pread64 F
|
||||
GLIBC_2.2 pthread_atfork 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_getstack F
|
||||
GLIBC_2.2 pthread_attr_getstackaddr F
|
||||
|
@ -104,7 +104,6 @@ GLIBC_2.4 pread F
|
||||
GLIBC_2.4 pread64 F
|
||||
GLIBC_2.4 pthread_attr_getaffinity_np 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_getstack F
|
||||
GLIBC_2.4 pthread_attr_getstackaddr F
|
||||
|
@ -44,7 +44,6 @@ GLIBC_2.0 msync F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause 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_setschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_setscope F
|
||||
|
@ -69,7 +69,6 @@ GLIBC_2.18 pread F
|
||||
GLIBC_2.18 pread64 F
|
||||
GLIBC_2.18 pthread_attr_getaffinity_np 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_getstack F
|
||||
GLIBC_2.18 pthread_attr_getstackaddr F
|
||||
|
@ -69,7 +69,6 @@ GLIBC_2.18 pread F
|
||||
GLIBC_2.18 pread64 F
|
||||
GLIBC_2.18 pthread_attr_getaffinity_np 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_getstack F
|
||||
GLIBC_2.18 pthread_attr_getstackaddr F
|
||||
|
@ -44,7 +44,6 @@ GLIBC_2.0 msync F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause 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_setschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_setscope F
|
||||
|
@ -44,7 +44,6 @@ GLIBC_2.0 msync F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause 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_setschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_setscope F
|
||||
|
@ -69,7 +69,6 @@ GLIBC_2.21 pread F
|
||||
GLIBC_2.21 pread64 F
|
||||
GLIBC_2.21 pthread_attr_getaffinity_np 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_getstack F
|
||||
GLIBC_2.21 pthread_attr_getstackaddr F
|
||||
|
@ -44,7 +44,6 @@ GLIBC_2.0 msync F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause 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_setschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_setscope F
|
||||
|
@ -91,7 +91,6 @@ GLIBC_2.3 pause F
|
||||
GLIBC_2.3 pread F
|
||||
GLIBC_2.3 pread64 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_getstack F
|
||||
GLIBC_2.3 pthread_attr_getstackaddr F
|
||||
|
@ -69,7 +69,6 @@ GLIBC_2.17 pread F
|
||||
GLIBC_2.17 pread64 F
|
||||
GLIBC_2.17 pthread_attr_getaffinity_np 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_getstack F
|
||||
GLIBC_2.17 pthread_attr_getstackaddr F
|
||||
|
@ -66,7 +66,6 @@ GLIBC_2.27 pread F
|
||||
GLIBC_2.27 pread64 F
|
||||
GLIBC_2.27 pthread_attr_getaffinity_np 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_getstack F
|
||||
GLIBC_2.27 pthread_attr_getstackaddr F
|
||||
|
@ -44,7 +44,6 @@ GLIBC_2.0 msync F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause 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_setschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_setscope F
|
||||
|
@ -73,7 +73,6 @@ GLIBC_2.2 pread F
|
||||
GLIBC_2.2 pread64 F
|
||||
GLIBC_2.2 pthread_atfork 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_getstack F
|
||||
GLIBC_2.2 pthread_attr_getstackaddr F
|
||||
|
@ -71,7 +71,6 @@ GLIBC_2.2 pread F
|
||||
GLIBC_2.2 pread64 F
|
||||
GLIBC_2.2 pthread_atfork 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_getstack F
|
||||
GLIBC_2.2 pthread_attr_getstackaddr F
|
||||
|
@ -71,7 +71,6 @@ GLIBC_2.2 pread F
|
||||
GLIBC_2.2 pread64 F
|
||||
GLIBC_2.2 pthread_atfork 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_getstack F
|
||||
GLIBC_2.2 pthread_attr_getstackaddr F
|
||||
|
@ -44,7 +44,6 @@ GLIBC_2.0 msync F
|
||||
GLIBC_2.0 open F
|
||||
GLIBC_2.0 pause 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_setschedpolicy F
|
||||
GLIBC_2.0 pthread_attr_setscope F
|
||||
|
@ -71,7 +71,6 @@ GLIBC_2.2 pread F
|
||||
GLIBC_2.2 pread64 F
|
||||
GLIBC_2.2 pthread_atfork 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_getstack F
|
||||
GLIBC_2.2 pthread_attr_getstackaddr F
|
||||
|
@ -71,7 +71,6 @@ GLIBC_2.2.5 pread F
|
||||
GLIBC_2.2.5 pread64 F
|
||||
GLIBC_2.2.5 pthread_atfork 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_getstack F
|
||||
GLIBC_2.2.5 pthread_attr_getstackaddr F
|
||||
|
@ -69,7 +69,6 @@ GLIBC_2.16 pread F
|
||||
GLIBC_2.16 pread64 F
|
||||
GLIBC_2.16 pthread_attr_getaffinity_np 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_getstack F
|
||||
GLIBC_2.16 pthread_attr_getstackaddr F
|
||||
|
Loading…
Reference in New Issue
Block a user