summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thread_malloc_lock.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-09-01 00:32:23 +0000
committerguenther <guenther@openbsd.org>2012-09-01 00:32:23 +0000
commitcde6fc201d55f174c423caf7560c454b29da406e (patch)
tree3c8a6d2fd05c6c6d8d34297c0d9d94bea91bbc5b /lib/libpthread/thread/thread_malloc_lock.c
parentmodload needs to invoke ld with -nopie now on ELF platforms (diff)
downloadwireguard-openbsd-cde6fc201d55f174c423caf7560c454b29da406e.tar.xz
wireguard-openbsd-cde6fc201d55f174c423caf7560c454b29da406e.zip
So passes uthreads
Like autumn leaves on water don't fear the tedu@
Diffstat (limited to 'lib/libpthread/thread/thread_malloc_lock.c')
-rw-r--r--lib/libpthread/thread/thread_malloc_lock.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/lib/libpthread/thread/thread_malloc_lock.c b/lib/libpthread/thread/thread_malloc_lock.c
deleted file mode 100644
index 6c2057b708e..00000000000
--- a/lib/libpthread/thread/thread_malloc_lock.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* $OpenBSD: thread_malloc_lock.c,v 1.7 2008/06/13 21:18:43 otto Exp $ */
-/* Public Domain <marc@snafu.org> */
-
-#include <pthread.h>
-#include "pthread_private.h"
-
-static spinlock_t malloc_lock = _SPINLOCK_INITIALIZER;
-static spinlock_t atexit_lock = _SPINLOCK_INITIALIZER;
-static spinlock_t arc4_lock = _SPINLOCK_INITIALIZER;
-
-void
-_thread_malloc_lock()
-{
- _SPINLOCK(&malloc_lock);
-}
-
-void
-_thread_malloc_unlock()
-{
- _SPINUNLOCK(&malloc_lock);
-}
-
-void
-_thread_atexit_lock()
-{
- _SPINLOCK(&atexit_lock);
-}
-
-void
-_thread_atexit_unlock()
-{
- _SPINUNLOCK(&atexit_lock);
-}
-
-void
-_thread_arc4_lock()
-{
- _SPINLOCK(&arc4_lock);
-}
-
-void
-_thread_arc4_unlock()
-{
- _SPINUNLOCK(&arc4_lock);
-}