OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man2 / acct.2
1 .\" Copyright (c) 1993 Michael Haardt
2 .\" (michael@moria.de),
3 .\" Fri Apr  2 11:32:09 MET DST 1993
4 .\"
5 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
6 .\" This is free documentation; you can redistribute it and/or
7 .\" modify it under the terms of the GNU General Public License as
8 .\" published by the Free Software Foundation; either version 2 of
9 .\" the License, or (at your option) any later version.
10 .\"
11 .\" The GNU General Public License's references to "object code"
12 .\" and "executables" are to be interpreted as the output of any
13 .\" document formatting or typesetting system, including
14 .\" intermediate and printed output.
15 .\"
16 .\" This manual is distributed in the hope that it will be useful,
17 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
18 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 .\" GNU General Public License for more details.
20 .\"
21 .\" You should have received a copy of the GNU General Public
22 .\" License along with this manual; if not, see
23 .\" <http://www.gnu.org/licenses/>.
24 .\" %%%LICENSE_END
25 .\"
26 .\" Modified 1993-07-22 by Rik Faith <faith@cs.unc.edu>
27 .\" Modified 1993-08-10 by Alan Cox <iiitac@pyramid.swansea.ac.uk>
28 .\" Modified 1998-11-04 by Tigran Aivazian <tigran@sco.com>
29 .\" Modified 2004-05-27, 2004-06-17, 2004-06-23 by Michael Kerrisk
30 .\"
31 .\"*******************************************************************
32 .\"
33 .\" This file was generated with po4a. Translate the source file.
34 .\"
35 .\"*******************************************************************
36 .TH ACCT 2 2008\-06\-16 Linux "Linux Programmer's Manual"
37 .SH 名前
38 acct \- プロセス・アカウントのオンとオフを切り換える
39 .SH 書式
40 .ad l
41 .nf
42 \fB#include <unistd.h>\fP
43 .sp
44 \fBint acct(const char *\fP\fIfilename\fP\fB);\fP
45 .fi
46 .ad b
47 .sp
48 .in -4n
49 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
50 .in
51 .sp
52 \fBacct\fP(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
53 .SH 説明
54 \fBacct\fP()  システムコールは、プロセス・アカウントの有効・無効を切り替える。 既存のファイルの名前を引き数に指定して呼び出されたら、
55 アカウント (account) が有効になり、 終了したプロセスの記録が \fIfilename\fP に追記される。 NULL
56 を引き数として呼び出されたらアカウントをオフにする。
57 .SH 返り値
58 成功した場合は 0 が返される。エラーの場合は \-1 が返され、 \fIerrno\fP が適切に設定される。
59 .SH エラー
60 .TP 
61 \fBEACCES\fP
62 指定したファイルへの書き込み許可がなく、書き込みが拒否された。 または \fIfilename\fP
63 のディレクトリ部分の何れかのディレクトリに検索許可がなく拒否された (\fBpath_resolution\fP(7)  も参照すること)。 または
64 \fIfilename\fP が通常 (regular) のファイルでない。
65 .TP 
66 \fBEFAULT\fP
67 アクセスできるアドレス空間の外を \fIfilename\fP が指している。
68 .TP 
69 \fBEIO\fP
70 \fIfilename\fP への書き込みにエラーが発生した。
71 .TP 
72 \fBEISDIR\fP
73 \fIfilename\fP がディレクトリである。
74 .TP 
75 \fBELOOP\fP
76 \fIfilename\fP の実体にたどり着くまでのシンボリックリンクの数が多すぎる。
77 .TP 
78 \fBENAMETOOLONG\fP
79 \fIfilename\fP が長すぎる。
80 .TP 
81 \fBENFILE\fP
82 オープンされたファイルの総数がシステム制限に達した。
83 .TP 
84 \fBENOENT\fP
85 指定されたファイルが存在しない。
86 .TP 
87 \fBENOMEM\fP
88 メモリ不足。
89 .TP 
90 \fBENOSYS\fP
91 カーネルをコンパイルした時に BSD プロセス・アカウントが有効になっていない。 この機能はカーネルのコンフィグの
92 \fBCONFIG_BSD_PROCESS_ACCT\fP パラメータによって制御される。
93 .TP 
94 \fBENOTDIR\fP
95 \fIfilename\fP の中でディレクトリして扱われている要素が、 実際はディレクトリでない。
96 .TP 
97 \fBEPERM\fP
98 呼び出したプロセスにはプロセス・アカウントを有効にするのに十分な特権がない。 Linux では \fBCAP_SYS_PACCT\fP ケーパビリティ
99 (capability) が必要である。
100 .TP 
101 \fBEROFS\fP
102 読み込みだけのファイルシステム上のファイルを \fIfilename\fP が参照している。
103 .TP 
104 \fBEUSERS\fP
105 使用可能なファイル構造体がないか、メモリが足りない。
106 .SH 準拠
107 .\" SVr4 documents an EBUSY error condition, but no EISDIR or ENOSYS.
108 .\" Also AIX and HP-UX document EBUSY (attempt is made
109 .\" to enable accounting when it is already enabled), as does Solaris
110 .\" (attempt is made to enable accounting using the same file that is
111 .\" currently being used).
112 SVr4, 4.3BSD (POSIX ではない)。
113 .SH 注意
114 システムがクラッシュした時に実行中だったプログラムのアカウントは生成されない。 特に、終了しないプログラムがアカウントされることはない。
115
116 アカウント用ファイルに書き込まれるレコードの構造体については \fBacct\fP(5)  に説明がある。
117 .SH 関連項目
118 \fBacct\fP(5)
119 .SH この文書について
120 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
121 である。プロジェクトの説明とバグ報告に関する情報は
122 http://www.kernel.org/doc/man\-pages/ に書かれている。