summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_mutex.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2001-04-10 04:19:21 +0000
committerdeischen <deischen@FreeBSD.org>2001-04-10 04:19:21 +0000
commitdd46d4e05f2e301b4d9451bbfabfabbc788975c5 (patch)
treef253a6d0598ff480596963ca3fcf2b9320aefaee /lib/libkse/thread/thr_mutex.c
parent3c4f2f3db28798206129ecb0f94e4aa3fa0dd106 (diff)
downloadFreeBSD-src-dd46d4e05f2e301b4d9451bbfabfabbc788975c5.zip
FreeBSD-src-dd46d4e05f2e301b4d9451bbfabfabbc788975c5.tar.gz
To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions. Suggested by: bde
Diffstat (limited to 'lib/libkse/thread/thr_mutex.c')
-rw-r--r--lib/libkse/thread/thr_mutex.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libkse/thread/thr_mutex.c b/lib/libkse/thread/thr_mutex.c
index 27377f3..0f67b4b 100644
--- a/lib/libkse/thread/thr_mutex.c
+++ b/lib/libkse/thread/thr_mutex.c
@@ -79,13 +79,13 @@ static struct pthread_mutex_attr static_mutex_attr =
static pthread_mutexattr_t static_mattr = &static_mutex_attr;
/* Single underscore versions provided for libc internal usage: */
-#pragma weak pthread_mutex_trylock=__pthread_mutex_trylock
-#pragma weak pthread_mutex_lock=__pthread_mutex_lock
+__weak_reference(__pthread_mutex_trylock, pthread_mutex_trylock);
+__weak_reference(__pthread_mutex_lock, pthread_mutex_lock);
/* No difference between libc and application usage of these: */
-#pragma weak pthread_mutex_init=_pthread_mutex_init
-#pragma weak pthread_mutex_destroy=_pthread_mutex_destroy
-#pragma weak pthread_mutex_unlock=_pthread_mutex_unlock
+__weak_reference(_pthread_mutex_init, pthread_mutex_init);
+__weak_reference(_pthread_mutex_destroy, pthread_mutex_destroy);
+__weak_reference(_pthread_mutex_unlock, pthread_mutex_unlock);
/* Reinitialize a mutex to defaults. */
OpenPOWER on IntegriCloud