summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thread_mutex.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_mutex.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_mutex.c')
-rw-r--r--lib/libpthread/thread/thread_mutex.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/lib/libpthread/thread/thread_mutex.c b/lib/libpthread/thread/thread_mutex.c
deleted file mode 100644
index 979a2e2e3fc..00000000000
--- a/lib/libpthread/thread/thread_mutex.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* $OpenBSD: thread_mutex.c,v 1.1 2007/06/05 18:11:48 kurt Exp $ */
-
-/*
- * Copyright (c) 2007 Kurt Miller <kurt@openbsd.org>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <sys/types.h>
-#include "thread_private.h"
-#include "pthread.h"
-#include "pthread_private.h"
-
-void
-_thread_mutex_lock(void **mutex)
-{
- pthread_mutex_t *pmutex = (pthread_mutex_t *)mutex;
-
- if (pthread_mutex_lock(pmutex) != 0)
- PANIC("mutex lock failure");
-}
-
-void
-_thread_mutex_unlock(void **mutex)
-{
- pthread_mutex_t *pmutex = (pthread_mutex_t *)mutex;
-
- if (pthread_mutex_unlock(pmutex) != 0)
- PANIC("mutex unlock failure");
-}
-
-void
-_thread_mutex_destroy(void **mutex)
-{
- pthread_mutex_t *pmutex = (pthread_mutex_t *)mutex;
-
- if (pthread_mutex_destroy(pmutex) != 0)
- PANIC("mutex destroy failure");
-}