diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-02-10 11:26:00 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-02-20 08:57:01 +0100 |
commit | ed0a69b675cfece1ca8d9d3aa5ed4e412573e28f (patch) | |
tree | 77cc819fa0689e74959186103d29504ddf0148ed /nptl | |
parent | f0929a227b408f369c410645a87d3175a23876b0 (diff) | |
download | glibc-ed0a69b675cfece1ca8d9d3aa5ed4e412573e28f.zip glibc-ed0a69b675cfece1ca8d9d3aa5ed4e412573e28f.tar.gz glibc-ed0a69b675cfece1ca8d9d3aa5ed4e412573e28f.tar.bz2 |
nptl: Move pthread_attr_getscope 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 6a86021..fb954c6 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -42,6 +42,7 @@ routines = \ pthread_attr_getinheritsched \ pthread_attr_getschedparam \ pthread_attr_getschedpolicy \ + pthread_attr_getscope \ pthread_attr_init \ pthread_attr_setdetachstate \ pthread_attr_setinheritsched \ @@ -74,7 +75,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_getscope pthread_attr_setscope \ + pthread_attr_setscope \ pthread_attr_getstackaddr pthread_attr_setstackaddr \ pthread_attr_getstacksize pthread_attr_setstacksize \ pthread_attr_getstack pthread_attr_setstack \ diff --git a/nptl/Versions b/nptl/Versions index ca0a7e6..88b4266 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -49,7 +49,7 @@ libpthread { pthread_getschedparam; pthread_setschedparam; - pthread_attr_getscope; pthread_attr_setscope; + pthread_attr_setscope; pthread_mutex_init; pthread_mutex_destroy; pthread_mutex_lock; pthread_mutex_trylock; pthread_mutex_unlock; diff --git a/nptl/forward.c b/nptl/forward.c index 7e7fcf2..43f9eb6 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_getscope, - (const pthread_attr_t *attr, int *scope), (attr, scope), 0) FORWARD (pthread_attr_setscope, (pthread_attr_t *attr, int scope), (attr, scope), 0) diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index 96c2b61..6a56a14 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_getscope = __pthread_attr_getscope, .ptr_pthread_attr_setscope = __pthread_attr_setscope, .ptr_pthread_condattr_destroy = __pthread_condattr_destroy, .ptr_pthread_condattr_init = __pthread_condattr_init, |