about summary refs log tree commit diff
path: root/nptl/pthread_condattr_getpshared.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-23 11:00:53 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-23 11:00:53 +0200
commit2a775a9ea574957248e333595a35a75e43c946dc (patch)
treeef8f23d93b47bfdf5cea75869ef96601fcadaf75 /nptl/pthread_condattr_getpshared.c
parented00dcbbd695fedfc60591da24b3555db03b3dd9 (diff)
downloadglibc-2a775a9ea574957248e333595a35a75e43c946dc.tar.gz
glibc-2a775a9ea574957248e333595a35a75e43c946dc.tar.xz
glibc-2a775a9ea574957248e333595a35a75e43c946dc.zip
nptl: Move pthread_condattr_getpshared into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_condattr_getpshared.c')
-rw-r--r--nptl/pthread_condattr_getpshared.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_condattr_getpshared.c b/nptl/pthread_condattr_getpshared.c
index 9d88aaafb5..46974b0f9d 100644
--- a/nptl/pthread_condattr_getpshared.c
+++ b/nptl/pthread_condattr_getpshared.c
@@ -17,13 +17,20 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include "pthreadP.h"
-
+#include <shlib-compat.h>
 
 int
-pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
+__pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
 {
   *pshared = (((const struct pthread_condattr *) attr)->value & 1
 	      ? PTHREAD_PROCESS_SHARED : PTHREAD_PROCESS_PRIVATE);
 
   return 0;
 }
+versioned_symbol (libc, __pthread_condattr_getpshared,
+		  pthread_condattr_getpshared, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_condattr_getpshared,
+	       pthread_condattr_getpshared, GLIBC_2_2);
+#endif