about summary refs log tree commit diff
path: root/nptl/pthread_attr_getguardsize.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-11 19:32:43 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-11 19:33:10 +0200
commitb5668f08ea2d6fa9dbb5046e2aee341d33d7cf13 (patch)
tree6100fb7c0b1b6b99943a47da6da77ecd0664a525 /nptl/pthread_attr_getguardsize.c
parentf5bc5f6e2a96b8b03d1bf8199a58b1accc3c4c53 (diff)
downloadglibc-b5668f08ea2d6fa9dbb5046e2aee341d33d7cf13.tar.gz
glibc-b5668f08ea2d6fa9dbb5046e2aee341d33d7cf13.tar.xz
glibc-b5668f08ea2d6fa9dbb5046e2aee341d33d7cf13.zip
nptl: Move pthread_attr_getguardsize 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_attr_getguardsize.c')
-rw-r--r--nptl/pthread_attr_getguardsize.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/nptl/pthread_attr_getguardsize.c b/nptl/pthread_attr_getguardsize.c
index a59bc9b283..485bd4c2df 100644
--- a/nptl/pthread_attr_getguardsize.c
+++ b/nptl/pthread_attr_getguardsize.c
@@ -17,10 +17,10 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include "pthreadP.h"
-
+#include <shlib-compat.h>
 
 int
-pthread_attr_getguardsize (const pthread_attr_t *attr, size_t *guardsize)
+__pthread_attr_getguardsize (const pthread_attr_t *attr, size_t *guardsize)
 {
   struct pthread_attr *iattr;
 
@@ -30,3 +30,9 @@ pthread_attr_getguardsize (const pthread_attr_t *attr, size_t *guardsize)
 
   return 0;
 }
+versioned_symbol (libpthread, __pthread_attr_getguardsize,
+                  pthread_attr_getguardsize, GLIBC_2_34);
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_attr_getguardsize,
+               pthread_attr_getguardsize, GLIBC_2_1);
+#endif