diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-23 09:48:36 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 09:51:57 +0200 |
commit | 1ec4cd5ab42d6b16a81176b7051384a2221159e3 (patch) | |
tree | 0e3258f9d5151dab707ac94ad5bc443ae0bea183 /sysdeps/nptl | |
parent | 0bdd79794526114313135c528969bb25be88c1a3 (diff) | |
download | glibc-1ec4cd5ab42d6b16a81176b7051384a2221159e3.tar.gz glibc-1ec4cd5ab42d6b16a81176b7051384a2221159e3.tar.xz glibc-1ec4cd5ab42d6b16a81176b7051384a2221159e3.zip |
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')
-rw-r--r-- | sysdeps/nptl/pthread.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sysdeps/nptl/pthread.h b/sysdeps/nptl/pthread.h index c5ad98f354..c363552f6c 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. */ |