diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-23 10:23:24 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 17:06:48 +0200 |
commit | 4baf02b33235b7cdcb252bafebc132c66020eedd (patch) | |
tree | 7ef1a1e8205d89a0224743f19c15443ce793aead /sysdeps/ia64/nptl | |
parent | da8e3710d8791f4b7f164ba9eb45b823ada44634 (diff) | |
download | glibc-4baf02b33235b7cdcb252bafebc132c66020eedd.tar.gz glibc-4baf02b33235b7cdcb252bafebc132c66020eedd.tar.xz glibc-4baf02b33235b7cdcb252bafebc132c66020eedd.zip |
nptl: Move pthread_spin_trylock into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'sysdeps/ia64/nptl')
-rw-r--r-- | sysdeps/ia64/nptl/pthread_spin_trylock.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/ia64/nptl/pthread_spin_trylock.c b/sysdeps/ia64/nptl/pthread_spin_trylock.c index c0dd8dafdc..323af6bf62 100644 --- a/sysdeps/ia64/nptl/pthread_spin_trylock.c +++ b/sysdeps/ia64/nptl/pthread_spin_trylock.c @@ -18,9 +18,17 @@ #include <errno.h> #include "pthreadP.h" +#include <shlib-compat.h> int -pthread_spin_trylock (pthread_spinlock_t *lock) +__pthread_spin_trylock (pthread_spinlock_t *lock) { return __sync_val_compare_and_swap ((int *) lock, 0, 1) == 0 ? 0 : EBUSY; } +versioned_symbol (libc, __pthread_spin_trylock, pthread_spin_trylock, + GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34) +compat_symbol (libpthread, __pthread_spin_trylock, pthread_spin_trylock, + GLIBC_2_2); +#endif |