|
|
1.1 ! root 1: ! 2: ! 3: acct() COHERENT System Call acct() ! 4: ! 5: ! 6: ! 7: ! 8: Enable/disable process accounting ! 9: ! 10: aacccctt(_f_i_l_e) ! 11: cchhaarr *_f_i_l_e; ! 12: ! 13: Process accounting records who initiates each system process and ! 14: how long each process takes to execute. These data can be ! 15: analyzed, to administer the system most efficiently. ! 16: ! 17: The system call acct enables or disables process accounting. If ! 18: file is not NULL, then accounting is turned on; if file is NULL, ! 19: however, then process accounting is turned off. ! 20: ! 21: It is usual, but not necessary, that file be /uussrr/aaddmm/aacccctt. file ! 22: must exist. When enabled, the system appends a raw accounting ! 23: data record in the format described by acct.h to file as each ! 24: process terminates. ! 25: ! 26: acct is restricted to the superuser. ! 27: ! 28: ***** See Also ***** ! 29: ! 30: ac, acct.h, accton, COHERENT system calls, exit(), sa, times() ! 31: ! 32: ***** Diagnostics ***** ! 33: ! 34: Successful calls return zero. acct returns -1 for errors, such ! 35: as nonexistent file or invocation by a user other than the super- ! 36: user. ! 37: ! 38: ***** Notes ***** ! 39: ! 40: The system writes accounting records for a process only when the ! 41: process exits. Processes that never terminate and processes run- ! 42: ning at the time of a system crash do not produce accounting in- ! 43: formation. ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.