116 lines
3.9 KiB
Groff
116 lines
3.9 KiB
Groff
.\" 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
|
||
.\" %FreeBSD: src/share/man/man5/acct.5,v 1.10 2001/10/01 16:09:23 ru Exp %
|
||
.\"
|
||
.\" $FreeBSD$
|
||
.\"
|
||
.\" WORD: account ¥¢¥«¥¦¥ó¥È[acct.5]
|
||
.\" WORD: accounting file ¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¥Õ¥¡¥¤¥ë[acct.5]
|
||
.\" WORD: structure ¹½Â¤ÂÎ(C¸À¸ì¤Î)[C]
|
||
.\"
|
||
.Dd June 5, 1993
|
||
.Dt ACCT 5
|
||
.Os
|
||
.Sh ̾¾Î
|
||
.Nm acct
|
||
.Nd ¼Â¹Ô¥¢¥«¥¦¥ó¥È¥Õ¥¡¥¤¥ë
|
||
.Sh ½ñ¼°
|
||
.In sys/types.h
|
||
.In sys/acct.h
|
||
.Sh ²òÀâ
|
||
¥«¡¼¥Í¥ë¤Ï¡¢²¼µ¤Î
|
||
.Fa acct
|
||
¾ðÊó¹½Â¤¤ò¡¢Á´¥×¥í¥»¥¹¤ËÂФ·¤Æ´ÉÍý¤·¤Þ¤¹¡£
|
||
¥×¥í¥»¥¹¤¬½ªÎ»¤¹¤ë¤È¡¢¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¤¬Í¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
|
||
¥«¡¼¥Í¥ë¤Ï
|
||
.Xr acct 2
|
||
´Ø¿ô¸Æ¤Ó½Ð¤·¤ò¹Ô¤¤¡¢¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¥Õ¥¡¥¤¥ë¤ËµÏ¿¤òÄɲä·¤Þ¤¹¡£
|
||
.Bd -literal
|
||
/*
|
||
* ¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¹½Â¤ÂÎ; ¤³¤ì¤é¤Ï¡¢´ðÄìÃÍ 8 ¤Î 3 ¥Ó¥Ã¥È»Ø¿ôÉô¤ª¤è¤Ó
|
||
* 13 ¥Ó¥Ã¥È¾®¿ôÉô¤Î ``ÉâÆ°¾®¿ôÅÀ¿ô'' ¤Ç¤¢¤ë comp_t ·¿¤ò»ÈÍѤ·¤Þ¤¹¡£
|
||
* ñ°Ì¤Ï 1/AHZ ÉäǤ¹¡£
|
||
*/
|
||
typedef u_short comp_t;
|
||
|
||
#define AC_COMM_LEN 16
|
||
struct acct {
|
||
char ac_comm[AC_COMM_LEN]; /* ¥³¥Þ¥ó¥É̾ */
|
||
comp_t ac_utime; /* ¥æ¡¼¥¶»þ´Ö */
|
||
comp_t ac_stime; /* ¥·¥¹¥Æ¥à»þ´Ö */
|
||
comp_t ac_etime; /* ·Ð²á»þ´Ö */
|
||
time_t ac_btime; /* ³«»Ï»þ¹ï */
|
||
uid_t ac_uid; /* ¥æ¡¼¥¶ ID */
|
||
gid_t ac_gid; /* ¥°¥ë¡¼¥× ID */
|
||
short ac_mem; /* Ê¿¶Ñ¥á¥â¥ê»ÈÍÑÎÌ */
|
||
comp_t ac_io; /* Æþ½ÐÎÏ¥Ö¥í¥Ã¥¯¿ô */
|
||
dev_t ac_tty; /* À©¸æ tty */
|
||
#define AFORK 0x01 /* fork ¤·¤¿¤¬ exec ¤µ¤ì¤Æ¤¤¤Ê¤¤ */
|
||
#define ASU 0x02 /* ¥¹¡¼¥Ñ¥æ¡¼¥¶¸¢¸Â¤ò»ÈÍѤ·¤¿ */
|
||
#define ACOMPAT 0x04 /* ¸ß´¹¥â¡¼¥É¤ò»ÈÍѤ·¤¿ */
|
||
#define ACORE 0x08 /* ¥³¥¢¥À¥ó¥×¤·¤¿ */
|
||
#define AXSIG 0x10 /* ¥·¥¯¥Ê¥ë¤Ë¤è¤ê kill ¤µ¤ì¤¿ */
|
||
char ac_flag; /* ¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¥Õ¥é¥° */
|
||
};
|
||
|
||
/*
|
||
* 1/AHZ ¤ÎγÅ٤ǡ¢¥Ç¡¼¥¿¤Ï comp_t ¥Õ¥£¡¼¥ë¥É¤Ë¥¨¥ó¥³¡¼¥É¤µ¤ì¤Þ¤¹¡£
|
||
* ɬ¤º¤·¤â¼þÇÈ¿ô¤ÈƱ°ì¤È¤Ê¤ë¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡£
|
||
*/
|
||
#define AHZ 64
|
||
.Ed
|
||
.Pp
|
||
½ªÎ»¤·¤¿¥×¥í¥»¥¹¤¬
|
||
.Xr execve 2
|
||
¤Ë¤è¤êÀ¸À®¤µ¤ì¤¿¤â¤Î¤À¤Ã¤¿¾ì¹ç¡¢
|
||
¼Â¹Ô¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤Î¥Õ¥¡¥¤¥ë̾ (ºÇÂç 10 ʸ»ú¤Þ¤Ç) ¤¬
|
||
.Fa ac_comm
|
||
¥Õ¥£¡¼¥ë¥É¤ËÊݸ¤µ¤ì¡¢¤½¤Î¾õÂÖ¤Ï
|
||
.Fa ac_flag
|
||
¤Î¼¡¤Î¥Õ¥é¥°¤Î 1 ¤Ä°Ê¾å¤òÀßÄꤹ¤ë¤³¤È¤Ë¤è¤êÊݸ¤µ¤ì¤Þ¤¹:
|
||
.Dv AFORK ,
|
||
.Dv ACOMPAT ,
|
||
.Dv ACORE ,
|
||
.Dv ASIG
|
||
¡£
|
||
.Dv ASU
|
||
¤Ï¤â¤Ï¤ä¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£
|
||
.Sh ´ØÏ¢¹àÌÜ
|
||
.Xr acct 2 ,
|
||
.Xr execve 2 ,
|
||
.Xr sa 8
|
||
.Sh Îò»Ë
|
||
.Nm
|
||
¥Õ¥¡¥¤¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï
|
||
.At v7
|
||
¤«¤éÅо줷¤Þ¤·¤¿¡£
|