diff options
author | dfr <dfr@FreeBSD.org> | 1994-09-13 14:47:38 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1994-09-13 14:47:38 +0000 |
commit | 580fe46632ff236a0f268c29705d04d44ad2f89a (patch) | |
tree | 0b43a166c9d31a9a5c55d5efd7085507563a3825 /sys/conf | |
parent | a7c9d6c8b52a067267445732a70349e616440364 (diff) | |
download | FreeBSD-src-580fe46632ff236a0f268c29705d04d44ad2f89a.zip FreeBSD-src-580fe46632ff236a0f268c29705d04d44ad2f89a.tar.gz |
Added SYSV ipcs.
Obtained from: NetBSD and FreeBSD-1.1.5
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/files | 5 | ||||
-rw-r--r-- | sys/conf/param.c | 45 |
2 files changed, 49 insertions, 1 deletions
diff --git a/sys/conf/files b/sys/conf/files index 216785e..bc9d1ae 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -68,6 +68,11 @@ kern/subr_xxx.c standard kern/sys_generic.c standard kern/sys_process.c standard kern/sys_socket.c standard +kern/sysv_ipc.c optional sysvshm +kern/sysv_ipc.c optional sysvmsg +kern/sysv_ipc.c optional sysvsem +kern/sysv_msg.c optional sysvmsg +kern/sysv_sem.c optional sysvsem kern/sysv_shm.c optional sysvshm kern/tty.c standard kern/tty_compat.c standard diff --git a/sys/conf/param.c b/sys/conf/param.c index 2fdecf0..f714cab 100644 --- a/sys/conf/param.c +++ b/sys/conf/param.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)param.c 8.2 (Berkeley) 1/21/94 - * $Id$ + * $Id: param.c,v 1.3 1994/08/02 07:38:30 davidg Exp $ */ #include <sys/param.h> @@ -56,6 +56,12 @@ #include <machine/vmparam.h> #include <sys/shm.h> #endif +#ifdef SYSVSEM +#include "sys/sem.h" +#endif +#ifdef SYSVMSG +#include "sys/msg.h" +#endif /* * System parameter formulae. @@ -106,6 +112,43 @@ struct shminfo shminfo = { #endif /* + * Values in support of System V compatible semaphores. + */ + +#ifdef SYSVSEM + +struct seminfo seminfo = { + SEMMAP, /* # of entries in semaphore map */ + SEMMNI, /* # of semaphore identifiers */ + SEMMNS, /* # of semaphores in system */ + SEMMNU, /* # of undo structures in system */ + SEMMSL, /* max # of semaphores per id */ + SEMOPM, /* max # of operations per semop call */ + SEMUME, /* max # of undo entries per process */ + SEMUSZ, /* size in bytes of undo structure */ + SEMVMX, /* semaphore maximum value */ + SEMAEM /* adjust on exit max value */ +}; +#endif + +/* + * Values in support of System V compatible messages. + */ + +#ifdef SYSVMSG + +struct msginfo msginfo = { + MSGMAX, /* max chars in a message */ + MSGMNI, /* # of message queue identifiers */ + MSGMNB, /* max chars in a queue */ + MSGTQL, /* max messages in system */ + MSGSSZ, /* size of a message segment */ + /* (must be small power of 2 greater than 4) */ + MSGSEG /* number of message segments */ +}; +#endif + +/* * These are initialized at bootstrap time * to values dependent on memory size */ |