Penguin

Differences between current version and revision by previous author of acct(2).

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 3 Last edited on Monday, October 28, 2002 8:43:06 pm by PerryLorier
Older page: version 1 Last edited on Monday, June 3, 2002 6:52:56 pm by perry Revert
@@ -1,95 +1,44 @@
 ACCT 
 !!!ACCT 
-NAME  
-SYNOPSIS  
-DESCRIPTION  
-RETURN VALUE  
-ERRORS  
-CONFORMING TO  
-NOTES  
+  
 ---- 
 !!NAME 
-  
  
 acct - switch process accounting on or off 
 !!SYNOPSIS 
  
  
-__#include  
-__''filename''__);  
- __ 
+ __#include <unistd.h>__  
+ __int acct(const char * __''filename''__); __ 
 !!DESCRIPTION 
-  
  
 When called with the name of an existing file as argument, 
 accounting is turned on, records for each terminating 
 process are appended to ''filename'' as it terminates. An 
 argument of __NULL__ causes accounting to be turned 
 off. 
+  
 !!RETURN VALUE 
-  
  
 On success, zero is returned. On error, -1 is returned, and 
 ''errno'' is set appropriately. 
+  
 !!ERRORS 
+;[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.  
+;[ENOMEM]: Out of memory.  
+;[EPERM]: The calling process has no permission to enable process accounting.  
+;[ENOENT]: The specified filename does not exist.  
+;[EACCES]: The argument ''filename'' is not a regular file.  
+;[EIO]: Error writing to the file ''filename''.  
+;[EUSERS]: There are no more free file structures or we run out of memory.  
  
-  
-__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.  
-  
-  
-__ENOMEM__  
-  
-  
-Out of memory.  
-  
-  
-__EPERM__  
-  
-  
-The calling process has no permission to enable process  
-accounting.  
-  
-  
-__ENOENT__  
-  
-  
-The specified filename does not exist.  
-  
-  
-__EACCES__  
-  
-  
-The argument ''filename'' is not a regular  
-file.  
-  
-  
-__EIO__  
-  
-  
-Error writing to the file ''filename''.  
-  
-  
-__EUSERS__  
-  
-  
-There are no more free file structures or we run out of  
-memory.  
 !!CONFORMING TO 
-  
  
 SVr4 (but not POSIX). SVr4 documents EACCES, EBUSY, EFAULT, 
 ELOOP, ENAMETOOLONG, ENOTDIR, ENOENT, EPERM and EROFS error 
 conditions, but no ENOSYS. 
 !!NOTES 
-  
  
 No accounting is produced for programs running when a crash 
 occurs. In particular, nonterminating processes are never 
 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.