aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_barrierattr_getpshared.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-06 15:56:37 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-06 15:56:37 +0200
commit39e74af22e63b8b099862f37adffdbfaf9ad7a20 (patch)
treecfc6ba66451b136b1810558ce411836f824170f1 /nptl/pthread_barrierattr_getpshared.c
parente731212bc3a3af5935aa0cc2ec738eddb127f383 (diff)
downloadglibc-39e74af22e63b8b099862f37adffdbfaf9ad7a20.zip
glibc-39e74af22e63b8b099862f37adffdbfaf9ad7a20.tar.gz
glibc-39e74af22e63b8b099862f37adffdbfaf9ad7a20.tar.bz2
nptl: Move pthread_barrierattr_getpshared 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_getpshared.c')
-rw-r--r--nptl/pthread_barrierattr_getpshared.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_barrierattr_getpshared.c b/nptl/pthread_barrierattr_getpshared.c
index d7cd303..986e4a5 100644
--- a/nptl/pthread_barrierattr_getpshared.c
+++ b/nptl/pthread_barrierattr_getpshared.c
@@ -17,13 +17,20 @@
<https://www.gnu.org/licenses/>. */
#include "pthreadP.h"
-
+#include <shlib-compat.h>
int
-pthread_barrierattr_getpshared (const pthread_barrierattr_t *attr,
+__pthread_barrierattr_getpshared (const pthread_barrierattr_t *attr,
int *pshared)
{
*pshared = ((const struct pthread_barrierattr *) attr)->pshared;
return 0;
}
+versioned_symbol (libc, __pthread_barrierattr_getpshared,
+ pthread_barrierattr_getpshared, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_barrierattr_getpshared,
+ pthread_barrierattr_getpshared, GLIBC_2_3_3);
+#endif