diff options
Diffstat (limited to 'nptl/pthread_rwlock_wrlock.c')
-rw-r--r-- | nptl/pthread_rwlock_wrlock.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/nptl/pthread_rwlock_wrlock.c b/nptl/pthread_rwlock_wrlock.c index 98882a87e4..7b625201c5 100644 --- a/nptl/pthread_rwlock_wrlock.c +++ b/nptl/pthread_rwlock_wrlock.c @@ -20,7 +20,7 @@ /* See pthread_rwlock_common.c. */ int -__pthread_rwlock_wrlock (pthread_rwlock_t *rwlock) +__pthread_rwlock_wrlock_1 (pthread_rwlock_t *rwlock) { LIBC_PROBE (wrlock_entry, 1, rwlock); @@ -28,6 +28,22 @@ __pthread_rwlock_wrlock (pthread_rwlock_t *rwlock) LIBC_PROBE (wrlock_acquire_write, 1, rwlock); return result; } +versioned_symbol (libc, __pthread_rwlock_wrlock_1, __pthread_rwlock_wrlock, + GLIBC_2_34); +libc_hidden_ver (__pthread_rwlock_wrlock_1, __pthread_rwlock_wrlock) -weak_alias (__pthread_rwlock_wrlock, pthread_rwlock_wrlock) -hidden_def (__pthread_rwlock_wrlock) +/* Several aliases for setting different symbol versions. */ +strong_alias (__pthread_rwlock_wrlock_1, __pthread_rwlock_wrlock_2) +strong_alias (__pthread_rwlock_wrlock_1, __pthread_rwlock_wrlock_3) +strong_alias (__pthread_rwlock_wrlock_1, __pthread_rwlock_wrlock_4) + +versioned_symbol (libc, __pthread_rwlock_wrlock_2, pthread_rwlock_wrlock, + GLIBC_2_34); +#if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libc, __pthread_rwlock_wrlock_3, pthread_rwlock_wrlock, + GLIBC_2_1); +#endif +#if SHLIB_COMPAT (libc, GLIBC_2_2, GLIBC_2_34) +compat_symbol (libc, __pthread_rwlock_wrlock_4, __pthread_rwlock_wrlock, + GLIBC_2_2); +#endif |