From 285e264ade22002eaddaafc4b84537cb1b8e8685 Mon Sep 17 00:00:00 2001 From: jasoni Date: Thu, 24 May 2001 06:00:10 +0000 Subject: style/cleanup (of function headers) --- sys/compat/linux/linux_ipc.c | 134 +++++++++++++++++++++---------------------- 1 file changed, 67 insertions(+), 67 deletions(-) (limited to 'sys/compat/linux/linux_ipc.c') diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c index 49d9e4516aa..cc2f3f87170 100644 --- a/sys/compat/linux/linux_ipc.c +++ b/sys/compat/linux/linux_ipc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_ipc.c,v 1.6 2001/03/13 08:19:41 csapuntz Exp $ */ +/* $OpenBSD: linux_ipc.c,v 1.7 2001/05/24 06:00:09 jasoni Exp $ */ /* $NetBSD: linux_ipc.c,v 1.10 1996/04/05 00:01:44 christos Exp $ */ /* @@ -70,38 +70,27 @@ */ #ifdef SYSVSEM -int linux_semop __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); -int linux_semget __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); -int linux_semctl __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); +int linux_semop __P((struct proc *, void *, register_t *)); +int linux_semget __P((struct proc *, void *, register_t *)); +int linux_semctl __P((struct proc *, void *, register_t *)); void bsd_to_linux_semid_ds __P((struct semid_ds *, struct linux_semid_ds *)); void linux_to_bsd_semid_ds __P((struct linux_semid_ds *, struct semid_ds *)); #endif #ifdef SYSVMSG -int linux_msgsnd __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); -int linux_msgrcv __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); -int linux_msgget __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); -int linux_msgctl __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); +int linux_msgsnd __P((struct proc *, void *, register_t *)); +int linux_msgrcv __P((struct proc *, void *, register_t *)); +int linux_msgget __P((struct proc *, void *, register_t *)); +int linux_msgctl __P((struct proc *, void *, register_t *)); void linux_to_bsd_msqid_ds __P((struct linux_msqid_ds *, struct msqid_ds *)); void bsd_to_linux_msqid_ds __P((struct msqid_ds *, struct linux_msqid_ds *)); #endif #ifdef SYSVSHM -int linux_shmat __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); -int linux_shmdt __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); -int linux_shmget __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); -int linux_shmctl __P((struct proc *, struct linux_sys_ipc_args *, - register_t *)); +int linux_shmat __P((struct proc *, void *, register_t *)); +int linux_shmdt __P((struct proc *, void *, register_t *)); +int linux_shmget __P((struct proc *, void *, register_t *)); +int linux_shmctl __P((struct proc *, void *, register_t *)); void linux_to_bsd_shmid_ds __P((struct linux_shmid_ds *, struct shmid_ds *)); void bsd_to_linux_shmid_ds __P((struct shmid_ds *, struct linux_shmid_ds *)); #endif @@ -231,17 +220,18 @@ linux_to_bsd_semid_ds(ls, bs) } int -linux_semop(p, uap, retval) +linux_semop(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sys_ipc_args /* { syscallarg(int) what; syscallarg(int) a1; syscallarg(int) a2; syscallarg(int) a3; syscallarg(caddr_t) ptr; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct sys_semop_args bsa; SCARG(&bsa, semid) = SCARG(uap, a1); @@ -252,17 +242,18 @@ linux_semop(p, uap, retval) } int -linux_semget(p, uap, retval) +linux_semget(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sys_ipc_args /* { syscallarg(int) what; syscallarg(int) a1; syscallarg(int) a2; syscallarg(int) a3; syscallarg(caddr_t) ptr; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct sys_semget_args bsa; SCARG(&bsa, key) = (key_t)SCARG(uap, a1); @@ -279,17 +270,18 @@ linux_semget(p, uap, retval) * structure. */ int -linux_semctl(p, uap, retval) +linux_semctl(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sys_ipc_args /* { syscallarg(int) what; syscallarg(int) a1; syscallarg(int) a2; syscallarg(int) a3; syscallarg(caddr_t) ptr; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; caddr_t sg, unptr, dsp, ldsp; int error, cmd; struct sys___semctl_args bsa; @@ -399,17 +391,18 @@ bsd_to_linux_msqid_ds(bmp, lmp) } int -linux_msgsnd(p, uap, retval) +linux_msgsnd(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sys_ipc_args /* { syscallarg(int) what; syscallarg(int) a1; syscallarg(int) a2; syscallarg(int) a3; syscallarg(caddr_t) ptr; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct sys_msgsnd_args bma; SCARG(&bma, msqid) = SCARG(uap, a1); @@ -421,17 +414,18 @@ linux_msgsnd(p, uap, retval) } int -linux_msgrcv(p, uap, retval) +linux_msgrcv(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sys_ipc_args /* { syscallarg(int) what; syscallarg(int) a1; syscallarg(int) a2; syscallarg(int) a3; syscallarg(caddr_t) ptr; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct sys_msgrcv_args bma; struct linux_msgrcv_msgarg kluge; int error; @@ -449,17 +443,18 @@ linux_msgrcv(p, uap, retval) } int -linux_msgget(p, uap, retval) +linux_msgget(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sys_ipc_args /* { syscallarg(int) what; syscallarg(int) a1; syscallarg(int) a2; syscallarg(int) a3; syscallarg(caddr_t) ptr; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct sys_msgget_args bma; SCARG(&bma, key) = (key_t)SCARG(uap, a1); @@ -469,17 +464,18 @@ linux_msgget(p, uap, retval) } int -linux_msgctl(p, uap, retval) +linux_msgctl(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sys_ipc_args /* { syscallarg(int) what; syscallarg(int) a1; syscallarg(int) a2; syscallarg(int) a3; syscallarg(caddr_t) ptr; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct sys_msgctl_args bma; caddr_t umsgptr, sg; struct linux_msqid_ds lm; @@ -523,17 +519,18 @@ linux_msgctl(p, uap, retval) * handled by libc, apparently. */ int -linux_shmat(p, uap, retval) +linux_shmat(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sys_ipc_args /* { syscallarg(int) what; syscallarg(int) a1; syscallarg(int) a2; syscallarg(int) a3; syscallarg(caddr_t) ptr; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct sys_shmat_args bsa; int error; @@ -557,17 +554,18 @@ linux_shmat(p, uap, retval) * the extra indirection by the linux_ipc system call. */ int -linux_shmdt(p, uap, retval) +linux_shmdt(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sys_ipc_args /* { syscallarg(int) what; syscallarg(int) a1; syscallarg(int) a2; syscallarg(int) a3; syscallarg(caddr_t) ptr; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct sys_shmdt_args bsa; SCARG(&bsa, shmaddr) = SCARG(uap, ptr); @@ -579,17 +577,18 @@ linux_shmdt(p, uap, retval) * Same story as shmdt. */ int -linux_shmget(p, uap, retval) +linux_shmget(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sys_ipc_args /* { syscallarg(int) what; syscallarg(int) a1; syscallarg(int) a2; syscallarg(int) a3; syscallarg(caddr_t) ptr; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct sys_shmget_args bsa; SCARG(&bsa, key) = SCARG(uap, a1); @@ -649,17 +648,18 @@ bsd_to_linux_shmid_ds(bsp, lsp) * The usual structure conversion and massaging is done. */ int -linux_shmctl(p, uap, retval) +linux_shmctl(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sys_ipc_args /* { syscallarg(int) what; syscallarg(int) a1; syscallarg(int) a2; syscallarg(int) a3; syscallarg(caddr_t) ptr; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; int error; caddr_t sg; struct sys_shmctl_args bsa; -- cgit v1.2.3