From dc260acd3875a5e6f5e905966a0af19c3c98aca7 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 10 Feb 2020 11:29:16 +0100 Subject: nptl: Move pthread_attr_setscope implementation into libc This is part of the libpthread removal project: Reviewed-by: Adhemerval Zanella --- nptl/Makefile | 2 +- nptl/Versions | 2 -- nptl/forward.c | 4 ---- nptl/nptl-init.c | 1 - 4 files changed, 1 insertion(+), 8 deletions(-) (limited to 'nptl') diff --git a/nptl/Makefile b/nptl/Makefile index fb954c6..43f8d4d 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 88b4266..5b4852a 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 43f9eb6..2076495 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 6a56a14..0a9b1d6 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, -- cgit v1.1