Sun Microsystems Sun Workstation — Sun Workstation 1.4 Manual: Release Notes, Installation, Troubleshooting

ACCT( 5) FILE FORMATS ACCT( 5) 0 NAME acct - execution accounting file SYNOPSIS #Include DESCRIPTION The acct(2) system call makes entries in an accounting file for each process that terminates. The accounting file is a sequence of entries whose layout, as defined by the include file is: @(#)acct.h 1.1 84/12/20 SMI; from UCB 6.1 83/07 /29•/ * 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; struct acct { char comp_t comp_t comp_t time_t short short short comp_t dev_t char }; ac_comm[IO]; ac_utime; ac_stime; ac_etime; ac_btime; ac_uid; ac_gid; ac_mem; acjo; ac_tty; ac ...

ftag; Accounting 2ommand name Accounting user time Accounting system time Accounting elapsed time Beginning time Accounting user ID Accounting group ID average memory usage•/ number of disk IO blocks control typewriter Accounting flag 0 #define AFORK =fdefine ASU #define ACOMP AT #define ACORE #define AXSIG 0001 0002 0004 0010 0020 has executed fork, but no exec used super-user privileges used compatibility mode dumped core killed by a signal #if def KERNEL #ifdef SYSACCT struct acct struct vnode acctbuf; •acctp; #else #define acct() #endif #endif If the process does an ezecve(2), the first 10 characters of the filename appear in ac_comm.

The accounting flag contains bits indicating whether ezecve(2) was ever accomplished, and whether the process ever had super-user privileges. SEE ALSO acct(2), execve(2), sa(8) 0 Sun Release 1.4 Last change: 15 January 1983 6a