Module Name:    src
Committed By:   christos
Date:           Mon Aug  5 13:02:46 UTC 2024

Modified Files:
        src/share/man/man9: Makefile
Added Files:
        src/share/man/man9: acct_process.9

Log Message:
Add a man page for acct_process to be referenced from acct.5


To generate a diff of this commit:
cvs rdiff -u -r1.472 -r1.473 src/share/man/man9/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man9/acct_process.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/Makefile
diff -u src/share/man/man9/Makefile:1.472 src/share/man/man9/Makefile:1.473
--- src/share/man/man9/Makefile:1.472	Tue Jul 23 22:36:24 2024
+++ src/share/man/man9/Makefile	Mon Aug  5 09:02:46 2024
@@ -1,9 +1,9 @@
-#       $NetBSD: Makefile,v 1.472 2024/07/24 02:36:24 rin Exp $
+#       $NetBSD: Makefile,v 1.473 2024/08/05 13:02:46 christos Exp $
 
 #	Makefile for section 9 (kernel function and variable) manual pages.
 
 MAN=	accept_filter.9 accf_data.9 accf_http.9 acl.9 \
-	altq.9 arp.9 audio.9 autoconf.9 \
+	acct_process.9 altq.9 arp.9 audio.9 autoconf.9 \
 	bcdtobin.9 bcmp.9 bcopy.9 bintime_add.9 bluetooth.9 boothowto.9 bpf.9 \
 	buffercache.9 bufferio.9 bufq.9 bus_dma.9 bus_space.9 byteorder.9 \
 	bzero.9 \

Added files:

Index: src/share/man/man9/acct_process.9
diff -u /dev/null src/share/man/man9/acct_process.9:1.1
--- /dev/null	Mon Aug  5 09:02:46 2024
+++ src/share/man/man9/acct_process.9	Mon Aug  5 09:02:46 2024
@@ -0,0 +1,64 @@
+.\"	$NetBSD: acct_process.9,v 1.1 2024/08/05 13:02:46 christos Exp $
+.\"
+.\" Copyright (c) 2024 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" This code is derived from software contributed to The NetBSD Foundation
+.\" by Christos Zoulas
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd August 5, 2024
+.Dt ACCT_PROCESS 9
+.Os
+.Sh NAME
+.Nm acct_process 
+.Nd populate and write the process accounting record
+.Sh SYNOPSIS
+.In sys/acct.h
+.Ft int
+.Fn acct_process "struct lwp *l"
+.Sh DESCRIPTION
+The
+.Nm
+function is called when the process exits.
+If accounting is turned off, it returns immediately.
+If accounting is turned on via
+.Xr acct 2 ,
+then the 
+.Nm
+populates the accounting structure described in
+.Xr acct 5 ,
+then writes the accounting record to the file specified by
+.Xr acct 2 .
+.Sh RETURN VALUES
+.Nm
+returns
+.Dv 0
+on success and the same error codes as
+.Xr vn_rdwr 9
+on failure.
+All three functions return the computed checksum value.
+.Sh SEE ALSO
+.Xr acct 2 ,
+.Xr acct 5 ,
+.Xr vn_rdwr 9.

Reply via email to