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. --- sysdeps/pthread/pthread-functions.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdeps/pthread/pthread-functions.h') diff --git a/sysdeps/pthread/pthread-functions.h b/sysdeps/pthread/pthread-functions.h index db30f13..c121936 100644 --- a/sysdeps/pthread/pthread-functions.h +++ b/sysdeps/pthread/pthread-functions.h @@ -121,9 +121,9 @@ struct pthread_functions int (*ptr_pthread_rwlock_rdlock) (pthread_rwlock_t *); int (*ptr_pthread_rwlock_wrlock) (pthread_rwlock_t *); int (*ptr_pthread_rwlock_unlock) (pthread_rwlock_t *); - int (*ptr_pthread_key_create) (pthread_key_t *, void (*) (void *)); - void *(*ptr_pthread_getspecific) (pthread_key_t); - int (*ptr_pthread_setspecific) (pthread_key_t, const void *); + int (*ptr___pthread_key_create) (pthread_key_t *, void (*) (void *)); + void *(*ptr___pthread_getspecific) (pthread_key_t); + int (*ptr___pthread_setspecific) (pthread_key_t, const void *); void (*ptr__IO_flockfile) (FILE *); void (*ptr__IO_funlockfile) (FILE *); int (*ptr__IO_ftrylockfile) (FILE *); -- cgit v1.2.3