1 #ifndef __LINUX_ACCT_H 2 #define __LINUX_ACCT_H 3 4 #define ACCT_COMM 16 5 6 struct acct 7 { 8 char ac_comm[ACCT_COMM]; /* Accounting command name */ 9 time_t ac_utime; /* Accounting user time */ 10 time_t ac_stime; /* Accounting system time */ 11 time_t ac_etime; /* Accounting elapsed time */ 12 time_t ac_btime; /* Beginning time */ 13 uid_t ac_uid; /* Accounting user ID */ 14 gid_t ac_gid; /* Accounting group ID */ 15 dev_t ac_tty; /* controlling tty */ 16 char ac_flag; /* Accounting flag */ 17 long ac_minflt; /* Accounting minor pagefaults */ 18 long ac_majflt; /* Accounting major pagefaults */ 19 long ac_exitcode; /* Accounting process exitcode */ 20 }; 21 22 #define AFORK 0001 /* has executed fork, but no exec */ 23 #define ASU 0002 /* used super-user privileges */ 24 #define ACORE 0004 /* dumped core */ 25 #define AXSIG 0010 /* killed by a signal */ 26 27 #define AHZ 100 28 29 #endif