126 lines
4.4 KiB
Groff
126 lines
4.4 KiB
Groff
.\" Copyright (c) 1980, 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.2 8.1 (Berkeley) 6/4/93
|
|
.\" %FreeBSD: src/lib/libc/sys/acct.2,v 1.19 2004/04/16 22:53:51 brueffer Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd April 17, 2004
|
|
.Dt ACCT 2
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm acct
|
|
.Nd ¥×¥í¥»¥¹¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¤ò͸ú¤Þ¤¿¤Ï̵¸ú¤Ë¤¹¤ë
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libc
|
|
.Sh ½ñ¼°
|
|
.In unistd.h
|
|
.Ft int
|
|
.Fn acct "const char *file"
|
|
.Sh ²òÀâ
|
|
.Fn acct
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢¥·¥¹¥Æ¥à¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¥ì¥³¡¼¥É¤Î¼ý½¸¤ò͸ú¤Þ¤¿¤Ï
|
|
̵¸ú¤Ë¤·¤Þ¤¹¡£°ú¿ô
|
|
.Fa file
|
|
¤¬ NULL ¥Ý¥¤¥ó¥¿¤Ç¤¢¤ë¾ì¹ç¡¢¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¤Ï̵¸ú¤Ë¤µ¤ì¤Þ¤¹¡£
|
|
.Fa file
|
|
¤¬
|
|
.Em ´û¸
|
|
¤Î¥Ñ¥¹Ì¾ (¥Ì¥ëʸ»ú¤Ç½ª¤ï¤ë) ¤Î¾ì¹ç¡¢¥ì¥³¡¼¥É¼ý½¸¤¬Í¸ú¤Ë¤Ê¤ê¡¢
|
|
³«»Ï¤µ¤ì¤ÆÄ̾ï¤Î¾õÂ֤ǽªÎ»¤·¤¿³Æ¥×¥í¥»¥¹¤Ë¤Ä¤¤¤Æ¤Î¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¥ì¥³¡¼¥É¤¬
|
|
.Fa file
|
|
¤ËÄɲ䵤ì¤Þ¤¹¡£
|
|
°Û¾ï¤Ê½ªÎ»¾õÂ֤Ȥϡ¢ºÆµ¯Æ°¤Þ¤¿¤Ï¤½¤Î¾¤ÎÃ×̿Ū¤Ê¥·¥¹¥Æ¥à¤ÎÌäÂê¤Ç¤¹¡£
|
|
·è¤·¤Æ½ªÎ»¤·¤Ê¤¤¥×¥í¥»¥¹ÍѤΥ쥳¡¼¥É¤Ï
|
|
.Fn acct
|
|
¤Ë¤è¤Ã¤Æ¤ÏºîÀ®¤Ç¤¤Þ¤»¤ó¡£
|
|
.Pp
|
|
.Fn acct
|
|
¤¬»ÈÍѤ¹¤ë¥ì¥³¡¼¥É¹½Â¤ÂΤξܺ٤ˤĤ¤¤Æ¤Ï¡¢
|
|
.In sys/acct.h
|
|
¤ª¤è¤Ó
|
|
.Xr acct 5
|
|
¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
|
|
.Pp
|
|
¤³¤Î¸Æ¤Ó½Ð¤·¤Ï¥¹¡¼¥Ñ¥æ¡¼¥¶¤Ë¤À¤±µö²Ä¤µ¤ì¤Æ¤Þ¤¹¡£
|
|
.Sh Ãí
|
|
¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¶õ¤ÍÆÎ̤¬
|
|
¾¯¤Ê¤¯¤Ê¤ë¤È¡¢¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¤Ï¼«Æ°Åª¤Ë̵¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
|
|
¶õ¤ÍÆÎ̤¬Áý¤¨¤ÆºÆ¤ÓÍøÍѤǤ¤ë¤è¤¦¤Ë¤Ê¤ë¤È͸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
|
|
¤³¤Î¿¶Éñ¤¤¤òÀ©¸æ¤¹¤ëÃͤϡ¢°Ê²¼¤Î
|
|
.Xr sysctl 8
|
|
ÊÑ¿ô¤ò»ÈÍѤ·¤ÆÊѹ¹¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹:
|
|
.Bl -tag -width ".Va kern.acct_chkfreq"
|
|
.It Va kern.acct_chkfreq
|
|
¶õ¤¥Ç¥£¥¹¥¯Îΰ褬¥Á¥§¥Ã¥¯¤µ¤ì¤ë¤Ù¤ÉÑÅÙ¤ò (ÉÃñ°Ì¤Ç) »ØÄꤷ¤Þ¤¹¡£
|
|
.It Va kern.acct_resume
|
|
¥×¥í¥»¥¹¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¤òºÆ³«¤¹¤ë¡¢¶õ¤¥Ç¥£¥¹¥¯Îΰè¤Î¥Ñ¡¼¥»¥ó¥Æ¡¼¥¸¤Ç¤¹¡£
|
|
.It Va kern.acct_suspend
|
|
¥×¥í¥»¥¹¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°¤òÃæÃǤ¹¤ë¡¢¶õ¤¥Ç¥£¥¹¥¯Îΰè¤Î¥Ñ¡¼¥»¥ó¥Æ¡¼¥¸¤Ç¤¹¡£
|
|
.El
|
|
.Sh Ìá¤êÃÍ
|
|
¥¨¥é¡¼¤Î¾ì¹ç¤Ï -1 ¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£
|
|
¥Õ¥¡¥¤¥ë¤Ï¸ºß¤·¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¡¢¸Æ¤Ó½Ð¤·¤Ï¥¹¡¼¥Ñ¥æ¡¼¥¶¤À¤±¤¬¤Ç¤¤Þ¤¹¡£
|
|
.Sh ¥¨¥é¡¼
|
|
.Fn acct
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¼¡¤Î¾ì¹ç¤Ë½èÍý¤ò¼ºÇÔ¤·¤Þ¤¹:
|
|
.Bl -tag -width Er
|
|
.It Bq Er EPERM
|
|
¥¹¡¼¥Ñ¥æ¡¼¥¶°Ê³°¤Î¥æ¡¼¥¶¤Ë¤è¤Ã¤Æ¸Æ¤Ó½Ð¤µ¤ì¤Þ¤·¤¿¡£
|
|
.It Bq Er ENOTDIR
|
|
¥Ñ¥¹¤Î¹½À®Í×ÁÇÃæ¤Ë¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Î¤â¤Î¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ENAMETOOLONG
|
|
¥Ñ¥¹Ì¾¤Î¹½À®Í×ÁǤ¬ 255 ʸ»ú¤ò±Û¤¨¤Æ¤¤¤ë¤«¡¢
|
|
¤Þ¤¿¤Ï¥Ñ¥¹Ì¾Á´ÂΤ¬ 1023 ʸ»ú¤ò±Û¤¨¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ENOENT
|
|
»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó¡£
|
|
.It Bq Er EACCES
|
|
¥Ñ¥¹¤ÎÀèÆ¬¹½À®Í×ÁǤˤĤ¤¤Æ¸¡º÷¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤¬µñÈݤµ¤ì¤Æ¤¤¤ë¤«¡¢
|
|
¤Þ¤¿¤Ï¥Ñ¥¹Ì¾¤¬Ä̾ï¤Î¥Õ¥¡¥¤¥ë¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
|
|
.It Bq Er ELOOP
|
|
¥Ñ¥¹Ì¾¤òÊÑ´¹¤¹¤ë¤È¤¤Ë¸¡½Ð¤µ¤ì¤¿¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤¬Â¿¤¹¤®¤Þ¤¹¡£
|
|
.It Bq Er EROFS
|
|
»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤ÏÆÉ¼è¤êÀìÍÑ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë¤¢¤ê¤Þ¤¹¡£
|
|
.It Bq Er EFAULT
|
|
.Fa file
|
|
°ú¿ô¤¬¡¢¥×¥í¥»¥¹¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¥¢¥É¥ì¥¹¶õ´Ö¤ÎÈϰϳ°¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er EIO
|
|
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÆÉ¤ß½ñ¤¤·¤Æ¤¤¤ë´Ö¤ËÆþ½ÐÎÏ¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr acct 5 ,
|
|
.Xr accton 8 ,
|
|
.Xr sa 8
|
|
.Sh Îò»Ë
|
|
.Fn acct
|
|
´Ø¿ô¤Ï
|
|
.At v7
|
|
¤ÇÅо줷¤Þ¤·¤¿¡£
|