From bf4f39849b4c1cea34c6516714935002bcb7297c Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 15 Dec 1995 04:36:01 +0000 Subject: [PATCH] Add the direct sysv shm/sem/msg system calls, in the same way as NetBSD. This costs very little, we gain prototypes for the calls from the linux emulator, and this is one less thing in the way of NetBSD binary support. --- sys/kern/syscalls.master | 45 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 3aee9b8c31bc..8c1b020e4c56 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ - $Id: syscalls.master,v 1.18 1995/10/07 23:56:20 swallace Exp $ + $Id: syscalls.master,v 1.19 1995/11/12 04:24:53 bde Exp $ ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 ; ; System call name/number master file. @@ -371,3 +371,46 @@ 217 NODEF NOHIDE lkmnosys lkmnosys nosys_args int 218 NODEF NOHIDE lkmnosys lkmnosys nosys_args int 219 NODEF NOHIDE lkmnosys lkmnosys nosys_args int + +; +; The following were originally used in NetBSD. +; +#ifdef SYSVSEM +220 STD BSD { int __semctl(int semid, int semnum, int cmd, \ + union semun *arg); } +221 STD BSD { int semget(key_t key, int nsems, int semflg); } +222 STD BSD { int semop(int semid, struct sembuf *sops, \ + u_int nsops); } +223 STD BSD { int semconfig(int flag); } +#else +220 UNIMPL BSD semctl +221 UNIMPL BSD semget +222 UNIMPL BSD semop +223 UNIMPL BSD semconfig +#endif +#ifdef SYSVMSG +224 STD BSD { int msgctl(int msqid, int cmd, \ + struct msqid_ds *buf); } +225 STD BSD { int msgget(key_t key, int msgflg); } +226 STD BSD { int msgsnd(int msqid, void *msgp, size_t msgsz, \ + int msgflg); } +227 STD BSD { int msgrcv(int msqid, void *msgp, size_t msgsz, \ + long msgtyp, int msgflg); } +#else +224 UNIMPL BSD msgctl +225 UNIMPL BSD msgget +226 UNIMPL BSD msgsnd +227 UNIMPL BSD msgrcv +#endif +#ifdef SYSVSHM +228 STD BSD { int shmat(int shmid, void *shmaddr, int shmflg); } +229 STD BSD { int shmctl(int shmid, int cmd, \ + struct shmid_ds *buf); } +230 STD BSD { int shmdt(void *shmaddr); } +231 STD BSD { int shmget(key_t key, int size, int shmflg); } +#else +228 UNIMPL BSD shmat +229 UNIMPL BSD shmctl +230 UNIMPL BSD shmdt +231 UNIMPL BSD shmget +#endif