diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-02-10 11:20:30 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-02-20 08:57:01 +0100 |
commit | ce197a6e0a34211d403bd28c60142bc075cc4236 (patch) | |
tree | 194f1139a86ffff61f8413ddc2f1f225ffc58be2 /nptl | |
parent | nptl: Sort routines list in Makefile alphabetically (diff) | |
download | glibc-ce197a6e0a34211d403bd28c60142bc075cc4236.tar.gz glibc-ce197a6e0a34211d403bd28c60142bc075cc4236.tar.bz2 glibc-ce197a6e0a34211d403bd28c60142bc075cc4236.zip |
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>
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/Makefile | 3 | ||||
-rw-r--r-- | nptl/Versions | 2 | ||||
-rw-r--r-- | nptl/forward.c | 2 | ||||
-rw-r--r-- | nptl/nptl-init.c | 1 |
4 files changed, 3 insertions, 5 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index e5f848bdba..fefbf895b0 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -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 \ diff --git a/nptl/Versions b/nptl/Versions index ff6fc06002..d8312e70cc 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -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; diff --git a/nptl/forward.c b/nptl/forward.c index d2352602da..ed5b6c9bb4 100644 --- a/nptl/forward.c +++ b/nptl/forward.c @@ -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) diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index 6bc1e75f55..1f8852f87b 100644 --- a/nptl/nptl-init.c +++ b/nptl/nptl-init.c @@ -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, |