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