summaryrefslogtreecommitdiff
path: root/sysdeps/pthread/pthread-functions.h
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 /sysdeps/pthread/pthread-functions.h
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 'sysdeps/pthread/pthread-functions.h')
-rw-r--r--sysdeps/pthread/pthread-functions.h6
1 files changed, 3 insertions, 3 deletions
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 *);