Module Name:    src
Committed By:   christos
Date:           Sat Aug  3 23:49:06 UTC 2024

Modified Files:
        src/share/man/man5: acct.5

Log Message:
PR/58515: Kouichi Hashikawa: Sync with the header file


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/share/man/man5/acct.5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man5/acct.5
diff -u src/share/man/man5/acct.5:1.10 src/share/man/man5/acct.5:1.11
--- src/share/man/man5/acct.5:1.10	Mon Nov 15 12:41:20 2021
+++ src/share/man/man5/acct.5	Sat Aug  3 19:49:06 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: acct.5,v 1.10 2021/11/15 17:41:20 christos Exp $
+.\"	$NetBSD: acct.5,v 1.11 2024/08/03 23:49:06 christos Exp $
 .\"
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)acct.5	8.1 (Berkeley) 6/5/93
 .\"
-.Dd November 15, 2021
+.Dd August 3, 2024
 .Dt ACCT 5
 .Os
 .Sh NAME
@@ -52,25 +52,25 @@ to the accounting file.
  * exponent, 13 bit fraction ``floating point'' number.  Units are 1/AHZ
  * seconds.
  */
-typedef u_short comp_t;
+typedef uint16_t comp_t;
 
 struct acct {
-	char	ac_comm[10];	/* name of command */
-	comp_t	ac_utime;	/* user time */
-	comp_t	ac_stime;	/* system time */
-	comp_t	ac_etime;	/* elapsed time */
-	time_t	ac_btime;	/* starting time */
-	uid_t	ac_uid;		/* user id */
-	gid_t	ac_gid;		/* group id */
-	short	ac_mem;		/* memory usage average */
-	comp_t	ac_io;		/* count of IO blocks */
-	dev_t	ac_tty;		/* controlling tty */
-#define	AFORK	0x01		/* forked but not execed */
+	char	  ac_comm[16];	/* name of command */
+	comp_t	  ac_utime;	/* user time */
+	comp_t	  ac_stime;	/* system time */
+	comp_t	  ac_etime;	/* elapsed time */
+	time_t	  ac_btime;	/* starting time */
+	uid_t	  ac_uid;	/* user id */
+	gid_t	  ac_gid;	/* group id */
+	uint16_t  ac_mem;	/* memory usage average */
+	comp_t	  ac_io;	/* count of IO blocks */
+	dev_t	  ac_tty;	/* controlling tty */
+#define	AFORK	0x01		/* fork'd but not exec'd */
 #define	ASU	0x02		/* used super-user permissions */
 #define	ACOMPAT	0x04		/* used compatibility mode */
 #define	ACORE	0x08		/* dumped core */
 #define	AXSIG	0x10		/* killed by a signal */
-	char	ac_flag;	/* accounting flags */
+	uint8_t	  ac_flag;	/* accounting flags */
 };
 
 /*
@@ -79,9 +79,10 @@ struct acct {
  */
 #define	AHZ	64
 
-#ifdef KERNEL
-struct vnode	*acctp;
-#endif
+#ifdef _KERNEL
+void   acct_init(void);
+int    acct_process(struct lwp *);
+endif
 .Ed
 .Pp
 If a terminated process was created by an

Reply via email to