diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-20 07:37:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-20 07:37:25 +0000 |
commit | 724994c8c9029684bb33c01eaaa76a2461b1c3e5 (patch) | |
tree | 38f26566f846fda413ff31c1fe5954b85a76bf9c /sys | |
parent | e0107850bdb2bbd50819542842d7097e863ae468 (diff) |
SEM_R and SEM_A userland accessable as required; michaels@inet.no
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/sem.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sys/sys/sem.h b/sys/sys/sem.h index 6fca814e76d..45d53039830 100644 --- a/sys/sys/sem.h +++ b/sys/sys/sem.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sem.h,v 1.6 1998/06/11 19:21:29 deraadt Exp $ */ +/* $OpenBSD: sem.h,v 1.7 1998/07/20 07:37:22 deraadt Exp $ */ /* $NetBSD: sem.h,v 1.8 1996/02/09 18:25:29 christos Exp $ */ /* @@ -79,12 +79,6 @@ union semun { #define SETVAL 8 /* Set the value of semval to arg.val {ALTER} */ #define SETALL 9 /* Set semvals from arg.array {ALTER} */ -#ifdef _KERNEL -/* - * Kernel implementation stuff - */ -#define SEMVMX 32767 /* semaphore maximum value */ -#define SEMAEM 16384 /* adjust on exit max value */ /* * Permissions @@ -92,6 +86,14 @@ union semun { #define SEM_A 0200 /* alter permission */ #define SEM_R 0400 /* read permission */ + +#ifdef _KERNEL +/* + * Kernel implementation stuff + */ +#define SEMVMX 32767 /* semaphore maximum value */ +#define SEMAEM 16384 /* adjust on exit max value */ + /* * Undo structure (one per process) */ |