summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/include
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2010-04-12 01:54:23 +0000
committertedu <tedu@openbsd.org>2010-04-12 01:54:23 +0000
commit516e68932a893d2baa31955a960a5affd7ca4bfe (patch)
treed55e11b00e0f4b39326687d5194621908b146dd6 /lib/libpthread/include
parentremove pkcs5 implementation here and use the one from bioctl. no libcrypto (diff)
downloadwireguard-openbsd-516e68932a893d2baa31955a960a5affd7ca4bfe.tar.xz
wireguard-openbsd-516e68932a893d2baa31955a960a5affd7ca4bfe.zip
Add support for pthread_rwlock_timed locks.
from brad. ok kurt, who's too busy to commit
Diffstat (limited to 'lib/libpthread/include')
-rw-r--r--lib/libpthread/include/pthread.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libpthread/include/pthread.h b/lib/libpthread/include/pthread.h
index e572fae8f73..42367b1bfaf 100644
--- a/lib/libpthread/include/pthread.h
+++ b/lib/libpthread/include/pthread.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pthread.h,v 1.29 2008/12/18 09:30:32 guenther Exp $ */
+/* $OpenBSD: pthread.h,v 1.30 2010/04/12 01:54:23 tedu Exp $ */
/*
* Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu
@@ -250,6 +250,10 @@ int pthread_rwlock_destroy(pthread_rwlock_t *);
int pthread_rwlock_init(pthread_rwlock_t *,
const pthread_rwlockattr_t *);
int pthread_rwlock_rdlock(pthread_rwlock_t *);
+int pthread_rwlock_timedrdlock(pthread_rwlock_t *,
+ const struct timespec *);
+int pthread_rwlock_timedwrlock(pthread_rwlock_t *,
+ const struct timespec *);
int pthread_rwlock_tryrdlock(pthread_rwlock_t *);
int pthread_rwlock_trywrlock(pthread_rwlock_t *);
int pthread_rwlock_unlock(pthread_rwlock_t *);