summaryrefslogtreecommitdiff
path: root/static/unix-v10/man2/acct.2
blob: d00008a1411fed12905ffe4ef88a46398d4434d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.TH ACCT 2
.CT 2 sa
.SH NAME
acct \(mi turn accounting on or off
.SH SYNOPSIS
.nf
.B int acct(file)
.B char *file;
.fi
.SH DESCRIPTION
.IR Acct ,
with a null-terminated string naming an existing file
as argument, turns on accounting;
records for each terminating process are appended to
.IR file .
An argument of
.L
(char *)0
causes accounting to be turned off.
.PP
.I Acct
may only be invoked by the super-user.
.PP
The accounting file format is given in
.IR acct (5).
.SH "SEE ALSO"
.IR acct (5), 
.IR sa (8)
.SH DIAGNOSTICS
.B EACCES
(file not a regular file),
.B EBUSY
(accounting already turned on),
.BR EFAULT ,
.BR EIO ,
.BR ELOOP ,
.BR ENOENT ,
.BR ENOTDIR ,
.BR EPERM ,
.BR EROFS ,
.BR ETXTBSY
.SH BUGS
No accounting is produced for programs running
when a crash occurs.
In particular nonterminating programs are never
accounted for.