Go to the previous, next section.

acct

SYNOPSIS

int acct(const char *filename);

PARAMETERS

filename: [in] contains the path of the accounting file, or NULL.

DESCRIPTION

This call is not part of the plain Linux distribution. If the acct package is not installed, the call always return -1 and errno is set to ENOSYS. If the package is installed then the call function normally. In that case, if filename points to a valid path, the termination time of each process will be loggued in the filename it points to. Otherwise, if filename is NULL, then the accounting function is turned off.

RETURN VALUE

On success zero is returned. On error -1 is returned and errno is set to reflect the kind of error that occured.

Go to the previous, next section.