NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/58515: struct acct at acct(5) man page is different from /usr/include/sys/acct.h
>Number: 58515
>Category: misc
>Synopsis: struct acct at acct(5) man page is different from /usr/include/sys/acct.h
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 29 10:35:00 +0000 2024
>Originator: Kouichi Hashikawa
>Release: current, 10, 9
>Organization:
>Environment:
>Description:
struct acct at man page acct(5) is different from /usr/include/sys/acct.h.
/*
* Accounting structures; these use a comp_t type which is a 3 bits base 8
* 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 */
+ char ac_comm[16]; /* command name */
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 */
+ uint16_t ac_mem; /* average memory usage */
comp_t ac_io; /* count of IO blocks */
dev_t ac_tty; /* controlling tty */
-#define AFORK 0x01 /* forked but not execed */
+
+#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 */
};
/*
...
*/
#define AHZ 64
-#ifdef KERNEL
-struct vnode *acctp;
+#ifdef _KERNEL
+void acct_init(void);
+int acct_process(struct lwp *);
#endif
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index