From 7da5c345a5f527dc6213e8540e4a9c6eceeb6774 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 10 Feb 2020 11:32:45 +0100 Subject: nptl: Move pthread_condattr_init implementation into libc This is part of the libpthread removal project: Reviewed-by: Adhemerval Zanella --- nptl/Makefile | 2 +- nptl/Versions | 2 -- nptl/forward.c | 2 -- nptl/nptl-init.c | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) (limited to 'nptl') diff --git a/nptl/Makefile b/nptl/Makefile index 22765ca0db..c5e2349ab7 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -50,6 +50,7 @@ routines = \ pthread_attr_setschedpolicy \ pthread_attr_setscope \ pthread_condattr_destroy \ + pthread_condattr_init \ pthread_equal \ pthread_self \ register-atfork \ @@ -107,7 +108,6 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \ old_pthread_cond_init old_pthread_cond_destroy \ old_pthread_cond_wait old_pthread_cond_timedwait \ old_pthread_cond_signal old_pthread_cond_broadcast \ - pthread_condattr_init \ pthread_condattr_getpshared pthread_condattr_setpshared \ pthread_condattr_getclock pthread_condattr_setclock \ pthread_spin_init pthread_spin_destroy \ diff --git a/nptl/Versions b/nptl/Versions index 22dc309522..bc1bad0562 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -58,8 +58,6 @@ libpthread { pthread_cond_wait; pthread_cond_timedwait; pthread_cond_signal; pthread_cond_broadcast; - pthread_condattr_init; - pthread_cancel; pthread_testcancel; pthread_setcancelstate; pthread_setcanceltype; diff --git a/nptl/forward.c b/nptl/forward.c index cf32d8cd3c..9383ada753 100644 --- a/nptl/forward.c +++ b/nptl/forward.c @@ -56,8 +56,6 @@ name decl \ FORWARD2 (name, int, decl, params, return defretval) -FORWARD (pthread_condattr_init, (pthread_condattr_t *attr), (attr), 0) - #if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_3_2) FORWARD2 (__pthread_cond_broadcast_2_0, int attribute_compat_text_section, (pthread_cond_2_0_t *cond), (cond), return 0) diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index 9aebe0abf1..6e681bafd1 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_condattr_init = __pthread_condattr_init, .ptr___pthread_cond_broadcast = __pthread_cond_broadcast, .ptr___pthread_cond_destroy = __pthread_cond_destroy, .ptr___pthread_cond_init = __pthread_cond_init, -- cgit v1.2.3-70-g09d2