From ce4ec6becf83394f639ae4885000416675fb5261 Mon Sep 17 00:00:00 2001 From: Jared Yanovich Date: Wed, 10 Aug 2005 01:09:23 +0000 Subject: - punctuation & wording - fix up RETURN VALUES section ok jmc --- lib/libc/sys/acct.2 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/sys/acct.2 b/lib/libc/sys/acct.2 index a6d120720f3..fac00d64c4d 100644 --- a/lib/libc/sys/acct.2 +++ b/lib/libc/sys/acct.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: acct.2,v 1.12 2005/03/26 13:31:35 jmc Exp $ +.\" $OpenBSD: acct.2,v 1.13 2005/08/10 01:09:22 jaredy Exp $ .\" $NetBSD: acct.2,v 1.6 1995/02/27 12:31:47 cgd Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 @@ -51,13 +51,13 @@ is accounting is disabled. If .Fa file -is an existing, NUL-terminated pathname, record collection is enabled +is an existing, NUL-terminated pathname, record collection is enabled, and for every process initiated which terminates under normal conditions an accounting record is appended to .Fa file . Abnormal conditions of termination are reboots or other fatal system problems. -Records for processes which never terminate can not be produced by +Records for processes which never terminate cannot be produced by .Fn acct . .Fn acct is only available on kernels compiled with the @@ -77,8 +77,10 @@ Accounting is automatically disabled when the file system the accounting file resides on runs out of space; it is enabled when space once again becomes available. .Sh RETURN VALUES -On error \-1 is returned. -The file must exist and the call may be exercised only by the superuser. +On success, zero is returned. +Otherwise, \-1 is returned and +.Va errno +is set to indicate the error. .Sh ERRORS .Fn acct will fail if one of the following is true: -- cgit v1.2.3