aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_mutexattr_getpshared.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-23 09:45:48 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-23 09:45:48 +0200
commit2e825f7d5a8a84b6389a27c138a903dfa464519a (patch)
tree8ae2b821d904fe13b80fe86e2c317ed28053f3ba /nptl/pthread_mutexattr_getpshared.c
parent9f2f158b35b3f293f10158f76624b92515f8d886 (diff)
downloadglibc-2e825f7d5a8a84b6389a27c138a903dfa464519a.zip
glibc-2e825f7d5a8a84b6389a27c138a903dfa464519a.tar.gz
glibc-2e825f7d5a8a84b6389a27c138a903dfa464519a.tar.bz2
nptl: Move pthread_mutexattr_getpshared into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_mutexattr_getpshared.c')
-rw-r--r--nptl/pthread_mutexattr_getpshared.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_mutexattr_getpshared.c b/nptl/pthread_mutexattr_getpshared.c
index 37803a2..6ec017f 100644
--- a/nptl/pthread_mutexattr_getpshared.c
+++ b/nptl/pthread_mutexattr_getpshared.c
@@ -17,10 +17,10 @@
<https://www.gnu.org/licenses/>. */
#include <pthreadP.h>
-
+#include <shlib-compat.h>
int
-pthread_mutexattr_getpshared (const pthread_mutexattr_t *attr, int *pshared)
+__pthread_mutexattr_getpshared (const pthread_mutexattr_t *attr, int *pshared)
{
const struct pthread_mutexattr *iattr;
@@ -31,3 +31,10 @@ pthread_mutexattr_getpshared (const pthread_mutexattr_t *attr, int *pshared)
return 0;
}
+versioned_symbol (libc, __pthread_mutexattr_getpshared,
+ pthread_mutexattr_getpshared, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_mutexattr_getpshared,
+ pthread_mutexattr_getpshared, GLIBC_2_2);
+#endif