diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-05 17:15:57 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-05 17:19:48 +0200 |
commit | 018c75dcb1ee93f3ff0d3d9cbdf1fe48aa630315 (patch) | |
tree | a3553b7fa23e420e93f1f23a3fb7d7aea95765dc /nptl/sem_timedwait.c | |
parent | 793042c63c511f5280e960108b2f0b13e115245d (diff) | |
download | glibc-018c75dcb1ee93f3ff0d3d9cbdf1fe48aa630315.zip glibc-018c75dcb1ee93f3ff0d3d9cbdf1fe48aa630315.tar.gz glibc-018c75dcb1ee93f3ff0d3d9cbdf1fe48aa630315.tar.bz2 |
nptl: Move sem_timedwait into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/sem_timedwait.c')
-rw-r--r-- | nptl/sem_timedwait.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/nptl/sem_timedwait.c b/nptl/sem_timedwait.c index 770020e..584546c 100644 --- a/nptl/sem_timedwait.c +++ b/nptl/sem_timedwait.c @@ -24,7 +24,7 @@ /* This is in a separate file because because sem_timedwait is only provided if __USE_XOPEN2K is defined. */ int -__sem_timedwait64 (sem_t *sem, const struct __timespec64 *abstime) +___sem_timedwait64 (sem_t *sem, const struct __timespec64 *abstime) { if (! valid_nanoseconds (abstime->tv_nsec)) { @@ -42,15 +42,23 @@ __sem_timedwait64 (sem_t *sem, const struct __timespec64 *abstime) CLOCK_REALTIME, abstime); } -#if __TIMESIZE != 64 -libpthread_hidden_def (__sem_timedwait64) +#if __TIMESIZE == 64 +strong_alias (___sem_timedwait64, ___sem_timedwait) +#else /* __TIMESPEC64 != 64 */ +libc_hidden_ver (___sem_timedwait64, __sem_timedwait64) +#ifndef SHARED +strong_alias (___sem_timedwait64, __sem_timedwait64) +#endif int -__sem_timedwait (sem_t *sem, const struct timespec *abstime) +___sem_timedwait (sem_t *sem, const struct timespec *abstime) { struct __timespec64 ts64 = valid_timespec_to_timespec64 (*abstime); return __sem_timedwait64 (sem, &ts64); } +#endif /* __TIMESPEC64 != 64 */ +versioned_symbol (libc, ___sem_timedwait, sem_timedwait, GLIBC_2_34); +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34) +compat_symbol (libpthread, ___sem_timedwait, sem_timedwait, GLIBC_2_2); #endif -weak_alias (__sem_timedwait, sem_timedwait) |