Penguin
Annotated edit history of acct(2) version 3, including all changes. View license author blame.
Rev Author # Line
1 perry 1 ACCT
2 !!!ACCT
2 PerryLorier 3
1 perry 4 ----
5 !!NAME
6
7 acct - switch process accounting on or off
8 !!SYNOPSIS
9
10
2 PerryLorier 11 __#include <unistd.h>__
3 PerryLorier 12 __int acct(const char *__''filename''__); __
1 perry 13 !!DESCRIPTION
14
15 When called with the name of an existing file as argument,
16 accounting is turned on, records for each terminating
17 process are appended to ''filename'' as it terminates. An
18 argument of __NULL__ causes accounting to be turned
19 off.
2 PerryLorier 20
1 perry 21 !!RETURN VALUE
22
23 On success, zero is returned. On error, -1 is returned, and
24 ''errno'' is set appropriately.
2 PerryLorier 25
1 perry 26 !!ERRORS
2 PerryLorier 27 ;[ENOSYS]: BSD process accounting has not been enabled when the operating system kernel was compiled. The kernel configuration parameter controlling this feature is CONFIG_BSD_PROCESS_ACCT.
28 ;[ENOMEM]: Out of memory.
29 ;[EPERM]: The calling process has no permission to enable process accounting.
30 ;[ENOENT]: The specified filename does not exist.
31 ;[EACCES]: The argument ''filename'' is not a regular file.
32 ;[EIO]: Error writing to the file ''filename''.
33 ;[EUSERS]: There are no more free file structures or we run out of memory.
1 perry 34
35 !!CONFORMING TO
36
37 SVr4 (but not POSIX). SVr4 documents EACCES, EBUSY, EFAULT,
38 ELOOP, ENAMETOOLONG, ENOTDIR, ENOENT, EPERM and EROFS error
39 conditions, but no ENOSYS.
40 !!NOTES
41
42 No accounting is produced for programs running when a crash
43 occurs. In particular, nonterminating processes are never
44 accounted for.
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 7 times)