about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-10 11:29:16 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-20 08:57:01 +0100
commitdc260acd3875a5e6f5e905966a0af19c3c98aca7 (patch)
treea158a4c7db66040e917ddf1bd608dec86708caad /nptl
parented0a69b675cfece1ca8d9d3aa5ed4e412573e28f (diff)
downloadglibc-dc260acd3875a5e6f5e905966a0af19c3c98aca7.tar.gz
glibc-dc260acd3875a5e6f5e905966a0af19c3c98aca7.tar.xz
glibc-dc260acd3875a5e6f5e905966a0af19c3c98aca7.zip
nptl: Move pthread_attr_setscope 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/Makefile2
-rw-r--r--nptl/Versions2
-rw-r--r--nptl/forward.c4
-rw-r--r--nptl/nptl-init.c1
4 files changed, 1 insertions, 8 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index fb954c6a8b..43f8d4db68 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -48,6 +48,7 @@ routines = \
   pthread_attr_setinheritsched \
   pthread_attr_setschedparam \
   pthread_attr_setschedpolicy \
+  pthread_attr_setscope \
   pthread_equal \
   pthread_self \
   register-atfork \
@@ -75,7 +76,6 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \
 		      pthread_getschedparam pthread_setschedparam \
 		      pthread_setschedprio \
 		      pthread_attr_getguardsize pthread_attr_setguardsize \
-		      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 88b4266287..5b4852a905 100644
--- a/nptl/Versions
+++ b/nptl/Versions
@@ -49,8 +49,6 @@ libpthread {
 
     pthread_getschedparam; pthread_setschedparam;
 
-    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 43f9eb699f..2076495a8b 100644
--- a/nptl/forward.c
+++ b/nptl/forward.c
@@ -56,10 +56,6 @@ name decl								      \
   FORWARD2 (name, int, decl, params, return defretval)
 
 
-FORWARD (pthread_attr_setscope, (pthread_attr_t *attr, int scope),
-	 (attr, scope), 0)
-
-
 FORWARD (pthread_condattr_destroy, (pthread_condattr_t *attr), (attr), 0)
 FORWARD (pthread_condattr_init, (pthread_condattr_t *attr), (attr), 0)
 
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c
index 6a56a14a05..0a9b1d6b1b 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_setscope = __pthread_attr_setscope,
     .ptr_pthread_condattr_destroy = __pthread_condattr_destroy,
     .ptr_pthread_condattr_init = __pthread_condattr_init,
     .ptr___pthread_cond_broadcast = __pthread_cond_broadcast,