summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_acct.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-12 06:43:28 +0000
committerbde <bde@FreeBSD.org>1995-11-12 06:43:28 +0000
commitaa9a60640e2c942769c3a8f506c8cb6317bb1eaf (patch)
tree2f26975a8fd164c9658b820d74c731c86cbb9e18 /sys/kern/kern_acct.c
parent7a9faab8f26e7692e572f4cdd89f30d1be471ebd (diff)
downloadFreeBSD-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/kern/kern_acct.c')
-rw-r--r--sys/kern/kern_acct.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c
index f7b6042..f77fe69 100644
--- a/sys/kern/kern_acct.c
+++ b/sys/kern/kern_acct.c
@@ -37,11 +37,12 @@
* SUCH DAMAGE.
*
* @(#)kern_acct.c 8.1 (Berkeley) 6/14/93
- * $Id: kern_acct.c,v 1.7 1995/07/23 23:02:20 mpp Exp $
+ * $Id: kern_acct.c,v 1.8 1995/10/29 15:30:56 phk Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/sysproto.h>
#include <sys/proc.h>
#include <sys/mount.h>
#include <sys/vnode.h>
@@ -91,10 +92,12 @@ int acctchkfreq = 15; /* frequency (in seconds) to check space */
* Accounting system call. Written based on the specification and
* previous implementation done by Mark Tinguely.
*/
+#ifndef _SYS_SYSPROTO_H_
struct acct_args {
char *path;
};
+#endif
int
acct(p, uap, retval)
struct proc *p;
OpenPOWER on IntegriCloud