aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/nptl/pthread.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-23 09:48:36 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-23 09:51:57 +0200
commit1ec4cd5ab42d6b16a81176b7051384a2221159e3 (patch)
tree0e3258f9d5151dab707ac94ad5bc443ae0bea183 /sysdeps/nptl/pthread.h
parent0bdd79794526114313135c528969bb25be88c1a3 (diff)
downloadglibc-1ec4cd5ab42d6b16a81176b7051384a2221159e3.zip
glibc-1ec4cd5ab42d6b16a81176b7051384a2221159e3.tar.gz
glibc-1ec4cd5ab42d6b16a81176b7051384a2221159e3.tar.bz2
nptl: Move pthread_mutexattr_setrobust 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.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/sysdeps/nptl/pthread.h b/sysdeps/nptl/pthread.h
index c5ad98f..c363552 100644
--- a/sysdeps/nptl/pthread.h
+++ b/sysdeps/nptl/pthread.h
@@ -901,13 +901,18 @@ extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr,
int __robustness)
__THROW __nonnull ((1));
# ifdef __USE_GNU
-extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *__attr,
- int __robustness)
- __THROW __nonnull ((1));
+# ifdef __REDIRECT_NTH
+extern int __REDIRECT_NTH (pthread_mutexattr_setrobust_np,
+ (pthread_mutex_t *, int),
+ pthread_mutexattr_setrobust) __nonnull ((1))
+ __attribute_deprecated_msg__ ("\
+pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust");
+# else
+# define pthread_mutexattr_setrobust_np pthread_mutexattr_setrobust
+# endif
# endif
#endif
-
#if defined __USE_UNIX98 || defined __USE_XOPEN2K
/* Functions for handling read-write locks. */