about summary refs log tree commit diff
path: root/sysdeps/nptl/pthread.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-23 09:46:03 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-23 09:46:03 +0200
commit9b7ab14e112476c96e7b20fb23e6838b7012dfda (patch)
tree19959c497b673fc06fecee555114c43f05d1e8a1 /sysdeps/nptl/pthread.h
parent2e825f7d5a8a84b6389a27c138a903dfa464519a (diff)
downloadglibc-9b7ab14e112476c96e7b20fb23e6838b7012dfda.tar.gz
glibc-9b7ab14e112476c96e7b20fb23e6838b7012dfda.tar.xz
glibc-9b7ab14e112476c96e7b20fb23e6838b7012dfda.zip
nptl: Move pthread_mutexattr_getrobust into libc
And pthread_mutexattr_getrobust_np as a compat symbol.

The symbols were moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'sysdeps/nptl/pthread.h')
-rw-r--r--sysdeps/nptl/pthread.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/sysdeps/nptl/pthread.h b/sysdeps/nptl/pthread.h
index 23bcd51d91..c5ad98f354 100644
--- a/sysdeps/nptl/pthread.h
+++ b/sysdeps/nptl/pthread.h
@@ -885,9 +885,15 @@ extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr,
 					int *__robustness)
      __THROW __nonnull ((1, 2));
 # ifdef __USE_GNU
-extern int pthread_mutexattr_getrobust_np (const pthread_mutexattr_t *__attr,
-					   int *__robustness)
-     __THROW __nonnull ((1, 2));
+#  ifdef __REDIRECT_NTH
+extern int __REDIRECT_NTH (pthread_mutexattr_getrobust_np,
+			   (pthread_mutex_t *, int *),
+			   pthread_mutexattr_getrobust) __nonnull ((1))
+  __attribute_deprecated_msg__ ("\
+pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust");
+#  else
+#   define pthread_mutexattr_getrobust_np pthread_mutexattr_getrobust
+#  endif
 # endif
 
 /* Set the robustness flag of the mutex attribute ATTR.  */