OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man5 / acct.5
index 74358d9..817ad71 100644 (file)
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
-.\" Japanese Version Copyright (c) 2008  Akihiro MOTOKI
-.\"         all rights reserved.
-.\" Translated 2008-08-10, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.05
-.\" 
-.\"WORD:       accounting      アカウンティング
+.\"*******************************************************************
 .\"
-.TH ACCT 5 2008-06-15 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH ACCT 5 2008\-06\-15 Linux "Linux Programmer's Manual"
 .SH 名前
-.\"O acct \- process accounting file
 acct \- プロセス・アカウンティング・ファイル
-.\"O .SH SYNOPSIS
 .SH 書式
-.B #include <sys/acct.h>
-.\"O .SH DESCRIPTION
+\fB#include <sys/acct.h>\fP
 .SH 説明
-.\"O If the kernel is built with the process accounting option enabled
-.\"O .RB ( CONFIG_BSD_PROCESS_ACCT ),
-.\"O then calling
-.\"O .BR acct (2)
-.\"O starts process accounting, for example:
-カーネルがプロセス・アカウンティングのオプション
-.RB ( CONFIG_BSD_PROCESS_ACCT )
-を有効にして作成されていると、以下のように
-.BR acct (2)
-を呼び出すとプロセス・アカウンティングが開始される。
+カーネルがプロセス・アカウンティングのオプション (\fBCONFIG_BSD_PROCESS_ACCT\fP)  を有効にして作成されていると、以下のように
+\fBacct\fP(2)  を呼び出すとプロセス・アカウンティングが開始される。
 
 .in +4n
- acct("/var/log/pacct");
+acct("/var/log/pacct");
 .in
 
-.\"O When process accounting is enabled, the kernel writes a record
-.\"O to the accounting file as each process on the system terminates.
-.\"O This record contains information about the terminated process,
-.\"O and is defined in
-.\"O .I <sys/acct.h>
-.\"O as follows:
-プロセス・アカウンティングが有効になっていると、カーネルは
-システム上の各プロセスが終了するたびにアカウンティングファイルに
-レコードを書き込む。
-このレコードは、終了したプロセスに関する情報を保持するもので、
-.I <sys/acct.h>
-で以下のように定義されている。
+プロセス・アカウンティングが有効になっていると、カーネルは システム上の各プロセスが終了するたびにアカウンティングファイルに レコードを書き込む。
+このレコードは、終了したプロセスに関する情報を保持するもので、 \fI<sys/acct.h>\fP で以下のように定義されている。
 
 .in +4n
 .nf
@@ -90,7 +67,7 @@ struct acct {
                                (see wait(2)) */
     char      ac_comm[ACCT_COMM+1];
                             /* Command name (basename of last
-                               executed command; null-terminated) */
+                               executed command; null\-terminated) */
     char      ac_pad[\fIX\fP];    /* padding bytes */
 };
 
