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/mutex.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'linuxthreads/mutex.c') diff --git a/linuxthreads/mutex.c b/linuxthreads/mutex.c index 7e5271b5ea..cd7ace2617 100644 --- a/linuxthreads/mutex.c +++ b/linuxthreads/mutex.c @@ -33,14 +33,14 @@ int __pthread_mutex_init(pthread_mutex_t * mutex, mutex->__m_owner = NULL; return 0; } -weak_alias (__pthread_mutex_init, pthread_mutex_init) +strong_alias (__pthread_mutex_init, pthread_mutex_init) int __pthread_mutex_destroy(pthread_mutex_t * mutex) { if (mutex->__m_lock.__status != 0) return EBUSY; return 0; } -weak_alias (__pthread_mutex_destroy, pthread_mutex_destroy) +strong_alias (__pthread_mutex_destroy, pthread_mutex_destroy) int __pthread_mutex_trylock(pthread_mutex_t * mutex) { @@ -73,7 +73,7 @@ int __pthread_mutex_trylock(pthread_mutex_t * mutex) return EINVAL; } } -weak_alias (__pthread_mutex_trylock, pthread_mutex_trylock) +strong_alias (__pthread_mutex_trylock, pthread_mutex_trylock) int __pthread_mutex_lock(pthread_mutex_t * mutex) { @@ -103,7 +103,7 @@ int __pthread_mutex_lock(pthread_mutex_t * mutex) return EINVAL; } } -weak_alias (__pthread_mutex_lock, pthread_mutex_lock) +strong_alias (__pthread_mutex_lock, pthread_mutex_lock) int __pthread_mutex_unlock(pthread_mutex_t * mutex) { @@ -129,20 +129,20 @@ int __pthread_mutex_unlock(pthread_mutex_t * mutex) return EINVAL; } } -weak_alias (__pthread_mutex_unlock, pthread_mutex_unlock) +strong_alias (__pthread_mutex_unlock, pthread_mutex_unlock) int __pthread_mutexattr_init(pthread_mutexattr_t *attr) { attr->__mutexkind = PTHREAD_MUTEX_FAST_NP; return 0; } -weak_alias (__pthread_mutexattr_init, pthread_mutexattr_init) +strong_alias (__pthread_mutexattr_init, pthread_mutexattr_init) int __pthread_mutexattr_destroy(pthread_mutexattr_t *attr) { return 0; } -weak_alias (__pthread_mutexattr_destroy, pthread_mutexattr_destroy) +strong_alias (__pthread_mutexattr_destroy, pthread_mutexattr_destroy) int __pthread_mutexattr_settype(pthread_mutexattr_t *attr, int kind) { @@ -196,4 +196,4 @@ int __pthread_once(pthread_once_t * once_control, void (*init_routine)(void)) pthread_mutex_unlock(&once_masterlock); return 0; } -weak_alias (__pthread_once, pthread_once) +strong_alias (__pthread_once, pthread_once) -- cgit v1.2.1