xref: /original-bsd/sys/sys/acct.h (revision 55330032)
1 /*	acct.h	4.1	11/09/80	*/
2 
3 /*
4  * Accounting structures
5  */
6 
7 typedef	unsigned short comp_t;	/* "floating pt": 3 bits base 8 exp, 13 bits fraction */
8 struct	acct
9 {
10 	char	ac_comm[10];		/* Accounting command name */
11 	comp_t	ac_utime;		/* Accounting user time */
12 	comp_t	ac_stime;		/* Accounting system time */
13 	comp_t	ac_etime;		/* Accounting elapsed time */
14 	time_t	ac_btime;		/* Beginning time */
15 	short	ac_uid;			/* Accounting user ID */
16 	short	ac_gid;			/* Accounting group ID */
17 	short	ac_mem;			/* average memory usage */
18 	comp_t	ac_io;			/* number of disk IO blocks */
19 	dev_t	ac_tty;			/* control typewriter */
20 	char	ac_flag;		/* Accounting flag */
21 };
22 
23 extern	struct	acct	acctbuf;
24 extern	struct	inode	*acctp;		/* inode of accounting file */
25 
26 #define	AFORK	01		/* has executed fork, but no exec */
27 #define	ASU	02		/* used super-user privileges */
28