diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-27 16:36:45 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-01-27 16:36:45 +0100 |
commit | 24a80c3bd1f50df974cce1f153c26e546b4d93e4 (patch) | |
tree | ef51526cf5bce2d7ea78c0d27133985d28dfd2a6 | |
parent | 36da1934ec3b461e2bf0b52cd58de5bef563462e (diff) |
Add missing prototypes
* sysdeps/generic/pthread/pthread.h (pthread_mutexattr_getrobust,
pthread_mutexattr_getrobust_np, pthread_mutexattr_setrobust,
pthread_mutexattr_setrobust_np, pthread_rwlockattr_getkind_np,
pthread_rwlockattr_setkind_np): Add prototypes.
-rw-r--r-- | sysdeps/generic/pthread/pthread.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sysdeps/generic/pthread/pthread.h b/sysdeps/generic/pthread/pthread.h index ad34e5d..fccb7ce 100644 --- a/sysdeps/generic/pthread/pthread.h +++ b/sysdeps/generic/pthread/pthread.h @@ -314,6 +314,28 @@ extern int pthread_mutexattr_setprotocol(pthread_mutexattr_t *__attr, __THROW __nonnull ((1)); #endif +#ifdef __USE_XOPEN2K +/* Get the robustness flag of the mutex attribute ATTR. */ +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)); +# endif + +/* Set the robustness flag of the mutex attribute ATTR. */ +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)); +# endif +#endif + /* Return the value of the process shared attribute in *ATTR in *PSHARED. */ @@ -594,6 +616,16 @@ extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t *__restrict extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, int __pshared) __THROW __nonnull ((1)); + +/* Return current setting of reader/writer preference. */ +extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * + __restrict __attr, + int *__restrict __pref) + __THROW __nonnull ((1, 2)); + +/* Set reader/write preference. */ +extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, + int __pref) __THROW __nonnull ((1)); /* rwlocks. */ |