summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-12 08:40:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-12 08:40:40 +0000
commit8221fc3c8fd6eac851d9752566395b326d61b224 (patch)
treee294b49330df38e7079b6ea661097ca1339cbddc /sys/arch
parent434753af357b1a4e9acab115ff19fab317b2b5fc (diff)
+SYSVSEM/MSG support; netbsd pr#2825, hwr@pilhuhn.de
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/pmax/pmax/machdep.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/arch/pmax/pmax/machdep.c b/sys/arch/pmax/pmax/machdep.c
index e930352d1b1..d3c6b0fb2c7 100644
--- a/sys/arch/pmax/pmax/machdep.c
+++ b/sys/arch/pmax/pmax/machdep.c
@@ -66,6 +66,12 @@
#include <sys/sysctl.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
+#ifdef SYSVMSG
+#include <sys/msg.h>
+#endif
+#ifdef SYSVSEM
+#include <sys/sem.h>
+#endif
#ifdef SYSVSHM
#include <sys/shm.h>
#endif
@@ -719,6 +725,18 @@ mach_init(argc, argv, code, cv)
#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.