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.
This commit is contained in:
Peter Wemm 1995-12-15 04:36:01 +00:00
parent 21503ddf4d
commit bf4f39849b
1 changed files with 44 additions and 1 deletions

View File

@ -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