about summary refs log tree commit diff
path: root/sysdeps/mach/bits/libc-lock.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-03-31 22:04:32 +0000
committerUlrich Drepper <drepper@redhat.com>1998-03-31 22:04:32 +0000
commit3331899af3fcaf628e118686a4ebbf592dca9ec8 (patch)
tree6d0644b10811fec10cda69c38263174bf40ce66d /sysdeps/mach/bits/libc-lock.h
parent12bf4b4adea6fab952bf7b4e9bab173727b1a5b1 (diff)
downloadglibc-3331899af3fcaf628e118686a4ebbf592dca9ec8.tar.gz
glibc-3331899af3fcaf628e118686a4ebbf592dca9ec8.tar.xz
glibc-3331899af3fcaf628e118686a4ebbf592dca9ec8.zip
Update.
	* db2/compat.h: Allow EFTYPE being defined.
	* sysdeps/unix/bsd/bits/signum.h: Add definition for SIG_HOLD.
	* sysdeps/unix/bsd/ulimit.c: Include <ulimit.h>.
	* sysdeps/mach/hurd/bits/fcntl.h: Add O_LARGEFILE.
	* sysdeps/mach/bits/libc-lock.h: Fix typo.
	(__libc_once): Correctly unlock semaphore.
	* sysdeps/mach/hurd/dl-sysdep.c: Include <elf/ldsodefs.h>.
	* sysdeps/unix/bsd/getpt.c: Fix typo.
	Patches by UCHIYAMA Yasushi <uch@ddd.scei.sony.co.jp>.

1998-03-31  Ulrich Drepper  <drepper@cygnus.com>
Diffstat (limited to 'sysdeps/mach/bits/libc-lock.h')
-rw-r--r--sysdeps/mach/bits/libc-lock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/mach/bits/libc-lock.h b/sysdeps/mach/bits/libc-lock.h
index 17eeefcdb5..acee2bf405 100644
--- a/sysdeps/mach/bits/libc-lock.h
+++ b/sysdeps/mach/bits/libc-lock.h
@@ -1,5 +1,5 @@
 /* libc-internal interface for mutex locks.  Mach cthreads version.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -84,7 +84,7 @@ struct __libc_once
   };
 
 #define __libc_once_define(CLASS,NAME) \
-  CLASS struct __libc_once NAME = { MUTEX_INITIALZER, 0 }
+  CLASS struct __libc_once NAME = { MUTEX_INITIALIZER, 0 }
 
 
 /* Call handler iff the first call.  */
@@ -94,7 +94,7 @@ struct __libc_once
     if (!ONCE_CONTROL.done)						      \
       (INIT_FUNCTION) ();						      \
     ONCE_CONTROL.done = 1;						      \
-    __libc_lock_lock (ONCE_CONTROL.lock);				      \
+    __libc_lock_unlock (ONCE_CONTROL.lock);				      \
   } while (0)
 
 #ifdef _LIBC