aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-10 11:20:30 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-20 08:57:01 +0100
commitce197a6e0a34211d403bd28c60142bc075cc4236 (patch)
tree194f1139a86ffff61f8413ddc2f1f225ffc58be2 /nptl
parent8923b9962c817096eb0afd7c2e9cf5e9e758f057 (diff)
downloadglibc-ce197a6e0a34211d403bd28c60142bc075cc4236.zip
glibc-ce197a6e0a34211d403bd28c60142bc075cc4236.tar.gz
glibc-ce197a6e0a34211d403bd28c60142bc075cc4236.tar.bz2
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/Makefile3
-rw-r--r--nptl/Versions2
-rw-r--r--nptl/forward.c2
-rw-r--r--nptl/nptl-init.c1
4 files changed, 3 insertions, 5 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index e5f848b..fefbf89 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 ff6fc06..d8312e7 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 d235260..ed5b6c9 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 6bc1e75..1f8852f 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,