about summary refs log tree commit diff
path: root/nptl/pthread_rwlockattr_setpshared.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-03 09:10:57 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-03 09:18:45 +0200
commit0505ae4e3b6d18b7ed1ec4c9b2d7e890acadec93 (patch)
tree472d35373b9ec3bb8db4ecb633aced0124603573 /nptl/pthread_rwlockattr_setpshared.c
parentb444409479e34c80f27742e7017ea5741fe548d7 (diff)
downloadglibc-0505ae4e3b6d18b7ed1ec4c9b2d7e890acadec93.tar.gz
glibc-0505ae4e3b6d18b7ed1ec4c9b2d7e890acadec93.tar.xz
glibc-0505ae4e3b6d18b7ed1ec4c9b2d7e890acadec93.zip
nptl: Move pthread_rwlockattr_setpshared into libc
The symbol was moved using scripts/move-symbol-to-libc.py.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/pthread_rwlockattr_setpshared.c')
-rw-r--r--nptl/pthread_rwlockattr_setpshared.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_rwlockattr_setpshared.c b/nptl/pthread_rwlockattr_setpshared.c
index 2e42754466..e8f603788e 100644
--- a/nptl/pthread_rwlockattr_setpshared.c
+++ b/nptl/pthread_rwlockattr_setpshared.c
@@ -19,10 +19,10 @@
 #include <errno.h>
 #include "pthreadP.h"
 #include <futex-internal.h>
-
+#include <shlib-compat.h>
 
 int
-pthread_rwlockattr_setpshared (pthread_rwlockattr_t *attr, int pshared)
+__pthread_rwlockattr_setpshared (pthread_rwlockattr_t *attr, int pshared)
 {
   struct pthread_rwlockattr *iattr;
 
@@ -36,3 +36,10 @@ pthread_rwlockattr_setpshared (pthread_rwlockattr_t *attr, int pshared)
 
   return 0;
 }
+versioned_symbol (libc, __pthread_rwlockattr_setpshared,
+                  pthread_rwlockattr_setpshared, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_rwlockattr_setpshared,
+               pthread_rwlockattr_setpshared, GLIBC_2_1);
+#endif