about summary refs log tree commit diff
path: root/nptl/pthread_rwlockattr_setkind_np.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:42 +0200
commitb444409479e34c80f27742e7017ea5741fe548d7 (patch)
tree787d0d884a8be9f3499ded8831763ab9a393507f /nptl/pthread_rwlockattr_setkind_np.c
parentdbfa12e201529d7006477d192a6f340e696744a1 (diff)
downloadglibc-b444409479e34c80f27742e7017ea5741fe548d7.tar.gz
glibc-b444409479e34c80f27742e7017ea5741fe548d7.tar.xz
glibc-b444409479e34c80f27742e7017ea5741fe548d7.zip
nptl: Move pthread_rwlockattr_setkind_np 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_setkind_np.c')
-rw-r--r--nptl/pthread_rwlockattr_setkind_np.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_rwlockattr_setkind_np.c b/nptl/pthread_rwlockattr_setkind_np.c
index eda7b54bc8..9e13665470 100644
--- a/nptl/pthread_rwlockattr_setkind_np.c
+++ b/nptl/pthread_rwlockattr_setkind_np.c
@@ -18,10 +18,10 @@
 
 #include <errno.h>
 #include "pthreadP.h"
-
+#include <shlib-compat.h>
 
 int
-pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *attr, int pref)
+__pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *attr, int pref)
 {
   struct pthread_rwlockattr *iattr;
 
@@ -36,3 +36,10 @@ pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *attr, int pref)
 
   return 0;
 }
+versioned_symbol (libc, __pthread_rwlockattr_setkind_np,
+                  pthread_rwlockattr_setkind_np, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_rwlockattr_setkind_np,
+               pthread_rwlockattr_setkind_np, GLIBC_2_1);
+#endif