---
name: "sys_acct"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/sys_acct"
---

# sys\_acct(9)

enable/disable process accounting

## NAME

sys\_acct - enable/disable process accounting

## SYNOPSIS

**long sys\_acct(const char \_\_user \*** *name***);**

## ARGUMENTS

*name*

file name for accounting records or NULL to shutdown accounting

## DESCRIPTION

Returns 0 for success or negative errno values for failure.

**sys\_acct** 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.

## COPYRIGHT
