*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: acct | Section: 5 | Source: UNIX v10 | File: acct.5
ACCT(5) File Formats Manual ACCT(5) NAME acct - execution accounting file SYNOPSIS #include <sys/types.h> #include <sys/acct.h> DESCRIPTION Acct(2) causes an entry to be appended to an accounting file for each process that terminates. The layout of an accounting file entry, as given in <sys/acct.h>, is typedef unsigned short comp_t; struct acct { char ac_comm[10]; /* command name */ comp_t ac_utime; /* user time */ comp_t ac_stime; /* system time */ comp_t ac_etime; /* elapsed time */ time_t ac_btime; /* beginning time */ short ac_uid; /* user ID */ short ac_gid; /* group ID */ short ac_mem; /* average memory usage */ comp_t ac_io; /* number of disk IO blocks */ dev_t ac_tty; /* control typewriter */ char ac_flag; /* flag */ }; Values in ac_flag: #define AFORK 01 /* has executed fork, but no exec */ #define ASU 02 /* used super-user privileges */ If the process does an exec(2), the first 10 characters of the filename appear in The type comp_t counts 60- or 50-cycle clock ticks in a private float- ing-point format: a three-bit base-8 exponent and a 13-bit unsigned mantissa. Thus the number of clock ticks that a process ran is ex- pressed by (ac_etime&017777)<<((ac_etime>>13)&03). The beginning time, ac_btime, is recorded in the format of time(2). SEE ALSO acct(2), sa(8) ACCT(5)

Navigation Options