diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-11 06:13:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-11 06:13:51 +0000 |
commit | b8d1d50c3fffcefd6f68e32e7c96f4059ee6990e (patch) | |
tree | ff1928c98ae4361b1438095073f28f62f8bd3c02 /sys/kern | |
parent | 0857b2aee21b3f88f3ce3f09690f03168612749f (diff) |
const a few more calls
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/syscalls.master | 8 | ||||
-rw-r--r-- | sys/kern/sysv_msg.c | 4 | ||||
-rw-r--r-- | sys/kern/sysv_shm.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 604f4d650f7..493342b89d6 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ -; $OpenBSD: syscalls.master,v 1.24 1998/04/25 07:14:45 deraadt Exp $ +; $OpenBSD: syscalls.master,v 1.25 1998/05/11 06:13:45 deraadt Exp $ ; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -437,7 +437,7 @@ 224 STD { int sys_msgctl(int msqid, int cmd, \ struct msqid_ds *buf); } 225 STD { int sys_msgget(key_t key, int msgflg); } -226 STD { int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \ +226 STD { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \ int msgflg); } 227 STD { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \ long msgtyp, int msgflg); } @@ -448,11 +448,11 @@ 227 UNIMPL msgrcv #endif #ifdef SYSVSHM -228 STD { void *sys_shmat(int shmid, void *shmaddr, \ +228 STD { void *sys_shmat(int shmid, const void *shmaddr, \ int shmflg); } 229 STD { int sys_shmctl(int shmid, int cmd, \ struct shmid_ds *buf); } -230 STD { int sys_shmdt(void *shmaddr); } +230 STD { int sys_shmdt(const void *shmaddr); } 231 STD { int sys_shmget(key_t key, int size, int shmflg); } #else 228 UNIMPL shmat diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c index d68ca5f8685..20c3316bc63 100644 --- a/sys/kern/sysv_msg.c +++ b/sys/kern/sysv_msg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysv_msg.c,v 1.2 1996/03/03 17:20:05 niklas Exp $ */ +/* $OpenBSD: sysv_msg.c,v 1.3 1998/05/11 06:13:46 deraadt Exp $ */ /* $NetBSD: sysv_msg.c,v 1.19 1996/02/09 19:00:18 christos Exp $ */ /* @@ -365,7 +365,7 @@ sys_msgsnd(p, v, retval) { register struct sys_msgsnd_args /* { syscallarg(int) msqid; - syscallarg(void *) msgp; + syscallarg(const void *) msgp; syscallarg(size_t) msgsz; syscallarg(int) msgflg; } */ *uap = v; diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index aec72bdc87d..9ac0728b015 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysv_shm.c,v 1.6 1997/02/21 08:52:23 deraadt Exp $ */ +/* $OpenBSD: sysv_shm.c,v 1.7 1998/05/11 06:13:48 deraadt Exp $ */ /* $NetBSD: sysv_shm.c,v 1.37 1996/03/16 23:17:13 christos Exp $ */ /* @@ -172,7 +172,7 @@ sys_shmdt(p, v, retval) register_t *retval; { struct sys_shmdt_args /* { - syscallarg(void *) shmaddr; + syscallarg(const void *) shmaddr; } */ *uap = v; struct shmmap_state *shmmap_s; int i; @@ -197,7 +197,7 @@ sys_shmat(p, v, retval) { struct sys_shmat_args /* { syscallarg(int) shmid; - syscallarg(void *) shmaddr; + syscallarg(const void *) shmaddr; syscallarg(int) shmflg; } */ *uap = v; int error, i, flags; |