From 249afce2e78ccc71cdb3535aa1feded5764cabe7 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 10 Feb 2020 11:30:59 +0100 Subject: nptl: Move pthread_condattr_destroy implementation into libc This is part of the libpthread removal project: Reviewed-by: Adhemerval Zanella --- nptl/Makefile | 3 ++- nptl/Versions | 2 +- nptl/forward.c | 1 - nptl/nptl-init.c | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) (limited to 'nptl') diff --git a/nptl/Makefile b/nptl/Makefile index 43f8d4db68..22765ca0db 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -49,6 +49,7 @@ routines = \ pthread_attr_setschedparam \ pthread_attr_setschedpolicy \ pthread_attr_setscope \ + pthread_condattr_destroy \ pthread_equal \ pthread_self \ register-atfork \ @@ -106,7 +107,7 @@ 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_destroy \ + 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 5b4852a905..22dc309522 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -58,7 +58,7 @@ libpthread { pthread_cond_wait; pthread_cond_timedwait; pthread_cond_signal; pthread_cond_broadcast; - pthread_condattr_destroy; pthread_condattr_init; + pthread_condattr_init; pthread_cancel; pthread_testcancel; pthread_setcancelstate; pthread_setcanceltype; diff --git a/nptl/forward.c b/nptl/forward.c index 2076495a8b..cf32d8cd3c 100644 --- a/nptl/forward.c +++ b/nptl/forward.c @@ -56,7 +56,6 @@ name decl \ FORWARD2 (name, int, decl, params, return defretval) -FORWARD (pthread_condattr_destroy, (pthread_condattr_t *attr), (attr), 0) FORWARD (pthread_condattr_init, (pthread_condattr_t *attr), (attr), 0) #if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_3_2) diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index 0a9b1d6b1b..9aebe0abf1 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_destroy = __pthread_condattr_destroy, .ptr_pthread_condattr_init = __pthread_condattr_init, .ptr___pthread_cond_broadcast = __pthread_cond_broadcast, .ptr___pthread_cond_destroy = __pthread_cond_destroy, -- cgit 1.4.1