diff options
author | bde <bde@FreeBSD.org> | 1995-11-12 06:43:28 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-12 06:43:28 +0000 |
commit | aa9a60640e2c942769c3a8f506c8cb6317bb1eaf (patch) | |
tree | 2f26975a8fd164c9658b820d74c731c86cbb9e18 /sys/ufs/lfs | |
parent | 7a9faab8f26e7692e572f4cdd89f30d1be471ebd (diff) | |
download | FreeBSD-src-aa9a60640e2c942769c3a8f506c8cb6317bb1eaf.zip FreeBSD-src-aa9a60640e2c942769c3a8f506c8cb6317bb1eaf.tar.gz |
Included <sys/sysproto.h> 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.
Diffstat (limited to 'sys/ufs/lfs')
-rw-r--r-- | sys/ufs/lfs/lfs_syscalls.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/ufs/lfs/lfs_syscalls.c b/sys/ufs/lfs/lfs_syscalls.c index 7d34c5b..b978cfb 100644 --- a/sys/ufs/lfs/lfs_syscalls.c +++ b/sys/ufs/lfs/lfs_syscalls.c @@ -31,11 +31,12 @@ * SUCH DAMAGE. * * @(#)lfs_syscalls.c 8.5 (Berkeley) 4/20/94 - * $Id: lfs_syscalls.c,v 1.11 1995/07/29 11:43:08 bde Exp $ + * $Id: lfs_syscalls.c,v 1.12 1995/09/04 00:21:02 dyson Exp $ */ #include <sys/param.h> #include <sys/systm.h> +#include <sys/sysproto.h> #include <sys/proc.h> #include <sys/buf.h> #include <sys/mount.h> @@ -81,11 +82,13 @@ int lfs_fastvget __P((struct mount *, ino_t, daddr_t, struct vnode **, * 0 on success * -1/errno is return on error. */ +#ifndef _SYS_SYSPROTO_H_ struct lfs_markv_args { fsid_t *fsidp; /* file system */ BLOCK_INFO *blkiov; /* block array */ int blkcnt; /* count of block array entries */ }; +#endif int lfs_markv(p, uap, retval) struct proc *p; @@ -257,11 +260,13 @@ err1: * 0 on success * -1/errno is return on error. */ +#ifndef _SYS_SYSPROTO_H_ struct lfs_bmapv_args { fsid_t *fsidp; /* file system */ BLOCK_INFO *blkiov; /* block array */ int blkcnt; /* count of block array entries */ }; +#endif int lfs_bmapv(p, uap, retval) struct proc *p; @@ -317,10 +322,12 @@ lfs_bmapv(p, uap, retval) * 0 on success * -1/errno is return on error. */ +#ifndef _SYS_SYSPROTO_H_ struct lfs_segclean_args { fsid_t *fsidp; /* file system */ u_long segment; /* segment number */ }; +#endif int lfs_segclean(p, uap, retval) struct proc *p; @@ -378,10 +385,12 @@ lfs_segclean(p, uap, retval) * 1 on timeout * -1/errno is return on error. */ +#ifndef _SYS_SYSPROTO_H_ struct lfs_segwait_args { fsid_t *fsidp; /* file system */ struct timeval *tv; /* timeout */ }; +#endif int lfs_segwait(p, uap, retval) struct proc *p; |