@@ -103,73 +80,21 @@ enum {          /* Bits that may be set in ac_flag field */
 .fi
 .in
 .PP
-.\"O The
-.\"O .I comp_t
-.\"O data type is a floating-point value consisting of a 3-bit, base-8 exponent,
-.\"O and a 13-bit mantissa.
-.\"O A value,
-.\"O .IR c ,
-.\"O of this type can be converted to a (long) integer as follows:
-データ型
-.I comp_t
-は浮動小数点値で、3 ビット幅の基数が 8 の指数部と 13 ビット幅の仮数部から
-構成される。
-.I comp_t
-型の値
-.I c
-は以下のようにして (long 型の) 整数に変換できる。
+データ型 \fIcomp_t\fP は浮動小数点値で、3 ビット幅の基数が 8 の指数部と 13 ビット幅の仮数部から 構成される。 \fIcomp_t\fP
+型の値 \fIc\fP は以下のようにして (long 型の) 整数に変換できる。
 .nf
 
     v = (c & 0x1fff) << (((c >> 13) & 0x7) * 3);
 .fi
 .PP
-.\"O The
-.\"O .IR ac_utime ,
-.\"O .IR ac_stime ,
-.\"O and
-.\"O .I ac_etime
-.\"O fields measure time in "clock ticks"; divide these values by
-.\"O .I sysconf(_SC_CLK_TCK)
-.\"O to convert them to seconds.
-フィールド
-.IR ac_utime ,
-.IR ac_stime ,
-.I ac_etime
-は "clock ticks" 単位で計測した時間である。
-これらの値を
-.I sysconf(_SC_CLK_TCK)
-で割ると、秒に変換できる。
-.\"O .SS Version 3 Accounting File Format
-.SS バージョン 3 のアカウンティングファイルのフォーマット
-.\"O Since kernel 2.6.8,
-.\"O an optional alternative version of the accounting file can be produced
-.\"O if the
-.\"O .B CONFIG_BSD_PROCESS_ACCT_V3
-.\"O option is set when building the kernel.
-.\"O With this option is set,
-.\"O the records written to the accounting file contain additional fields,
-.\"O and the width of
-.\"O .I c_uid
-.\"O and
-.\"O .I ac_gid
-.\"O fields is widened from 16 to 32 bits
-.\"O (in line with the increased size of UID and GIDs in Linux 2.4 and later).
-.\"O The records are defined as follows:
-カーネル 2.6.8 以降では、
-別のバージョンのアカウンティングファイルを生成することができ、
-これを使うにはカーネル構築時に
-.B CONFIG_BSD_PROCESS_ACCT_V3
-オプションが有効になっている必要がある。
-このオプションが設定されると、アカウンティングファイルに書き込まれる
-レコードにフィールドが追加される。
-また、フィールド
-.I c_uid
-と
-.I ac_gid
-の幅が 16 ビットから 32 ビットに拡張される
-(これは Linux 2.4 以降で UID と GID のサイズが増えているのに
-対応したものである)。
-このレコードは以下のように定義されている。
+フィールド \fIac_utime\fP, \fIac_stime\fP, \fIac_etime\fP は "clock ticks" 単位で計測した時間である。
+これらの値を \fIsysconf(_SC_CLK_TCK)\fP で割ると、秒に変換できる。
+.SS "バージョン 3 のアカウンティングファイルのフォーマット"
+カーネル 2.6.8 以降では、 別のバージョンのアカウンティングファイルを生成することができ、 これを使うにはカーネル構築時に
+\fBCONFIG_BSD_PROCESS_ACCT_V3\fP オプションが有効になっている必要がある。
+このオプションが設定されると、アカウンティングファイルに書き込まれる レコードにフィールドが追加される。 また、フィールド \fIc_uid\fP と
+\fIac_gid\fP の幅が 16 ビットから 32 ビットに拡張される (これは Linux 2.4 以降で UID と GID
+のサイズが増えているのに 対応したものである)。 このレコードは以下のように定義されている。
 
 .in +4n
 .nf
@@ -198,53 +123,19 @@ struct acct_v3 {
 
 .fi
 .in
-.\"O .SH VERSIONS
 .SH バージョン
-.\"O The
-.\"O .I acct_v3
-.\"O structure is defined in glibc since version 2.6.
-.I acct_v3
-構造体はバージョン 2.6 以降の glibc で定義されている。
-.\"O .SH CONFORMING TO
+\fIacct_v3\fP 構造体はバージョン 2.6 以降の glibc で定義されている。
 .SH 準拠
-.\"O Process accounting originated on BSD.
-.\"O Although it is present on most systems, it is not standardized,
-.\"O and the details vary somewhat between systems.
-プロセスアカウンティングは BSD 由来である。
-この機能はほとんどのシステムに存在するが、標準化されておらず、
+プロセスアカウンティングは BSD 由来である。 この機能はほとんどのシステムに存在するが、標準化されておらず、
 その詳細はシステムによりいくらか異なる。
-.\"O .SH NOTES
 .SH 注意
-.\"O Records in the accounting file are ordered by termination time of
-.\"O the process.
 アカウンティングファイルのレコードは、プロセスの終了時刻の順序となる。
 
-.\"O In kernels up to and including 2.6.9,
-.\"O a separate accounting record is written for each thread created using
-.\"O the NPTL threading library;
-.\"O since Linux 2.6.10,
-.\"O a single accounting record is written for the entire process
-.\"O on termination of the last thread in the process.
-バージョン 2.6.9 以前のカーネルでは、
-NPTL スレッドライブラリを使って作成されたスレッドでは
-スレッド毎に別々のアカウンティングレコードが書き込まれていた。
-Linux 2.6.10 以降では、プロセス内の最後のスレッドが終了すると、
+バージョン 2.6.9 以前のカーネルでは、 NPTL スレッドライブラリを使って作成されたスレッドでは
+スレッド毎に別々のアカウンティングレコードが書き込まれていた。 Linux 2.6.10 以降では、プロセス内の最後のスレッドが終了すると、
 プロセス全体についてのアカウンティングレコードが一つだけ書き込まれる。
 
-.\"O The
-.\"O .I proc/sys/kernel/acct
-.\"O file, described in
-.\"O .BR proc (5),
-.\"O defines settings that control the behavior of process accounting
-.\"O when disk space runs low.
-.I proc/sys/kernel/acct
-ファイル
-.RB ( proc (5)
-で説明されている) は、ディスク容量の残りが少なくなった際の
+\fIproc/sys/kernel/acct\fP ファイル (\fBproc\fP(5)  で説明されている) は、ディスク容量の残りが少なくなった際の
 プロセス・アカウンティングの動作を制御する設定を保持している。
-.\"O .SH SEE ALSO
 .SH 関連項目
-.BR lastcomm (1),
-.BR acct (2),
-.BR accton (8),
-.BR sa (8)
+\fBlastcomm\fP(1), \fBacct\fP(2), \fBaccton\fP(8), \fBsa\fP(8)