#include <sys/acct.h>

sys/acct.h

6 macros · 1 typedef · 1 struct

typedefcomp_t

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_int16_t comp_t

structacct

size 40, align 4
char[10]ac_commcommand name
comp_tac_utimeuser time
comp_tac_stimesystem time
comp_tac_etimeelapsed time
u_int32_tac_btimestarting time
uid_tac_uiduser id
gid_tac_gidgroup id
u_int16_tac_memaverage memory usage
comp_tac_iocount of IO blocks
dev_tac_ttycontrolling tty
u_int8_tac_flagaccounting flags

macroAFORK

#define AFORK 0x01
fork'd but not exec'd

macroASU

#define ASU 0x02
used super-user permissions

macroACOMPAT

#define ACOMPAT 0x04
used compatibility mode

macroACORE

#define ACORE 0x08
dumped core

macroAXSIG

#define AXSIG 0x10
killed by a signal

macroAHZ

1/AHZ is the granularity of the data encoded in the comp_t fields. This is not necessarily equal to hz.
#define AHZ 64