1ACCT(2)                       System Calls Manual                      ACCT(2)
2
3
4

NAME

6       acct - turn accounting on or off
7

SYNOPSIS

9       acct(file)
10       char *file;
11

DESCRIPTION

13       The system is prepared to write a record in an accounting file for each
14       process as it terminates.  This call,  with  a  null-terminated  string
15       naming  an  existing file as argument, turns on accounting; records for
16       each terminating process are appended to file.  An argument of 0 causes
17       accounting to be turned off.
18
19       The accounting file format is given in acct(5).
20

SEE ALSO

22       acct(5), sa(1)
23

DIAGNOSTICS

25       On error -1 is returned.  The file must exist and the call may be exer‐
26       cised only by the super-user.  It  is  erroneous  to  try  to  turn  on
27       accounting when it is already on.
28

BUGS

30       No accounting is produced for programs running when a crash occurs.  In
31       particular nonterminating programs are never accounted for.
32

ASSEMBLER

34       (acct = 51.)
35       sys acct; file
36
37
38
39                                                                       ACCT(2)
Impressum