.ad l
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "int acct(const char *" filename );
.fi
.ad b
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR acct ():
.nf
Since glibc 2.21:
The system-wide limit on the total number of open files has been reached.
.TP
.B ENOENT
-The specified filename does not exist.
+The specified file does not exist.
.TP
.B ENOMEM
Out of memory.
.TP
.B EPERM
The calling process has insufficient privilege to enable process accounting.
-On Linux the
+On Linux, the
.B CAP_SYS_PACCT
capability is required.
.TP
.SH NOTES
No accounting is produced for programs running when a system crash occurs.
In particular, nonterminating processes are never accounted for.
-
+.PP
The structure of the records written to the accounting file is described in
.BR acct (5).
.SH SEE ALSO