1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

nptl: Move pthread_rwlock_clockrdlock into libc

The symbol was moved using scripts/move-symbol-to-libc.py.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Florian Weimer
2021-05-03 09:10:57 +02:00
parent 2c5c5c87c9
commit 0ace9b197c
65 changed files with 84 additions and 39 deletions

View File

@@ -18,25 +18,34 @@
<https://www.gnu.org/licenses/>. */
#include "pthread_rwlock_common.c"
#include <shlib-compat.h>
/* See pthread_rwlock_common.c. */
int
__pthread_rwlock_clockrdlock64 (pthread_rwlock_t *rwlock, clockid_t clockid,
const struct __timespec64 *abstime)
___pthread_rwlock_clockrdlock64 (pthread_rwlock_t *rwlock, clockid_t clockid,
const struct __timespec64 *abstime)
{
return __pthread_rwlock_rdlock_full64 (rwlock, clockid, abstime);
}
#if __TIMESIZE != 64
libpthread_hidden_def (__pthread_rwlock_clockrdlock64)
#if __TIMESIZE == 64
strong_alias (___pthread_rwlock_clockrdlock64, ___pthread_rwlock_clockrdlock)
#else /* __TIMESPEC64 != 64 */
libc_hidden_ver (___pthread_rwlock_clockrdlock64,
__pthread_rwlock_clockrdlock64)
int
__pthread_rwlock_clockrdlock (pthread_rwlock_t *rwlock, clockid_t clockid,
const struct timespec *abstime)
___pthread_rwlock_clockrdlock (pthread_rwlock_t *rwlock, clockid_t clockid,
const struct timespec *abstime)
{
struct __timespec64 ts64 = valid_timespec_to_timespec64 (*abstime);
return __pthread_rwlock_clockrdlock64 (rwlock, clockid, &ts64);
}
#endif /* __TIMESPEC64 != 64 */
versioned_symbol (libc, ___pthread_rwlock_clockrdlock,
pthread_rwlock_clockrdlock, GLIBC_2_34);
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_30, GLIBC_2_34)
compat_symbol (libpthread, ___pthread_rwlock_clockrdlock,
pthread_rwlock_clockrdlock, GLIBC_2_30);
#endif
weak_alias (__pthread_rwlock_clockrdlock, pthread_rwlock_clockrdlock)