]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: Do not expose pthread hidden proto outside libpthread
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 18 Jul 2021 20:25:33 +0000 (20:25 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 18 Jul 2021 20:25:33 +0000 (20:25 +0000)
Only libpthread.so can access them.

sysdeps/htl/pthreadP.h

index 7b3f969a3bd12b857cbb7ee8de44f5de70dadb1a..3fd774269fa20ed69bf50e649f1b51953e185740 100644 (file)
@@ -36,13 +36,10 @@ 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);
 
@@ -105,6 +102,9 @@ hidden_proto (__pthread_getspecific)
 hidden_proto (__pthread_setspecific)
 hidden_proto (__pthread_mutex_init)
 hidden_proto (__pthread_mutex_destroy)
+hidden_proto (__pthread_mutex_lock)
+hidden_proto (__pthread_mutex_trylock)
+hidden_proto (__pthread_mutex_unlock)
 hidden_proto (__pthread_mutex_timedlock)
 hidden_proto (__pthread_get_cleanup_stack)
 #endif