diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-06 15:56:37 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-06 15:56:37 +0200 |
commit | 3f0808ef4c872afeade0e323c024ac59ec90fc2b (patch) | |
tree | 39f1f666d59c3ca16f286a8b875404fd6f8c57aa /nptl/pthread_barrierattr_setpshared.c | |
parent | 39e74af22e63b8b099862f37adffdbfaf9ad7a20 (diff) | |
download | glibc-3f0808ef4c872afeade0e323c024ac59ec90fc2b.tar glibc-3f0808ef4c872afeade0e323c024ac59ec90fc2b.tar.gz glibc-3f0808ef4c872afeade0e323c024ac59ec90fc2b.tar.bz2 glibc-3f0808ef4c872afeade0e323c024ac59ec90fc2b.zip |
nptl: Move pthread_barrierattr_setpshared 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/pthread_barrierattr_setpshared.c')
-rw-r--r-- | nptl/pthread_barrierattr_setpshared.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_barrierattr_setpshared.c b/nptl/pthread_barrierattr_setpshared.c index efa19b0a61..8e25e6cb20 100644 --- a/nptl/pthread_barrierattr_setpshared.c +++ b/nptl/pthread_barrierattr_setpshared.c @@ -19,10 +19,10 @@ #include <errno.h> #include "pthreadP.h" #include <futex-internal.h> - +#include <shlib-compat.h> int -pthread_barrierattr_setpshared (pthread_barrierattr_t *attr, int pshared) +__pthread_barrierattr_setpshared (pthread_barrierattr_t *attr, int pshared) { int err = futex_supports_pshared (pshared); if (err != 0) @@ -32,3 +32,10 @@ pthread_barrierattr_setpshared (pthread_barrierattr_t *attr, int pshared) return 0; } +versioned_symbol (libc, __pthread_barrierattr_setpshared, + pthread_barrierattr_setpshared, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34) +compat_symbol (libpthread, __pthread_barrierattr_setpshared, + pthread_barrierattr_setpshared, GLIBC_2_2); +#endif |