summaryrefslogtreecommitdiff
path: root/pthread/pt-initialize.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-27 20:21:28 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-27 20:21:28 +0100
commita7e90478b6bd2ca0a8df8db9a0ae6448f0b391af (patch)
treef48b86fc0df6e942158a5eb7f6f8f9b8562aca77 /pthread/pt-initialize.c
parentba1101b8755f1e843af4d9b160533f0b11e4b598 (diff)
Use pthread_key for libc_key
* sysdeps/pthread/pthread-functions.h (struct pthread_functions): Rename ptr_pthread_key_create, ptr_pthread_getspecific, ptr_pthread_setspecific fields into ptr___pthread_key_create, ptr___pthread_getspecific, ptr___pthread_setspecific * pthread/pt-initialize.c (struct pthread_functions): Likewise. * sysdeps/pthread/libc-lockP.h (__libc_key_t): Define type. [IS_IN (libpthread)] (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Directly call pthread functions. (__libc_key_create): Define macro to calling __pthread_key_create. (__libc_getspecific): Define macro to calling __pthread_getspecific. (__libc_setspecific): Define macro to calling __pthread_setspecific.
Diffstat (limited to 'pthread/pt-initialize.c')
-rw-r--r--pthread/pt-initialize.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pthread/pt-initialize.c b/pthread/pt-initialize.c
index 4435a36..bb3e1fc 100644
--- a/pthread/pt-initialize.c
+++ b/pthread/pt-initialize.c
@@ -68,9 +68,9 @@ static const struct pthread_functions pthread_functions =
.ptr_pthread_rwlock_rdlock = __pthread_rwlock_rdlock,
.ptr_pthread_rwlock_wrlock = __pthread_rwlock_wrlock,
.ptr_pthread_rwlock_unlock = __pthread_rwlock_unlock,
- .ptr_pthread_key_create = __pthread_key_create,
- .ptr_pthread_getspecific = __pthread_getspecific,
- .ptr_pthread_setspecific = __pthread_setspecific,
+ .ptr___pthread_key_create = __pthread_key_create,
+ .ptr___pthread_getspecific = __pthread_getspecific,
+ .ptr___pthread_setspecific = __pthread_setspecific,
.ptr__IO_flockfile = _cthreads_flockfile,
.ptr__IO_funlockfile = _cthreads_funlockfile,
.ptr__IO_ftrylockfile = _cthreads_ftrylockfile,