From owner-man-jp-reviewer@jp.freebsd.org  Wed Apr 29 20:23:08 1998
Received: by jaz.jp.freebsd.org (8.8.8+3.0Wbeta7/8.7.3) id UAA11797
	Wed, 29 Apr 1998 20:23:08 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.8+3.0Wbeta7/8.7.3) with ESMTP id UAA11792
	for <man-jp-reviewer@jp.freebsd.org>; Wed, 29 Apr 1998 20:23:06 +0900 (JST)
Received: from localhost (ppp126.yk.rim.or.jp [202.247.134.126]) by mail.yk.rim.or.jp (8.8.5/3.4Wbeta6-rim1.1) with ESMTP id UAA15841; Wed, 29 Apr 1998 20:23:04 +0900 (JST)
To: man-jp-reviewer@jp.freebsd.org
X-Mailer: Mew version 1.92 on Emacs 19.28 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <19980429202250V.k-horik@yk.rim.or.jp>
Date: Wed, 29 Apr 1998 20:22:50 +0900
From: Kazuo Horikawa <k-horik@yk.rim.or.jp>
X-Dispatcher: imput version 971024
Lines: 113
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=24]
X-Sequence: man-jp-reviewer 75
Subject: [man-jp-reviewer 75] acct.5
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org

 acct.5 $B$G$9!#(B
 {$B>.?tIt(B} x 8 ^ {$B;X?tIt(B} $B$,$b$7$+$9$k$HJ,$+$j$K$/$$$+$b!D(B

.\" Copyright (c) 1991, 1993
.\"	The Regents of the University of California.  All rights reserved.
.\"
.\" 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.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed by the University of
.\"	California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.
.\"
.\"     @(#)acct.5	8.1 (Berkeley) 6/5/93
.\" jpman %Id: acct.5,v 0.0 1998/04/24 15:56:26 horikawa Stab %
.\"	$Id: acct.5,v 1.1.1.1.8.3 1998/03/07 09:07:02 jkh Exp $
.\"
.Dd June 5, 1993
.Dt ACCT 5
.Os
.Sh $BL>>N(B
.Nm acct
.Nd $B<B9T%"%+%&%s%H%U%!%$%k(B
.Sh $B=q<0(B
.Fd #include <sys/types.h>
.Fd #include <sys/acct.h>
.Sh $B2r@b(B
$B%+!<%M%k$O!"2<5-$N(B
.Fa acct
$B>pJs9=B$$r!"A4%W%m%;%9$KBP$7$F4IM}$7$^$9!#(B
$B%W%m%;%9$,=*N;$9$k$H!"%"%+%&%s%F%#%s%0$,M-8z$K$J$C$F$$$k>l9g$K$O!"(B
$B%+!<%M%k$O(B
.Xr acct 2
$B4X?t8F$S=P$7$r9T$$!"%"%+%&%s%F%#%s%0%U%!%$%k$K5-O?$rDI2C$7$^$9!#(B
.Bd -literal
/*
 * $B%"%+%&%s%F%#%s%09=B$(B; $B$3$l$i$O!"4pDlCM(B 8 $B$N(B 3 $B%S%C%H;X?tIt$*$h$S(B
 * 13 $B%S%C%H>.?tIt$N(B ``$BIbF0>.?tE@?t(B'' $B$G$"$k(B comp_t $B7?$r;HMQ$7$^$9!#(B
 * $BC10L$O(B 1/AHZ $BIC$G$9!#(B
 */
typedef u_short comp_t;

#define AC_COMM_LEN 16
struct acct {
	char	ac_comm[AC_COMM_LEN];  /* $B%3%^%s%IL>(B */
	comp_t	ac_utime;	/* $B%f!<%6;~4V(B */
	comp_t	ac_stime;	/* $B%7%9%F%`;~4V(B */
	comp_t	ac_etime;	/* $B7P2a;~4V(B */
	time_t	ac_btime;	/* $B3+;O;~9o(B */
	uid_t	ac_uid;		/* $B%f!<%6(B ID */
	gid_t	ac_gid;		/* $B%0%k!<%W(B ID */
	short	ac_mem;		/* $BJ?6Q%a%b%j;HMQNL(B */
	comp_t	ac_io;		/* $BF~=PNO%V%m%C%/?t(B */
	dev_t	ac_tty;		/* $B@)8f(B tty */
#define	AFORK	0x01		/* fork $B$7$?$,(B exec $B$5$l$F$$$J$$(B */
#define	ASU	0x02		/* $B%9!<%Q%f!<%68"8B$r;HMQ$7$?(B */
#define	ACOMPAT	0x04		/* $B8_49%b!<%I$r;HMQ$7$?(B */
#define	ACORE	0x08		/* $B%3%"%@%s%W$7$?(B */
#define	AXSIG	0x10		/* $B%7%/%J%k$K$h$j(B kill $B$5$l$?(B */
	char	ac_flag;	/* $B%"%+%&%s%F%#%s%0%U%i%0(B */
};

/*
 * 1/AHZ $B$NN3EY$G!"%G!<%?$O(B comp_t $B%U%#!<%k%I$K%(%s%3!<%I$5$l$^$9!#(B
 * $BI,$:$7$b<~GH?t$HF10l$H$J$k$H$O8B$j$^$;$s!#(B
 */
#define	AHZ	64
.Ed
.Pp
$B=*N;$7$?%W%m%;%9$,(B
.Xr execve 2
$B$K$h$j@8@.$5$l$?$b$N$@$C$?>l9g!"(B
$B<B9T$5$l$?%U%!%$%k(B ($B$=$N$&$A:GBg(B 10 $BJ8;z(B) $B$,(B
.Fa ac_comm
$B%U%#!<%k%I$KJ]B8$5$l!"$=$N>uBV$O(B
.Fa ac_flag
$B$N<!$N%U%i%0$N(B 1 $B$D0J>e$r@_Dj$9$k$3$H$K$h$jJ]B8$5$l$^$9(B:
.Dv AFORK ,
.Dv ASU ,
.Dv ACOMPAT ,
.Dv ACORE ,
.Dv ASIG
$B!#(B
.Sh $B4XO"9`L\(B
.Xr acct 2 ,
.Xr execve 2 ,
.Xr sa 8
.Sh $BNr;K(B
.Nm
$B%U%!%$%k%U%)!<%^%C%H$O(B
.At v7
$B$+$iEP>l$7$^$7$?!#(B
