summaryrefslogtreecommitdiffstats
path: root/lib/librthread/pthread.h
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2017-09-05 02:40:54 +0000
committerguenther <guenther@openbsd.org>2017-09-05 02:40:54 +0000
commita5511fa9f431600dbd6dc2b46fc4e6b73e7d239c (patch)
treebf9e27f29ab35e6599d4c1362a9902d7e7bfdc74 /lib/librthread/pthread.h
parentSerialize access to IP reassembly queue with a mutex. This lets (diff)
downloadwireguard-openbsd-a5511fa9f431600dbd6dc2b46fc4e6b73e7d239c.tar.xz
wireguard-openbsd-a5511fa9f431600dbd6dc2b46fc4e6b73e7d239c.zip
Move mutex, condvar, and thread-specific data routes, pthread_once, and
pthread_exit from libpthread to libc, along with low-level bits to support them. Major bump to both libc and libpthread. Requested by libressl team. Ports testing by naddy@ ok kettenis@
Diffstat (limited to 'lib/librthread/pthread.h')
-rw-r--r--lib/librthread/pthread.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/lib/librthread/pthread.h b/lib/librthread/pthread.h
index cc656fb8440..d6dba9a485f 100644
--- a/lib/librthread/pthread.h
+++ b/lib/librthread/pthread.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pthread.h,v 1.3 2016/04/15 21:06:23 guenther Exp $ */
+/* $OpenBSD: pthread.h,v 1.4 2017/09/05 02:40:54 guenther Exp $ */
/*
* Copyright (c) 2016 Philip Guenther <guenther@openbsd.org>
*
@@ -53,36 +53,17 @@ PROTO_STD_DEPRECATED(pthread_barrierattr_setpshared);
PROTO_STD_DEPRECATED(pthread_cancel);
PROTO_STD_DEPRECATED(pthread_cleanup_pop);
PROTO_STD_DEPRECATED(pthread_cleanup_push);
-PROTO_NORMAL(pthread_cond_broadcast);
-PROTO_NORMAL(pthread_cond_destroy);
-PROTO_NORMAL(pthread_cond_init);
-PROTO_NORMAL(pthread_cond_signal);
-PROTO_STD_DEPRECATED(pthread_cond_timedwait);
-PROTO_NORMAL(pthread_cond_wait);
-PROTO_STD_DEPRECATED(pthread_condattr_destroy);
PROTO_STD_DEPRECATED(pthread_condattr_getclock);
-PROTO_STD_DEPRECATED(pthread_condattr_init);
PROTO_STD_DEPRECATED(pthread_condattr_setclock);
PROTO_STD_DEPRECATED(pthread_create);
PROTO_STD_DEPRECATED(pthread_detach);
-PROTO_STD_DEPRECATED(pthread_equal);
-PROTO_NORMAL(pthread_exit);
PROTO_STD_DEPRECATED(pthread_getconcurrency);
PROTO_STD_DEPRECATED(pthread_getcpuclockid);
PROTO_STD_DEPRECATED(pthread_getschedparam);
-PROTO_NORMAL(pthread_getspecific);
PROTO_STD_DEPRECATED(pthread_join);
-PROTO_NORMAL(pthread_key_create);
-PROTO_STD_DEPRECATED(pthread_key_delete);
PROTO_STD_DEPRECATED(pthread_kill);
-PROTO_NORMAL(pthread_mutex_destroy);
PROTO_STD_DEPRECATED(pthread_mutex_getprioceiling);
-PROTO_NORMAL(pthread_mutex_init);
-PROTO_NORMAL(pthread_mutex_lock);
PROTO_STD_DEPRECATED(pthread_mutex_setprioceiling);
-PROTO_STD_DEPRECATED(pthread_mutex_timedlock);
-PROTO_STD_DEPRECATED(pthread_mutex_trylock);
-PROTO_NORMAL(pthread_mutex_unlock);
PROTO_STD_DEPRECATED(pthread_mutexattr_destroy);
PROTO_STD_DEPRECATED(pthread_mutexattr_getprioceiling);
PROTO_STD_DEPRECATED(pthread_mutexattr_getprotocol);
@@ -91,7 +72,6 @@ PROTO_STD_DEPRECATED(pthread_mutexattr_init);
PROTO_STD_DEPRECATED(pthread_mutexattr_setprioceiling);
PROTO_STD_DEPRECATED(pthread_mutexattr_setprotocol);
PROTO_STD_DEPRECATED(pthread_mutexattr_settype);
-PROTO_STD_DEPRECATED(pthread_once);
PROTO_STD_DEPRECATED(pthread_rwlock_destroy);
PROTO_NORMAL(pthread_rwlock_init);
PROTO_STD_DEPRECATED(pthread_rwlock_rdlock);
@@ -105,12 +85,10 @@ PROTO_STD_DEPRECATED(pthread_rwlockattr_destroy);
PROTO_STD_DEPRECATED(pthread_rwlockattr_getpshared);
PROTO_STD_DEPRECATED(pthread_rwlockattr_init);
PROTO_STD_DEPRECATED(pthread_rwlockattr_setpshared);
-PROTO_NORMAL(pthread_self);
PROTO_NORMAL(pthread_setcancelstate);
PROTO_STD_DEPRECATED(pthread_setcanceltype);
PROTO_STD_DEPRECATED(pthread_setconcurrency);
PROTO_STD_DEPRECATED(pthread_setschedparam);
-PROTO_NORMAL(pthread_setspecific);
PROTO_STD_DEPRECATED(pthread_spin_destroy);
PROTO_STD_DEPRECATED(pthread_spin_init);
PROTO_STD_DEPRECATED(pthread_spin_lock);