summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-04-02 19:56:54 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-04-02 19:56:54 +0000
commit4bd70a202ef4f88bc788d55769964a6928490376 (patch)
tree2f0aade3c8c54e06f43f27652bfa5ddb5167ac77 /lib/librthread/rthread.c
parenta55e1169da61fa81974081006c42e49a98442ad9 (diff)
Wrap <pthread.h> and <pthread_np.h> to eliminate PLT entries for internal
references. Use _thread_pagesize for the semaphore mmap size instead of calling getpagesize() each time. ok beck@
Diffstat (limited to 'lib/librthread/rthread.c')
-rw-r--r--lib/librthread/rthread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/librthread/rthread.c b/lib/librthread/rthread.c
index 1a70da97a0c..a622214d2fe 100644
--- a/lib/librthread/rthread.c
+++ b/lib/librthread/rthread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread.c,v 1.89 2016/04/02 19:00:51 guenther Exp $ */
+/* $OpenBSD: rthread.c,v 1.90 2016/04/02 19:56:53 guenther Exp $ */
/*
* Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -272,6 +272,7 @@ pthread_self(void)
return (TCB_THREAD());
}
+DEF_STD(pthread_self);
static void
_rthread_reaper(void)
@@ -338,6 +339,7 @@ pthread_exit(void *retval)
__threxit(&thread->tid);
for(;;);
}
+DEF_STD(pthread_exit);
int
pthread_join(pthread_t thread, void **retval)
@@ -539,6 +541,7 @@ pthread_setcancelstate(int state, int *oldstatep)
return (0);
}
+DEF_STD(pthread_setcancelstate);
int
pthread_setcanceltype(int type, int *oldtypep)