X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/31cef89cb428866f787983e68246030321893df4..9592d279c9ed3290efd2dc197330e383d16656d8:/usr/src/sys/h/acct.h diff --git a/usr/src/sys/h/acct.h b/usr/src/sys/h/acct.h index 23bff90fdb..8ce9fbd495 100644 --- a/usr/src/sys/h/acct.h +++ b/usr/src/sys/h/acct.h @@ -1,10 +1,12 @@ -/* acct.h 4.1 11/9/80 */ +/* acct.h 6.1 83/07/29 */ /* - * Accounting structures + * Accounting structures; + * these use a comp_t type which is a 3 bits base 8 + * exponent, 13 bit fraction ``floating point'' number. */ +typedef u_short comp_t; -typedef unsigned short comp_t; /* "floating pt": 3 bits base 8 exp, 13 bits fraction */ struct acct { char ac_comm[10]; /* Accounting command name */ @@ -20,8 +22,13 @@ struct acct char ac_flag; /* Accounting flag */ }; -extern struct acct acctbuf; -extern struct inode *acctp; /* inode of accounting file */ +#define AFORK 0001 /* has executed fork, but no exec */ +#define ASU 0002 /* used super-user privileges */ +#define ACOMPAT 0004 /* used compatibility mode */ +#define ACORE 0010 /* dumped core */ +#define AXSIG 0020 /* killed by a signal */ -#define AFORK 01 /* has executed fork, but no exec */ -#define ASU 02 /* used super-user privileges */ +#ifdef KERNEL +struct acct acctbuf; +struct inode *acctp; +#endif