diff options
author | green <green@FreeBSD.org> | 2001-02-23 06:26:22 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2001-02-23 06:26:22 +0000 |
commit | ea0fd4a1a4d638400b1fbb973f7e08f87aad1c5d (patch) | |
tree | c4c09e6a9791a6ca6f0298ca5006dce684247a8d /lib/libc/stdio/_flock_stub.c | |
parent | 2b7de3529ca70b7e4a27431edb43ea93b2118123 (diff) | |
download | FreeBSD-src-ea0fd4a1a4d638400b1fbb973f7e08f87aad1c5d.zip FreeBSD-src-ea0fd4a1a4d638400b1fbb973f7e08f87aad1c5d.tar.gz |
Use the right names to call pthread_mutex_{,un}lock so that things
work in both the libc only and libc/libc_r case.
Diffstat (limited to 'lib/libc/stdio/_flock_stub.c')
-rw-r--r-- | lib/libc/stdio/_flock_stub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/_flock_stub.c b/lib/libc/stdio/_flock_stub.c index a947398..0d34e57 100644 --- a/lib/libc/stdio/_flock_stub.c +++ b/lib/libc/stdio/_flock_stub.c @@ -93,7 +93,7 @@ init_lock(FILE *fp) p->fl_mutex = PTHREAD_MUTEX_INITIALIZER; p->fl_owner = NULL; p->fl_count = 0; - if (pthread_mutex_lock(&init_lock_mutex) != 0) { + if (_pthread_mutex_lock(&init_lock_mutex) != 0) { free(p); return (-1); } @@ -102,7 +102,7 @@ init_lock(FILE *fp) return (0); } fp->_lock = p; - pthread_mutex_unlock(&init_lock_mutex); + _pthread_mutex_unlock(&init_lock_mutex); ret = 0; } return (ret); |