'\" t .\" Title: sys_acct .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Accounting Framework .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "SYS_ACCT" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "Accounting Framework" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" sys_acct \- enable/disable process accounting .SH "SYNOPSIS" .HP \w'long\ sys_acct('u .BI "long sys_acct(const\ char\ __user\ *\ " "name" ");" .SH "ARGUMENTS" .PP \fIname\fR .RS 4 file name for accounting records or NULL to shutdown accounting .RE .SH "DESCRIPTION" .PP Returns 0 for success or negative errno values for failure\&. .PP \fBsys_acct\fR is the only system call needed to implement process accounting\&. It takes the name of the file where accounting records should be written\&. If the filename is NULL, accounting will be shutdown\&. .SH "COPYRIGHT" .br