summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-25 21:18:29 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-25 21:18:29 +0200
commit2b7d0800f314e0abf370b2b6f6272a2ddb875464 (patch)
tree08405dbfe080b2f2d22da45acc3b32137b235d07 /sysdeps
parentf881f17267506f3ced17259a066a4d95bffb57f0 (diff)
Fix exposing symbols
* sysdeps/hurd/pt-key.h (__pthread_key_lock_ready): Use __pthread_mutexattr_init, __pthread_mutexattr_settype, _pthread_mutex_init, __pthread_mutexattr_destroy, __pthread_once instead of pthread_mutexattr_init, pthread_mutexattr_settype,pthread_mutex_init, pthread_mutexattr_destroy, pthread_once.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/hurd/pt-key.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/sysdeps/hurd/pt-key.h b/sysdeps/hurd/pt-key.h
index 494e01d..7b6a2c2 100644
--- a/sysdeps/hurd/pt-key.h
+++ b/sysdeps/hurd/pt-key.h
@@ -19,6 +19,7 @@
#include <pthread.h>
#include <hurd/ihash.h>
+#include <libc-lockP.h>
#define PTHREAD_KEY_MEMBERS \
hurd_ihash_t thread_specifics;
@@ -59,18 +60,18 @@ __pthread_key_lock_ready (void)
int err;
pthread_mutexattr_t attr;
- err = pthread_mutexattr_init (&attr);
+ err = __pthread_mutexattr_init (&attr);
assert_perror (err);
- err = pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
+ err = __pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
assert_perror (err);
- err = pthread_mutex_init (&__pthread_key_lock, &attr);
+ err = _pthread_mutex_init (&__pthread_key_lock, &attr);
assert_perror (err);
- err = pthread_mutexattr_destroy (&attr);
+ err = __pthread_mutexattr_destroy (&attr);
assert_perror (err);
}
- pthread_once (&o, do_init);
+ __pthread_once (&o, do_init);
}