System V IPC code from Danny Boulet, chewed on a bit by the NetBSD group

and then some more by Jeffrey Hsu (who provided this port for FreeBSD).
This commit is contained in:
David Greenman 1994-01-21 09:56:05 +00:00
parent a728f398c2
commit 2ae37484c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=990
5 changed files with 54 additions and 5 deletions

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.27 1994/01/20 17:49:57 davidg Exp $
* $Id: machdep.c,v 1.28 1994/01/20 23:17:39 davidg Exp $
*/
#include "npx.h"
@ -64,6 +64,14 @@
#include "sys/shm.h"
#endif
#ifdef SYSVMSG
#include "msg.h"
#endif
#ifdef SYSVSEM
#include "sem.h"
#endif
#include "vm/vm.h"
#include "vm/vm_kern.h"
#include "vm/vm_page.h"
@ -186,6 +194,18 @@ again:
valloc(callout, struct callout, ncallout);
#ifdef SYSVSHM
valloc(shmsegs, struct shmid_ds, shminfo.shmmni);
#endif
#ifdef SYSVSEM
valloc(sema, struct semid_ds, seminfo.semmni);
valloc(sem, struct sem, seminfo.semmns);
/* This is pretty disgusting! */
valloc(semu, int, (seminfo.semmnu * seminfo.semusz) / sizeof(int));
#endif
#ifdef SYSVMSG
valloc(msgpool, char, msginfo.msgmax);
valloc(msgmaps, struct msgmap, msginfo.msgseg);
valloc(msghdrs, struct msg, msginfo.msgtql);
valloc(msqids, struct msqid_ds, msginfo.msgmni);
#endif
/*
* Determine how many buffers to allocate.

View File

@ -4,7 +4,7 @@
#
# This kernel is NOT MEANT to be runnable!
#
# $Id: LINT,v 1.40 1994/01/16 12:01:32 ats Exp $
# $Id: LINT,v 1.41 1994/01/17 05:45:26 rgrimes Exp $
#
machine "i386"
@ -84,8 +84,11 @@ pseudo-device sl 2
device st0
device st1
pseudo-device swappager
options SYSVIPC #define if have any SYSV mechanisms
options SYSVSHM
options "SHMMAXPGS=64" # 256Kb of sharable memory
options SYSVSEM
options SYSVMSG
#pseudo-device tb #tablet line discipline.
options TPIP # ISO TP class 4 over IP
#pseudo-device tun

View File

@ -4,7 +4,7 @@
#
# This kernel is NOT MEANT to be runnable!
#
# $Id: LINT,v 1.40 1994/01/16 12:01:32 ats Exp $
# $Id: LINT,v 1.41 1994/01/17 05:45:26 rgrimes Exp $
#
machine "i386"
@ -84,8 +84,11 @@ pseudo-device sl 2
device st0
device st1
pseudo-device swappager
options SYSVIPC #define if have any SYSV mechanisms
options SYSVSHM
options "SHMMAXPGS=64" # 256Kb of sharable memory
options SYSVSEM
options SYSVMSG
#pseudo-device tb #tablet line discipline.
options TPIP # ISO TP class 4 over IP
#pseudo-device tun

View File

@ -4,7 +4,7 @@
#
# This kernel is NOT MEANT to be runnable!
#
# $Id: LINT,v 1.40 1994/01/16 12:01:32 ats Exp $
# $Id: LINT,v 1.41 1994/01/17 05:45:26 rgrimes Exp $
#
machine "i386"
@ -84,8 +84,11 @@ pseudo-device sl 2
device st0
device st1
pseudo-device swappager
options SYSVIPC #define if have any SYSV mechanisms
options SYSVSHM
options "SHMMAXPGS=64" # 256Kb of sharable memory
options SYSVSEM
options SYSVMSG
#pseudo-device tb #tablet line discipline.
options TPIP # ISO TP class 4 over IP
#pseudo-device tun

View File

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.27 1994/01/20 17:49:57 davidg Exp $
* $Id: machdep.c,v 1.28 1994/01/20 23:17:39 davidg Exp $
*/
#include "npx.h"
@ -64,6 +64,14 @@
#include "sys/shm.h"
#endif
#ifdef SYSVMSG
#include "msg.h"
#endif
#ifdef SYSVSEM
#include "sem.h"
#endif
#include "vm/vm.h"
#include "vm/vm_kern.h"
#include "vm/vm_page.h"
@ -186,6 +194,18 @@ again:
valloc(callout, struct callout, ncallout);
#ifdef SYSVSHM
valloc(shmsegs, struct shmid_ds, shminfo.shmmni);
#endif
#ifdef SYSVSEM
valloc(sema, struct semid_ds, seminfo.semmni);
valloc(sem, struct sem, seminfo.semmns);
/* This is pretty disgusting! */
valloc(semu, int, (seminfo.semmnu * seminfo.semusz) / sizeof(int));
#endif
#ifdef SYSVMSG
valloc(msgpool, char, msginfo.msgmax);
valloc(msgmaps, struct msgmap, msginfo.msgseg);
valloc(msghdrs, struct msg, msginfo.msgtql);
valloc(msqids, struct msqid_ds, msginfo.msgmni);
#endif
/*
* Determine how many buffers to allocate.