Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acct(2V)

execve(2V)

sa(8)

ACCT(5)  —  FILE FORMATS

NAME

acct − execution accounting file

SYNOPSIS

#include <sys/acct.h>

DESCRIPTION

The acct(2V) 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:

typedefu_short comp_t;
 struct  acct
{
charac_flag;/∗ Accounting flag ∗/
charac_stat;/∗ Exit status ∗/
uid_tac_uid;/∗ Accounting user ID ∗/
gid_tac_gid;/∗ Accounting group ID ∗/
dev_tac_tty;/∗ control typewriter ∗/
time_tac_btime;/∗ Beginning time ∗/
comp_tac_utime;/∗ Accounting user time ∗/
comp_tac_stime;/∗ Accounting system time ∗/
comp_tac_etime;/∗ Accounting elapsed time ∗/
comp_tac_mem;/∗ average memory usage ∗/
comp_tac_io;/∗ chars transferred ∗/
comp_tac_rw;/∗ blocks read or written ∗/
charac_comm[8];/∗ Accounting command name ∗/
};

The type comp_t is a 3 bits base 8 exponent, 13 bit fraction “floating point” number.  If the process does an execve(2V), the first 8 characters of the filename appear in ac_comm.  ac_flag contains bits indicating whether execve(2V) was ever accomplished, and whether the process ever had super-user privileges. 

SEE ALSO

acct(2V), execve(2V), sa(8)

Solbourne Computer, Inc.  —  19 October 1987

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026