Note that this system call now creates kernel thread.

This commit is contained in:
enami 2000-03-10 01:34:35 +00:00
parent 4c043eb094
commit 6e362668c4

View File

@ -1,4 +1,4 @@
.\" $NetBSD: acct.2,v 1.9 1999/12/02 21:42:36 kleink Exp $ .\" $NetBSD: acct.2,v 1.10 2000/03/10 01:34:35 enami Exp $
.\" .\"
.\" Copyright (c) 1980, 1991, 1993 .\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved. .\" The Regents of the University of California. All rights reserved.
@ -79,6 +79,10 @@ This call is permitted only to the super-user.
Accounting is automatically disabled when the file system the Accounting is automatically disabled when the file system the
accounting file resides on runs out of space; it is enabled when accounting file resides on runs out of space; it is enabled when
space once again becomes available. space once again becomes available.
For this purpose,
.Fn acct
creates a kernel thread called
.Dq acctwatch .
.Sh RETURN VALUES .Sh RETURN VALUES
On error -1 is returned. On error -1 is returned.
The file must exist and the call may be exercised only by the super-user. The file must exist and the call may be exercised only by the super-user.
@ -111,7 +115,16 @@ points outside the process's allocated address space.
.It Bq Er EIO .It Bq Er EIO
An I/O error occurred while reading from or writing to the file system. An I/O error occurred while reading from or writing to the file system.
.El .El
Also,
.Fn acct
fails if failed to create kernel thread described above.
See
.Xr fork 2
for
.Va errno
value.
.Sh SEE ALSO .Sh SEE ALSO
.Xr fork 2 ,
.Xr acct 5 , .Xr acct 5 ,
.Xr sa 8 .Xr sa 8
.Sh HISTORY .Sh HISTORY