diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-07-13 21:33:39 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-07-13 23:36:58 +0200 |
commit | c27bcc95880934481fc1a128486e93447de6a0dd (patch) | |
tree | a25d13f7db78f1fc07a14d65fa08f2ff6fd3d233 /sysdeps/htl | |
parent | 9ed752af8d6581efec4a4ca9e67b06fa7e7e763a (diff) | |
download | glibc-c27bcc95880934481fc1a128486e93447de6a0dd.tar.gz glibc-c27bcc95880934481fc1a128486e93447de6a0dd.tar.xz glibc-c27bcc95880934481fc1a128486e93447de6a0dd.zip |
htl: Let libc call __pthread_mutex_{,try,un}lock
Now that NPTL was moved to libc, libc makes internal __pthread calls, so htl has to expose them internally.
Diffstat (limited to 'sysdeps/htl')
-rw-r--r-- | sysdeps/htl/pthreadP.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h index 3b357b7bdc..7b3f969a3b 100644 --- a/sysdeps/htl/pthreadP.h +++ b/sysdeps/htl/pthreadP.h @@ -36,10 +36,13 @@ extern struct __pthread **__pthread_threads; extern int __pthread_mutex_init (pthread_mutex_t *__mutex, const pthread_mutexattr_t *__attr); extern int __pthread_mutex_destroy (pthread_mutex_t *__mutex); extern int __pthread_mutex_lock (pthread_mutex_t *__mutex); +hidden_proto (__pthread_mutex_lock) extern int __pthread_mutex_trylock (pthread_mutex_t *_mutex); +hidden_proto (__pthread_mutex_trylock) extern int __pthread_mutex_timedlock (pthread_mutex_t *__mutex, const struct timespec *__abstime); extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex); +hidden_proto (__pthread_mutex_unlock) extern int __pthread_mutexattr_init (pthread_mutexattr_t *attr); extern int __pthread_mutexattr_settype (pthread_mutexattr_t *attr, int kind); |