Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-doc
Path: blob/main/documentation/manual-pages/ja/man5/acct.5
18093 views
.\" 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
�����о줷�ޤ�����