diff options
author | jasoni <jasoni@cvs.openbsd.org> | 2001-05-24 06:00:10 +0000 |
---|---|---|
committer | jasoni <jasoni@cvs.openbsd.org> | 2001-05-24 06:00:10 +0000 |
commit | 285e264ade22002eaddaafc4b84537cb1b8e8685 (patch) | |
tree | 6bb6f6d695d0c826cc8e3d3d353c7f75a91fda8e | |
parent | 9e230f0d02a97c0ea607c9b8ca40742c43de9ba5 (diff) |
style/cleanup (of function headers)
-rw-r--r-- | sys/compat/linux/linux_cdrom.c | 11 | ||||
-rw-r--r-- | sys/compat/linux/linux_ioctl.h | 11 | ||||
-rw-r--r-- | sys/compat/linux/linux_ipc.c | 134 | ||||
-rw-r--r-- | sys/compat/linux/linux_socket.c | 208 | ||||
-rw-r--r-- | sys/compat/linux/linux_termios.c | 11 |
5 files changed, 191 insertions, 184 deletions
diff --git a/sys/compat/linux/linux_cdrom.c b/sys/compat/linux/linux_cdrom.c index d8a6e6e5ae1..365a198e879 100644 --- a/sys/compat/linux/linux_cdrom.c +++ b/sys/compat/linux/linux_cdrom.c @@ -1,5 +1,5 @@ -/* $OpenBSD: linux_cdrom.c,v 1.4 1998/01/23 11:30:06 provos Exp $ */ +/* $OpenBSD: linux_cdrom.c,v 1.5 2001/05/24 06:00:08 jasoni Exp $ */ /* * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> * All rights reserved. @@ -66,15 +66,16 @@ bsd_addr_to_linux_addr(bsd, linux, format) } int -linux_ioctl_cdrom(p, uap, retval) +linux_ioctl_cdrom(p, v, retval) register struct proc *p; + void *v; + register_t *retval; +{ register struct linux_sys_ioctl_args /* { syscallarg(int) fd; syscallarg(u_long) com; syscallarg(caddr_t) data; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; register struct file *fp; register struct filedesc *fdp; caddr_t sg; diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h index 5baa519a6b3..1b390cd957f 100644 --- a/sys/compat/linux/linux_ioctl.h +++ b/sys/compat/linux/linux_ioctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_ioctl.h,v 1.5 2001/04/09 06:53:45 tholo Exp $ */ +/* $OpenBSD: linux_ioctl.h,v 1.6 2001/05/24 06:00:09 jasoni Exp $ */ /* $NetBSD: linux_ioctl.h,v 1.4 1996/04/05 00:01:36 christos Exp $ */ /* @@ -82,12 +82,9 @@ struct linux_sys_ioctl_args; int linux_ioctl_audio __P((struct proc *, struct linux_sys_ioctl_args *, register_t *)); int linux_machdepioctl __P((struct proc *, void *, register_t *)); -int linux_ioctl_termios __P((struct proc *, struct linux_sys_ioctl_args *, - register_t *)); -int linux_ioctl_cdrom __P((struct proc *, struct linux_sys_ioctl_args *, - register_t *)); -int linux_ioctl_socket __P((struct proc *, struct linux_sys_ioctl_args *, - register_t *)); +int linux_ioctl_termios __P((struct proc *, void *, register_t *)); +int linux_ioctl_cdrom __P((struct proc *, void *, register_t *)); +int linux_ioctl_socket __P((struct proc *, void *, register_t *)); int linux_ioctl_hdio __P((struct proc *, struct linux_sys_ioctl_args *, register_t *)); int linux_ioctl_fdio __P((struct proc *, struct linux_sys_ioctl_args *, 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; diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 1810d227a40..136e292b103 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_socket.c,v 1.18 2000/07/23 22:35:38 jasoni Exp $ */ +/* $OpenBSD: linux_socket.c,v 1.19 2001/05/24 06:00:09 jasoni Exp $ */ /* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */ /* @@ -77,38 +77,28 @@ */ int linux_to_bsd_domain __P((int)); -int linux_socket __P((struct proc *, struct linux_socket_args *, register_t *)); -int linux_bind __P((struct proc *, struct linux_bind_args *, register_t *)); -int linux_connect __P((struct proc *, struct linux_connect_args *, - register_t *)); -int linux_listen __P((struct proc *, struct linux_listen_args *, register_t *)); -int linux_accept __P((struct proc *, struct linux_accept_args *, register_t *)); -int linux_getsockname __P((struct proc *, struct linux_getsockname_args *, - register_t *)); -int linux_getpeername __P((struct proc *, struct linux_getpeername_args *, - register_t *)); -int linux_socketpair __P((struct proc *, struct linux_socketpair_args *, - register_t *)); -int linux_send __P((struct proc *, struct linux_send_args *, register_t *)); -int linux_recv __P((struct proc *, struct linux_recv_args *, register_t *)); -int linux_sendto __P((struct proc *, struct linux_sendto_args *, register_t *)); -int linux_recvfrom __P((struct proc *, struct linux_recvfrom_args *, - register_t *)); -int linux_shutdown __P((struct proc *, struct linux_shutdown_args *, - register_t *)); +int linux_socket __P((struct proc *, void *, register_t *)); +int linux_bind __P((struct proc *, void *, register_t *)); +int linux_connect __P((struct proc *, void *, register_t *)); +int linux_listen __P((struct proc *, void *, register_t *)); +int linux_accept __P((struct proc *, void *, register_t *)); +int linux_getsockname __P((struct proc *, void *, register_t *)); +int linux_getpeername __P((struct proc *, void *, register_t *)); +int linux_socketpair __P((struct proc *, void *, register_t *)); +int linux_send __P((struct proc *, void *, register_t *)); +int linux_recv __P((struct proc *, void *, register_t *)); +int linux_sendto __P((struct proc *, void *, register_t *)); +int linux_recvfrom __P((struct proc *, void *, register_t *)); +int linux_shutdown __P((struct proc *, void *, register_t *)); int linux_to_bsd_sopt_level __P((int)); int linux_to_bsd_so_sockopt __P((int)); int linux_to_bsd_ip_sockopt __P((int)); int linux_to_bsd_tcp_sockopt __P((int)); int linux_to_bsd_udp_sockopt __P((int)); -int linux_setsockopt __P((struct proc *, struct linux_setsockopt_args *, - register_t *)); -int linux_getsockopt __P((struct proc *, struct linux_getsockopt_args *, - register_t *)); -int linux_recvmsg __P((struct proc *, struct linux_recvmsg_args *, - register_t *)); -int linux_sendmsg __P((struct proc *, struct linux_sendmsg_args *, - register_t *)); +int linux_setsockopt __P((struct proc *, void *, register_t *)); +int linux_getsockopt __P((struct proc *, void *, register_t *)); +int linux_recvmsg __P((struct proc *, void *, register_t *)); +int linux_sendmsg __P((struct proc *, void *, register_t *)); int linux_check_hdrincl __P((struct proc *, int, register_t *)); int linux_sendto_hdrincl __P((struct proc *, struct sys_sendto_args *, @@ -141,15 +131,16 @@ linux_to_bsd_domain(ldom) } int -linux_socket(p, uap, retval) +linux_socket(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_socket_args /* { syscallarg(int) domain; syscallarg(int) type; syscallarg(int) protocol; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_socket_args lsa; struct sys_socket_args bsa; int error; @@ -166,15 +157,16 @@ linux_socket(p, uap, retval) } int -linux_bind(p, uap, retval) +linux_bind(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_bind_args /* { syscallarg(int) s; syscallarg(struct sockaddr *) name; syscallarg(int) namelen; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_bind_args lba; struct sys_bind_args bba; int error; @@ -190,15 +182,16 @@ linux_bind(p, uap, retval) } int -linux_connect(p, uap, retval) +linux_connect(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_connect_args /* { syscallarg(int) s; syscallarg(struct sockaddr *) name; syscallarg(int) namelen; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_connect_args lca; struct sys_connect_args bca; int error; @@ -254,14 +247,15 @@ linux_connect(p, uap, retval) } int -linux_listen(p, uap, retval) +linux_listen(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_listen_args /* { syscallarg(int) s; syscallarg(int) backlog; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_listen_args lla; struct sys_listen_args bla; int error; @@ -276,15 +270,16 @@ linux_listen(p, uap, retval) } int -linux_accept(p, uap, retval) +linux_accept(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_accept_args /* { syscallarg(int) s; syscallarg(struct sockaddr *) addr; syscallarg(int *) namelen; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_accept_args laa; struct compat_43_sys_accept_args baa; int error; @@ -300,15 +295,16 @@ linux_accept(p, uap, retval) } int -linux_getsockname(p, uap, retval) +linux_getsockname(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_getsockname_args /* { syscallarg(int) s; syscallarg(struct sockaddr *) addr; syscallarg(int *) namelen; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_getsockname_args lga; struct compat_43_sys_getsockname_args bga; int error; @@ -324,15 +320,16 @@ linux_getsockname(p, uap, retval) } int -linux_getpeername(p, uap, retval) +linux_getpeername(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_getpeername_args /* { syscallarg(int) s; syscallarg(struct sockaddr *) addr; syscallarg(int *) namelen; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_getpeername_args lga; struct compat_43_sys_getpeername_args bga; int error; @@ -348,16 +345,17 @@ linux_getpeername(p, uap, retval) } int -linux_socketpair(p, uap, retval) +linux_socketpair(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_socketpair_args /* { syscallarg(int) domain; syscallarg(int) type; syscallarg(int) protocol; syscallarg(int *) rsv; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_socketpair_args lsa; struct sys_socketpair_args bsa; int error; @@ -376,16 +374,17 @@ linux_socketpair(p, uap, retval) } int -linux_send(p, uap, retval) +linux_send(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_send_args /* { syscallarg(int) s; syscallarg(void *) msg; syscallarg(int) len; syscallarg(int) flags; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_send_args lsa; struct compat_43_sys_send_args bsa; int error; @@ -402,16 +401,17 @@ linux_send(p, uap, retval) } int -linux_recv(p, uap, retval) +linux_recv(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_recv_args /* { syscallarg(int) s; syscallarg(void *) msg; syscallarg(int) len; syscallarg(int) flags; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_recv_args lra; struct compat_43_sys_recv_args bra; int error; @@ -541,8 +541,11 @@ linux_sendto_hdrincl(p, bsa, retval) } int -linux_sendto(p, uap, retval) +linux_sendto(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sendto_args /* { syscallarg(int) s; syscallarg(void *) msg; @@ -550,9 +553,7 @@ linux_sendto(p, uap, retval) syscallarg(int) flags; syscallarg(sockaddr *) to; syscallarg(int) tolen; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_sendto_args lsa; struct sys_sendto_args bsa; int error; @@ -573,8 +574,11 @@ linux_sendto(p, uap, retval) } int -linux_recvfrom(p, uap, retval) +linux_recvfrom(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_recvfrom_args /* { syscallarg(int) s; syscallarg(void *) buf; @@ -582,9 +586,7 @@ linux_recvfrom(p, uap, retval) syscallarg(int) flags; syscallarg(struct sockaddr *) from; syscallarg(int *) fromlen; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_recvfrom_args lra; struct compat_43_sys_recvfrom_args bra; int error; @@ -603,14 +605,15 @@ linux_recvfrom(p, uap, retval) } int -linux_shutdown(p, uap, retval) +linux_shutdown(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_shutdown_args /* { syscallarg(int) s; syscallarg(int) how; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_shutdown_args lsa; struct sys_shutdown_args bsa; int error; @@ -754,17 +757,18 @@ linux_to_bsd_udp_sockopt(lopt) * need conversion, as they are the same on both systems. */ int -linux_setsockopt(p, uap, retval) +linux_setsockopt(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_setsockopt_args /* { syscallarg(int) s; syscallarg(int) level; syscallarg(int) optname; syscallarg(void *) optval; syscallarg(int) optlen; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_setsockopt_args lsa; struct sys_setsockopt_args bsa; int error, name; @@ -805,17 +809,18 @@ linux_setsockopt(p, uap, retval) * getsockopt(2) is very much the same as setsockopt(2) (see above) */ int -linux_getsockopt(p, uap, retval) +linux_getsockopt(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_getsockopt_args /* { syscallarg(int) s; syscallarg(int) level; syscallarg(int) optname; syscallarg(void *) optval; syscallarg(int) *optlen; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_getsockopt_args lga; struct sys_getsockopt_args bga; int error, name; @@ -853,15 +858,16 @@ linux_getsockopt(p, uap, retval) } int -linux_recvmsg(p, uap, retval) +linux_recvmsg(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_recvmsg_args /* { syscallarg(int) s; syscallarg(caddr_t) msg; syscallarg(int) flags; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_recvmsg_args lla; struct sys_recvmsg_args bla; int error; @@ -877,15 +883,16 @@ linux_recvmsg(p, uap, retval) } int -linux_sendmsg(p, uap, retval) +linux_sendmsg(p, v, retval) struct proc *p; + void *v; + register_t *retval; +{ struct linux_sendmsg_args /* { syscallarg(int) s; syscallarg(struct msghdr *) msg; syscallarg(int) flags; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; struct linux_sendmsg_args lla; struct sys_sendmsg_args bla; int error; @@ -979,15 +986,16 @@ linux_sys_socketcall(p, v, retval) } int -linux_ioctl_socket(p, uap, retval) +linux_ioctl_socket(p, v, retval) register struct proc *p; + void *v; + register_t *retval; +{ register struct linux_sys_ioctl_args /* { syscallarg(int) fd; syscallarg(u_long) com; syscallarg(caddr_t) data; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; u_long com; struct sys_ioctl_args ia; diff --git a/sys/compat/linux/linux_termios.c b/sys/compat/linux/linux_termios.c index 5000c744ddf..810f90379f7 100644 --- a/sys/compat/linux/linux_termios.c +++ b/sys/compat/linux/linux_termios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_termios.c,v 1.8 2000/08/18 17:40:24 niklas Exp $ */ +/* $OpenBSD: linux_termios.c,v 1.9 2001/05/24 06:00:09 jasoni Exp $ */ /* $NetBSD: linux_termios.c,v 1.3 1996/04/05 00:01:54 christos Exp $ */ /* @@ -438,15 +438,16 @@ bsd_termios_to_linux_termios(bts, lts) } int -linux_ioctl_termios(p, uap, retval) +linux_ioctl_termios(p, v, retval) register struct proc *p; + void *v; + register_t *retval; +{ register struct linux_sys_ioctl_args /* { syscallarg(int) fd; syscallarg(u_long) com; syscallarg(caddr_t) data; - } */ *uap; - register_t *retval; -{ + } */ *uap = v; register struct file *fp; register struct filedesc *fdp; u_long com; |