From a7e90478b6bd2ca0a8df8db9a0ae6448f0b391af Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 27 Jan 2018 20:21:28 +0100 Subject: 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. --- pthread/pt-initialize.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pthread/pt-initialize.c') 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, -- cgit v1.2.3