diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-21 19:49:51 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-21 19:49:51 +0200 |
commit | 08129b155e50f01588ec6e675fc76637cb22eb01 (patch) | |
tree | 951a55d038001f1de40e4c40442a1819d6820402 /nptl/pthread_cond_signal.c | |
parent | 27a448223cb2d3bab191c61303db48cee66f871c (diff) | |
download | glibc-08129b155e50f01588ec6e675fc76637cb22eb01.tar.gz glibc-08129b155e50f01588ec6e675fc76637cb22eb01.tar.xz glibc-08129b155e50f01588ec6e675fc76637cb22eb01.zip |
nptl: Move core condition variable functions into libc
Onl pthread_cond_clockwait did not have a forwarder, so it needs a new symbol version. Some complications arise due to the need to supply hidden aliases, GLIBC_PRIVATE exports (for the C11 condition variable implementation that still remains in libpthread) and 64-bit time_t stubs. pthread_cond_broadcast, pthread_cond_signal, pthread_cond_timedwait, pthread_cond_wait, pthread_cond_clockwait have been moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/pthread_cond_signal.c')
-rw-r--r-- | nptl/pthread_cond_signal.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nptl/pthread_cond_signal.c b/nptl/pthread_cond_signal.c index 77073342b2..17b4a69702 100644 --- a/nptl/pthread_cond_signal.c +++ b/nptl/pthread_cond_signal.c @@ -32,7 +32,7 @@ /* See __pthread_cond_wait for a high-level description of the algorithm. */ int -__pthread_cond_signal (pthread_cond_t *cond) +___pthread_cond_signal (pthread_cond_t *cond) { LIBC_PROBE (cond_signal, 1, cond); @@ -95,6 +95,8 @@ __pthread_cond_signal (pthread_cond_t *cond) return 0; } - -versioned_symbol (libpthread, __pthread_cond_signal, pthread_cond_signal, +versioned_symbol (libpthread, ___pthread_cond_signal, pthread_cond_signal, GLIBC_2_3_2); +libc_hidden_ver (___pthread_cond_signal, __pthread_cond_signal) +versioned_symbol (libpthread, ___pthread_cond_signal, + __pthread_cond_signal, GLIBC_PRIVATE); |