diff options
author | 2013-03-24 19:55:45 +0000 | |
---|---|---|
committer | 2013-03-24 19:55:45 +0000 | |
commit | 4d3846f5cd38be476567c1aa8a6a4871518df7ba (patch) | |
tree | 3f2e5aa163d0ad9b3feb6e8f8d4e146b7eb193af /lib/libpthread/include/semaphore.h | |
parent | sync (diff) | |
download | wireguard-openbsd-4d3846f5cd38be476567c1aa8a6a4871518df7ba.tar.xz wireguard-openbsd-4d3846f5cd38be476567c1aa8a6a4871518df7ba.zip |
SEM_VALUE_MAX belongs in <limits.h> (via sys/syslimits.h)
struct sem --> struct __sem (doesn't belong in public namespace)
Zap pointless _KERNEL tests
ok deraadt@
Diffstat (limited to 'lib/libpthread/include/semaphore.h')
-rw-r--r-- | lib/libpthread/include/semaphore.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/libpthread/include/semaphore.h b/lib/libpthread/include/semaphore.h index b706635b94c..a93b8d4403f 100644 --- a/lib/libpthread/include/semaphore.h +++ b/lib/libpthread/include/semaphore.h @@ -1,4 +1,4 @@ -/* $OpenBSD: semaphore.h,v 1.7 2013/03/24 17:47:49 deraadt Exp $ */ +/* $OpenBSD: semaphore.h,v 1.8 2013/03/24 19:55:45 guenther Exp $ */ /* semaphore.h: POSIX 1003.1b semaphores */ @@ -39,17 +39,12 @@ #ifndef _SEMAPHORE_H_ #define _SEMAPHORE_H_ -#include <sys/limits.h> - /* Opaque type definition. */ -struct sem; -typedef struct sem *sem_t; +struct __sem; +typedef struct __sem *sem_t; struct timespec; #define SEM_FAILED ((sem_t *)0) -#define SEM_VALUE_MAX UINT_MAX - -#ifndef _KERNEL __BEGIN_DECLS int sem_init(sem_t *, int, unsigned int); @@ -64,6 +59,4 @@ int sem_post(sem_t *); int sem_getvalue(sem_t * __restrict, int * __restrict); __END_DECLS -#endif /* _KERNEL */ - #endif /* _SEMAPHORE_H_ */ |