summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2002-10-31 18:17:58 +0000
committerdeischen <deischen@FreeBSD.org>2002-10-31 18:17:58 +0000
commit8733b4b7262ed74e9893c334f7b329d05d566205 (patch)
tree01ed13c3104312004089868f44241bf38fc655c0 /lib/libc_r/uthread
parentc16ad036041c3dedc3a3556449e35f0b343b575b (diff)
downloadFreeBSD-src-8733b4b7262ed74e9893c334f7b329d05d566205.zip
FreeBSD-src-8733b4b7262ed74e9893c334f7b329d05d566205.tar.gz
Use the strong symbol'd version of pthread_mutex_init so we don't
accidentally call a stub or application provided version of the same routine. Submitted by: dfr
Diffstat (limited to 'lib/libc_r/uthread')
-rw-r--r--lib/libc_r/uthread/uthread_mutex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_mutex.c b/lib/libc_r/uthread/uthread_mutex.c
index 86e0b8b..7951815 100644
--- a/lib/libc_r/uthread/uthread_mutex.c
+++ b/lib/libc_r/uthread/uthread_mutex.c
@@ -266,7 +266,7 @@ init_static(pthread_mutex_t *mutex)
_SPINLOCK(&static_init_lock);
if (*mutex == NULL)
- ret = pthread_mutex_init(mutex, NULL);
+ ret = _pthread_mutex_init(mutex, NULL);
else
ret = 0;
@@ -283,7 +283,7 @@ init_static_private(pthread_mutex_t *mutex)
_SPINLOCK(&static_init_lock);
if (*mutex == NULL)
- ret = pthread_mutex_init(mutex, &static_mattr);
+ ret = _pthread_mutex_init(mutex, &static_mattr);
else
ret = 0;
OpenPOWER on IntegriCloud