diff options
Diffstat (limited to 'lib/libc_r/thread')
-rw-r--r-- | lib/libc_r/thread/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libc_r/thread/thread_malloc_lock.c | 10 | ||||
-rw-r--r-- | lib/libc_r/thread/thread_storage.c | 6 |
3 files changed, 15 insertions, 5 deletions
diff --git a/lib/libc_r/thread/Makefile.inc b/lib/libc_r/thread/Makefile.inc index f98a910165c..7d9e4a17fa7 100644 --- a/lib/libc_r/thread/Makefile.inc +++ b/lib/libc_r/thread/Makefile.inc @@ -1,5 +1,5 @@ -# $OpenBSD: Makefile.inc,v 1.3 2002/11/03 23:58:39 marc Exp $ +# $OpenBSD: Makefile.inc,v 1.4 2002/11/05 22:19:55 marc Exp $ .PATH: ${LIBC_RSRCDIR}/thread -SRCS+= thread_storage.c +SRCS+= thread_storage.c thread_malloc_lock.c diff --git a/lib/libc_r/thread/thread_malloc_lock.c b/lib/libc_r/thread/thread_malloc_lock.c index 68f899983cb..8755b1dad27 100644 --- a/lib/libc_r/thread/thread_malloc_lock.c +++ b/lib/libc_r/thread/thread_malloc_lock.c @@ -1,7 +1,8 @@ +/* $OpenBSD: thread_malloc_lock.c,v 1.4 2002/11/05 22:19:55 marc Exp $ */ +/* Public Domain <marc@snafu.org> */ + #include <pthread.h> #include "pthread_private.h" -#include "thread_private.h" -#include "spinlock.h" static spinlock_t malloc_lock = _SPINLOCK_INITIALIZER; @@ -16,3 +17,8 @@ _thread_malloc_unlock() { _SPINUNLOCK(&malloc_lock); } + +void +_thread_malloc_init() +{ +} diff --git a/lib/libc_r/thread/thread_storage.c b/lib/libc_r/thread/thread_storage.c index fa8357c85ec..61609f9c277 100644 --- a/lib/libc_r/thread/thread_storage.c +++ b/lib/libc_r/thread/thread_storage.c @@ -1,5 +1,9 @@ +/* $OpenBSD: thread_storage.c,v 1.6 2002/11/05 22:19:55 marc Exp $ */ +/* Public Domain */ -/* libpthread's stronger functions */ +/* + * libpthread's stronger functions + */ #include <stdlib.h> #include <pthread.h> |