Research V7 development
[unix-history] / usr / man / man2 / acct.2
CommitLineData
0ac0f559
KT
1.TH ACCT 2
2.SH NAME
3acct \- turn accounting on or off
4.SH SYNOPSIS
5.B acct(file)
6.br
7.B char *file;
8.SH DESCRIPTION
9The system is prepared to write a record
10in an accounting
11.I file
12for each process as it terminates.
13This
14call, with a null-terminated string naming an existing file
15as argument, turns on accounting;
16records for each terminating process are appended to
17.IR file .
18An argument of 0 causes accounting to be turned off.
19.PP
20The accounting file format is given in
21.IR acct (5).
22.SH "SEE ALSO"
23acct(5), sa(1)
24.SH DIAGNOSTICS
25On error \-1 is returned.
26The file must exist and the call may be exercised only by the super-user.
27It is erroneous to try to turn on accounting when it is already on.
28.SH BUGS
29No accounting is produced for programs running
30when a crash occurs.
31In particular nonterminating programs are never
32accounted for.
33.SH ASSEMBLER
34(acct = 51.)
35.br
36.B sys acct; file