diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-10-04 17:36:55 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-10-04 17:38:06 +0200 |
commit | eaad14b56aa0d18b3b6bbb1618de2ab5b242d434 (patch) | |
tree | a3971457eb3be4d81904eaed4a25ee5f6e1f7e2b /nptl | |
parent | 021197483e8fa9999644c96d7dd7b5c3cc95867a (diff) | |
download | glibc-eaad14b56aa0d18b3b6bbb1618de2ab5b242d434.zip glibc-eaad14b56aa0d18b3b6bbb1618de2ab5b242d434.tar.gz glibc-eaad14b56aa0d18b3b6bbb1618de2ab5b242d434.tar.bz2 |
nptl: Move pthread_attr_setinheritsched implementation into libc.
This is part of the libpthread removal project:
<https://sourceware.org/ml/libc-alpha/2019-10/msg00080.html>
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/Makefile | 4 | ||||
-rw-r--r-- | nptl/Versions | 1 | ||||
-rw-r--r-- | nptl/forward.c | 3 | ||||
-rw-r--r-- | nptl/nptl-init.c | 1 |
4 files changed, 2 insertions, 7 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index 66f89f1..53c556e 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -32,7 +32,8 @@ routines = alloca_cutoff forward libc-lowlevellock libc-cancellation \ register-atfork pthread_atfork pthread_self thrd_current \ thrd_equal thrd_sleep thrd_yield pthread_equal \ pthread_attr_destroy pthread_attr_init pthread_attr_getdetachstate \ - pthread_attr_setdetachstate pthread_attr_getinheritsched + pthread_attr_setdetachstate pthread_attr_getinheritsched \ + pthread_attr_setinheritsched shared-only-routines = forward static-only-routines = pthread_atfork @@ -58,7 +59,6 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \ pthread_attr_getguardsize pthread_attr_setguardsize \ pthread_attr_getschedparam pthread_attr_setschedparam \ pthread_attr_getschedpolicy pthread_attr_setschedpolicy \ - pthread_attr_setinheritsched \ 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 6f4d74f..70af273 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -51,7 +51,6 @@ libpthread { pthread_attr_getschedparam; pthread_attr_setschedparam; pthread_attr_getschedpolicy; pthread_attr_setschedpolicy; - pthread_attr_setinheritsched; pthread_attr_getscope; pthread_attr_setscope; pthread_mutex_init; pthread_mutex_destroy; diff --git a/nptl/forward.c b/nptl/forward.c index 4c517e9..807682c 100644 --- a/nptl/forward.c +++ b/nptl/forward.c @@ -56,9 +56,6 @@ name decl \ FORWARD2 (name, int, decl, params, return defretval) -FORWARD (pthread_attr_setinheritsched, (pthread_attr_t *attr, int inherit), - (attr, inherit), 0) - FORWARD (pthread_attr_getschedparam, (const pthread_attr_t *attr, struct sched_param *param), (attr, param), 0) diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index 4cd0852..0a317a9 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_setinheritsched = __pthread_attr_setinheritsched, .ptr_pthread_attr_getschedparam = __pthread_attr_getschedparam, .ptr_pthread_attr_setschedparam = __pthread_attr_setschedparam, .ptr_pthread_attr_getschedpolicy = __pthread_attr_getschedpolicy, |