1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
|
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright (c) 1993 Michael Haardt
.\" (michael@moria.de),
.\" Fri Apr 2 11:32:09 MET DST 1993
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
.\" USA.
.\"
.\" Modified 1993-07-22 by Rik Faith <faith@cs.unc.edu>
.\" Modified 1993-08-10 by Alan Cox <iiitac@pyramid.swansea.ac.uk>
.\" Modified 1998-11-04 by Tigran Aivazian <tigran@sco.com>
.\" Modified 2004-05-27, 2004-06-17, 2004-06-23 by Michael Kerrisk
.\"
.\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
.\" all rights reserved.
.\" Translated Sat Feb 22 19:55:40 JST 1997
.\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\" Modified Mon Nov 30 23:37:38 JST 1998
.\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\" Updated and Modified Sat Jun 2 10:52:12 JST 2001
.\" by Yuichi SATO <ysato@h4.dion.ne.jp>
.\" Updated and Modified Mon Oct 15 20:07:44 JST 2001 by Yuichi SATO
.\" Updated and Modified Tue Dec 28 06:05:40 JST 2004
.\" by Yuichi SATO <ysato444@yahoo.co.jp>
.\"
.\"WORD: account
.\"WORD: process ץ
.\"
.TH ACCT 2 2007-07-26 "Linux" "Linux Programmer's Manual"
.SH ̾
acct \- ץȤΥȥդڤ괹
.SH
.ad l
.nf
.B #include <unistd.h>
.sp
.BI "int acct(const char *" filename );
.fi
.ad b
.sp
.in -4n
glibc εǽޥ
.RB ( feature_test_macros (7)
):
.in
.sp
.BR acct ():
_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
.SH
¸ߤե̾ȤƸƤӽФ줿顢 (account)
ˤ졢λץεϿ \fIfilename\fP ɲä롣
NULL ȤƸƤӽФ줿饢Ȥդˤ롣
.SH ֤
0 ֤롣顼ξ \-1 ֤졢
.I errno
Ŭڤꤵ롣
.SH 顼
.TP
.B EACCES
ꤷեؤνߵĤʤߤݤ줿
.TP
.B EACCES
ꤷեؤνߵĤʤߤݤ줿
ޤ
.I filename
Υǥ쥯ȥʬβ줫Υǥ쥯ȥ˸Ĥʤݤ줿
.RB ( path_resolution (7)
⻲Ȥ뤳)
ޤ
.I filename
̾ (regular) ΥեǤʤ
.TP
.B EFAULT
Ǥ륢ɥ쥹֤γ
.I filename
ؤƤ롣
.TP
.B EIO
.I filename
ؤνߤ˥顼ȯ
.TP
.B EISDIR
.I filename
ǥ쥯ȥǤ롣
.TP
.B ELOOP
.I filename
μΤˤɤ夯ޤǤΥܥåο¿롣
.TP
.B ENAMETOOLONG
.I filename
Ĺ롣
.TP
.B ENFILE
ץ줿եƥ¤ã
.TP
.B ENOENT
ꤵ줿ե뤬¸ߤʤ
.TP
.B ENOMEM
꤬ʤ
.TP
.B ENOSYS
ͥѥ뤷 BSD ץȤͭˤʤäƤʤ
εǽϥͥΥե
.B CONFIG_BSD_PROCESS_ACCT
ѥˤä椵롣
.TP
.B ENOTDIR
.I filename
ǥǥ쥯ȥꤷưƤǤ
ºݤϥǥ쥯ȥǤʤ
.TP
.B EPERM
ƤӽФץˤϥץȤͭˤΤ˽ʬøʤ
Linux Ǥ
.B CAP_SYS_PACCT
ѥӥƥ (capability) ɬפǤ롣
.TP
.B EROFS
ɤ߹ߤΥե륷ƥΥե
.I filename
ȤƤ롣
.TP
.B EUSERS
Ѳǽʥե빽¤Τʤ꤬ʤ
.SH
SVr4, 4.3BSD (POSIX ǤϤʤ)
.\" SVr4 ˤ EBUSY 顼ҤƤ뤬EISDIR, ENOSYS Ϥʤ
.\" AIX HPUX ˤϡEBUSY ˤĤơ֤Ǥ˥ȤͭˤƤˡ
.\" ͭˤ褦ȤפȤҤ롣
.\" Solaris ˤָߡȤ˻ȤƤե
.\" ƱեǥȤͭˤ褦ȤפȤҤƱǤ롣
.SH
å (crash) ˼¹äץΥȤʤ
äˡλʤץबȤ뤳ȤϤʤ
.SH Ϣ
.BR acct (5)
|