From fec776b827755a0aac17a0745bc38c2329aad5ca Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 11 May 2021 20:22:33 +0200 Subject: nptl: Move pthread_getconcurrency, pthread_setconcurrency into libc The symbols were moved using scripts/move-symbol-to-libc.py, in one commit due to their dependency on the internal __concurrency_level variable. Reviewed-by: Adhemerval Zanella --- nptl/pthread_getconcurrency.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'nptl/pthread_getconcurrency.c') diff --git a/nptl/pthread_getconcurrency.c b/nptl/pthread_getconcurrency.c index 2ff9afa51b..387f7ffa39 100644 --- a/nptl/pthread_getconcurrency.c +++ b/nptl/pthread_getconcurrency.c @@ -17,10 +17,17 @@ . */ #include "pthreadP.h" - +#include int -pthread_getconcurrency (void) +__pthread_getconcurrency (void) { return __concurrency_level; } +versioned_symbol (libc, __pthread_getconcurrency, pthread_getconcurrency, + GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libpthread, __pthread_getconcurrency, pthread_getconcurrency, + GLIBC_2_1); +#endif -- cgit 1.4.1