From aa9a60640e2c942769c3a8f506c8cb6317bb1eaf Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 12 Nov 1995 06:43:28 +0000 Subject: Included to get central declarations for syscall args structs and prototypes for syscalls. Ifdefed duplicated decentralized declarations of args structs. It's convenient to have this visible but they are hard to maintain. Some are already different from the central declarations. 4.4lite2 puts them in comments in the function headers but I wanted to avoid the large changes for that. --- sys/kern/sys_generic.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'sys/kern/sys_generic.c') diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index 1da99a1..64f1318 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -36,11 +36,12 @@ * SUCH DAMAGE. * * @(#)sys_generic.c 8.5 (Berkeley) 1/21/94 - * $Id: sys_generic.c,v 1.14 1995/10/10 08:08:54 swallace Exp $ + * $Id: sys_generic.c,v 1.15 1995/11/11 06:57:34 bde Exp $ */ #include #include +#include #include #include #include @@ -63,11 +64,13 @@ int selscan __P((struct proc *, fd_set *, fd_set *, int, int *)); /* * Read system call. */ +#ifndef _SYS_SYSPROTO_H_ struct read_args { int fd; char *buf; u_int nbyte; }; +#endif /* ARGSUSED */ int read(p, uap, retval) @@ -124,11 +127,13 @@ read(p, uap, retval) /* * Scatter read system call. */ +#ifndef _SYS_SYSPROTO_H_ struct readv_args { int fd; struct iovec *iovp; u_int iovcnt; }; +#endif int readv(p, uap, retval) struct proc *p; @@ -211,11 +216,13 @@ done: /* * Write system call */ +#ifndef _SYS_SYSPROTO_H_ struct write_args { int fd; char *buf; u_int nbyte; }; +#endif int write(p, uap, retval) struct proc *p; @@ -271,11 +278,13 @@ write(p, uap, retval) /* * Gather write system call */ +#ifndef _SYS_SYSPROTO_H_ struct writev_args { int fd; struct iovec *iovp; u_int iovcnt; }; +#endif int writev(p, uap, retval) struct proc *p; @@ -361,11 +370,13 @@ done: /* * Ioctl system call */ +#ifndef _SYS_SYSPROTO_H_ struct ioctl_args { int fd; int com; caddr_t data; }; +#endif /* ARGSUSED */ int ioctl(p, uap, retval) @@ -500,11 +511,13 @@ int selwait, nselcoll; /* * Select system call. */ +#ifndef _SYS_SYSPROTO_H_ struct select_args { u_int nd; fd_set *in, *ou, *ex; struct timeval *tv; }; +#endif int select(p, uap, retval) register struct proc *p; -- cgit v1.1