about summary refs log tree commit diff
path: root/nptl/pthreadP.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-23 09:43:24 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-23 09:43:24 +0200
commit4372dc7eaaa81fc04554626b7f02c9759a04a65b (patch)
tree0b2bb229d8a9d4cf9604d7ab45eff31dae24cc52 /nptl/pthreadP.h
parenta2975191d0e852ba2501f4cf1588aae76bdad303 (diff)
downloadglibc-4372dc7eaaa81fc04554626b7f02c9759a04a65b.tar.gz
glibc-4372dc7eaaa81fc04554626b7f02c9759a04a65b.tar.xz
glibc-4372dc7eaaa81fc04554626b7f02c9759a04a65b.zip
nptl: Move pthread_mutex_timedlock, pthread_mutex_clocklock to libc
The symbols were moved using scripts/move-symbol-to-libc.py.
The symbol aliasing follows pthread_cond_timedwait et al.
Missing hidden prototypes had to be added to nptl/pthreadP.h
for consistency.
Diffstat (limited to 'nptl/pthreadP.h')
-rw-r--r--nptl/pthreadP.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/nptl/pthreadP.h b/nptl/pthreadP.h
index af76361c34..0def617109 100644
--- a/nptl/pthreadP.h
+++ b/nptl/pthreadP.h
@@ -516,10 +516,10 @@ libpthread_hidden_proto (__pthread_rwlock_timedwrlock64)
 extern int __pthread_mutex_clocklock64 (pthread_mutex_t *mutex,
                                         clockid_t clockid,
                                         const struct __timespec64 *abstime);
-libpthread_hidden_proto (__pthread_mutex_clocklock64)
+libc_hidden_proto (__pthread_mutex_clocklock64)
 extern int __pthread_mutex_timedlock64 (pthread_mutex_t *mutex,
                                         const struct __timespec64 *abstime);
-libpthread_hidden_proto (__pthread_mutex_timedlock64)
+libc_hidden_proto (__pthread_mutex_timedlock64)
 #endif
 
 extern int __pthread_cond_timedwait (pthread_cond_t *cond,
@@ -532,6 +532,15 @@ extern int __pthread_cond_clockwait (pthread_cond_t *cond,
 				     const struct timespec *abstime)
   __nonnull ((1, 2, 4));
 libc_hidden_proto (__pthread_cond_clockwait)
+
+extern int __pthread_mutex_clocklock (pthread_mutex_t *mutex,
+				      clockid_t clockid,
+				      const struct timespec *abstime);
+libc_hidden_proto (__pthread_mutex_clocklock)
+extern int __pthread_mutex_timedlock (pthread_mutex_t *mutex,
+				      const struct timespec *abstime);
+libc_hidden_proto (__pthread_mutex_timedlock)
+
 extern int __pthread_condattr_destroy (pthread_condattr_t *attr);
 extern int __pthread_condattr_init (pthread_condattr_t *attr);
 extern int __pthread_key_create (pthread_key_t *key, void (*destr) (void *));