From 97dac76c11e1317222fb09913d695bab51ba7b3c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 18 Nov 1998 17:02:37 +0000 Subject: Update. 1998-11-18 Ulrich Drepper * Makefile (CFLAGS-mutex.c): Define as -D__NO_WEAK_PTHREAD_ALIASES. (CFLAGS-specific.c): Likewise. (CFLAGS-pthread.c): Likewise. (CFLAGS-ptfork.c): Likewise. (CFLAGS-cancel.c): Likewise. * sysdeps/pthread/bits/libc-lock.h: Don't mark __pthread_* functions as weak references if __NO_WEAK_PTHREAD_ALIASES is defined. * mutex.c (pthread_mutex_init): Define as strong symbol. (pthread_mutex_destroy): Likewise. (pthread_mutex_trylock): Likewise. (pthread_mutex_lock): Likewise. (pthread_mutex_unlock): Likewise. (pthread_mutexattr_init): Likewise. (pthread_mutexattr_destroy): Likewise. (pthread_once): Likewise. * ptfork.c (pthread_atfork): Likewise. * specific.c (pthread_key_create): Likewise. (pthread_setspecific): Likewise. (pthread_getspecific): Likewise. --- linuxthreads/specific.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linuxthreads/specific.c') diff --git a/linuxthreads/specific.c b/linuxthreads/specific.c index 2df477a92c..a86b1a0cec 100644 --- a/linuxthreads/specific.c +++ b/linuxthreads/specific.c @@ -56,7 +56,7 @@ int __pthread_key_create(pthread_key_t * key, destr_function destr) pthread_mutex_unlock(&pthread_keys_mutex); return EAGAIN; } -weak_alias (__pthread_key_create, pthread_key_create) +strong_alias (__pthread_key_create, pthread_key_create) /* Delete a key */ @@ -108,7 +108,7 @@ int __pthread_setspecific(pthread_key_t key, const void * pointer) THREAD_GETMEM_NC(self, p_specific[idx1st])[idx2nd] = (void *) pointer; return 0; } -weak_alias (__pthread_setspecific, pthread_setspecific) +strong_alias (__pthread_setspecific, pthread_setspecific) /* Get the value of a key */ @@ -126,7 +126,7 @@ void * __pthread_getspecific(pthread_key_t key) return NULL; return THREAD_GETMEM_NC(self, p_specific[idx1st])[idx2nd]; } -weak_alias (__pthread_getspecific, pthread_getspecific) +strong_alias (__pthread_getspecific, pthread_getspecific) /* Call the destruction routines on all keys */ -- cgit v1.2.3-70-g09d2