diff options
author | 2002-11-05 22:19:55 +0000 | |
---|---|---|
committer | 2002-11-05 22:19:55 +0000 | |
commit | a04bf6e3c68b13ba327bbea611ce4eb0077d850c (patch) | |
tree | 1f337008ce2905978f12317a8d4fd0dfc618fcd8 /lib/libc/thread/unithread_malloc_lock.c | |
parent | Updated from ftp.internic.net (diff) | |
download | wireguard-openbsd-a04bf6e3c68b13ba327bbea611ce4eb0077d850c.tar.xz wireguard-openbsd-a04bf6e3c68b13ba327bbea611ce4eb0077d850c.zip |
thread safe libc -- 2nd try. OK miod@, millert@
Thanks to miod@ for m68k and vax fixes
Diffstat (limited to 'lib/libc/thread/unithread_malloc_lock.c')
-rw-r--r-- | lib/libc/thread/unithread_malloc_lock.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/libc/thread/unithread_malloc_lock.c b/lib/libc/thread/unithread_malloc_lock.c index 1b33b29a495..74855be7821 100644 --- a/lib/libc/thread/unithread_malloc_lock.c +++ b/lib/libc/thread/unithread_malloc_lock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: unithread_malloc_lock.c,v 1.3 2002/11/03 23:58:39 marc Exp $ */ +/* $OpenBSD: unithread_malloc_lock.c,v 1.4 2002/11/05 22:19:55 marc Exp $ */ #include <sys/cdefs.h> #include <pthread.h> @@ -6,16 +6,26 @@ WEAK_PROTOTYPE(_thread_malloc_lock); WEAK_PROTOTYPE(_thread_malloc_unlock); +WEAK_PROTOTYPE(_thread_malloc_init); WEAK_ALIAS(_thread_malloc_lock); WEAK_ALIAS(_thread_malloc_unlock); +WEAK_ALIAS(_thread_malloc_init); void -WEAK_NAME(_thread_malloc_lock)() +WEAK_NAME(_thread_malloc_lock)(void) { + return; } void -WEAK_NAME(_thread_malloc_unlock)() +WEAK_NAME(_thread_malloc_unlock)(void) { + return; +} + +void +WEAK_NAME(_thread_malloc_init)(void) +{ + return; } |