OSDN Git Service

Update draft for LDP 3.67
[linuxjm/LDP_man-pages.git] / draft / man2 / getrusage.2
index 14d6044..6fa2429 100644 (file)
@@ -1,8 +1,7 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" Copyright (c) 1992 Drew Eckhardt, March 28, 1992
 .\" and Copyright (c) 2002 Michael Kerrisk
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
@@ -22,6 +21,7 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" 2004-11-16 -- mtk: the getrlimit.2 page, which formerly included
 .\" coverage of getrusage(2), has been split, so that the latter is
 .\"    when SIGCHLD is being ignored is fixed in 2.6.9.
 .\" 2008-02-22, Sripathi Kodi <sripathik@in.ibm.com>: Document RUSAGE_THREAD
 .\" 2008-05-25, mtk, clarify RUSAGE_CHILDREN + other clean-ups.
+.\" 2010-05-24, Mark Hills <mark@pogo.org.uk>: Description of fields,
+.\"     document ru_maxrss
+.\" 2010-05-24, mtk, enhanced description of various fields
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
 .\"         all rights reserved.
 .\" Updated and Modified 2004-12-30, Yuichi SATO
 .\" Updated and Modified 2005-09-06, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
 .\" Updated 2008-11-10, Akihiro MOTOKI, LDP v3.11
+.\" Updated 2013-05-06, Akihiro MOTOKI <amotoki@gmail.com>
 .\"
-.TH GETRUSAGE 2 2009-08-25 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O getrusage \- get resource usage
-getrusage \- »ñ¸»¤Î»ÈÍÑÎ̤ò¼èÆÀ¤¹¤ë
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
-.B #include <sys/time.h>
+.TH GETRUSAGE 2 2014\-05\-10 Linux "Linux Programmer's Manual"
+.SH 名前
+getrusage \- 資源の使用量を取得する
+.SH 書式
+\fB#include <sys/time.h>\fP
 .br
-.B #include <sys/resource.h>
+\fB#include <sys/resource.h>\fP
 .sp
-.BI "int getrusage(int " who ", struct rusage *" usage );
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
+\fBint getrusage(int \fP\fIwho\fP\fB, struct rusage *\fP\fIusage\fP\fB);\fP
+.SH 説明
 .PP
-.\"O .BR getrusage ()
-.\"O returns resource usage measures for
-.\"O .IR who ,
-.\"O which can be one of the following:
-.BR getrusage ()
-¤Ï
-.I who
-¤Î»ñ¸» (resource) ¤Î»ÈÍÑÎ̤òÊÖ¤¹¡£
-.I who
-¤Ë¤Ï°Ê²¼¤Î¤¤¤º¤ì¤«°ì¤Ä¤ò»ØÄê¤Ç¤­¤ë¡£
-.TP
-.B RUSAGE_SELF
-.\"O Return resource usage statistics for the calling process,
-.\"O which is the sum of resources used by all threads in the process.
-¸Æ¤Ó½Ð¤·¤¿¥×¥í¥»¥¹¤Î»ñ¸»»ÈÍÑÎÌ¡¢
-¤½¤Î¥×¥í¥»¥¹Æâ¤ÎÁ´¥¹¥ì¥Ã¥É¤¬»ÈÍѤ·¤Æ¤¤¤ë»ñ¸»¤Î¹ç·×¤òÊÖ¤¹¡£
-
-Á°¼Ô¤Ï¸Æ¤Ó½Ð¤·¤¿¥×¥í¥»¥¹¤Î¥ê¥½¡¼¥¹»ÈÍÑÎ̤òÍ׵ᤷ¡¢
-¸å¼Ô¤Ï¸Æ¤Ó½Ð¤·¤¿¥×¥í¥»¥¹¤Î»Ò¶¡¤Î¤¦¤Á
-½ªÎ»¤·¤ÆÂÔ¤Á¾õÂ֤ˤ¢¤ë¥×¥í¥»¥¹¤Î»ÈÍÑÎ̤òÍ׵᤹¤ë¡£
-.TP
-.B RUSAGE_CHILDREN
-.\"O Return resource usage statistics for all children of the
-.\"O calling process that have terminated and been waited for.
-.\"O These statistics will include the resources used by grandchildren,
-.\"O and further removed descendants,
-.\"O if all of the intervening descendants waited on their terminated children.
-.\"Omotoki: Ìõ¤Ë¼«¿®¤Ê¤· (Æäˠif all of .... °Ê¹ß¤¬º£¤¤¤ÁÍý²ò¤Ç¤­¤º)
-¸Æ¤Ó½Ð¤·¤¿¥×¥í¥»¥¹¤Î»Ò¥×¥í¥»¥¹¤Î¤¦¤Á¡¢
-½ªÎ»¤·¤ÆÂÔ¤Á¾õÂ֤ˤ¢¤ëÁ´¥×¥í¥»¥¹¤¬»ÈÍѤ·¤Æ¤¤¤ë»ñ¸»»ÈÍÑÎ̤ÎÅý·×¤òÊÖ¤¹¡£
-¤³¤ì¤é¤ÎÅý·×¾ðÊó¤Ë¤Ï¡¢Â¹¥×¥í¥»¥¹¤ä¤½¤Î»Ò¹¤Î¥×¥í¥»¥¹¤Î¤¦¤Á¡¢
-ºï½üÂÔ¤Á¤Î¤â¤Î¤¬»ÈÍѤ·¤Æ¤¤¤ë»ñ¸»¤â´Þ¤Þ¤ì¤ë¡£
-.TP
-.\"O .BR RUSAGE_THREAD " (since Linux 2.6.26)"
-.BR RUSAGE_THREAD " (Linux 2.6.26 °Ê¹ß)"
-.\"O Return resource usage statistics for the calling thread.
-¸Æ¤Ó½Ð¤·¤¿¥¹¥ì¥Ã¥É¤Ë´Ø¤¹¤ë»ñ¸»»ÈÍÑÎ̤ÎÅý·×¤òÊÖ¤¹¡£
+\fBgetrusage\fP()  は \fIwho\fP の資源 (resource) の使用量を返す。 \fIwho\fP には以下のいずれか一つを指定できる。
+.TP 
+\fBRUSAGE_SELF\fP
+呼び出したプロセスの資源使用量、 そのプロセス内の全スレッドが使用している資源の合計を返す。
+.TP 
+\fBRUSAGE_CHILDREN\fP
+呼び出したプロセスの子プロセスのうち、 終了して待ち状態にある全プロセスが使用している資源使用量の統計を返す。
+これらの統計情報には、孫プロセスやその子孫のプロセスのうち、 削除待ちのものが使用している資源も含まれる。
+.TP 
+\fBRUSAGE_THREAD\fP (Linux 2.6.26 以降)
+Return resource usage statistics for the calling thread.  The \fB_GNU_SOURCE\fP
+feature test macro must be defined (before including \fIany\fP header file)  in
+order to obtain the definition of this constant from
+\fI<sys/resource.h>\fP.
 .PP
-.\"O The resource usages are returned in the structure pointed to by
-.\"O .IR usage ,
-.\"O which has the following form:
-»ñ¸»»ÈÍÑÎ̤Ï
-.I usage
-¤¬»Ø¤¹¹½Â¤ÂΤ˳ÊǼ¤µ¤ì¤ÆÊÖ¤µ¤ì¤ë¡£
-¹½Â¤ÂΤϰʲ¼¤Î·Á¼°¤Ç¤¢¤ë¡£
+資源使用量は \fIusage\fP が指す構造体に格納されて返される。 構造体は以下の形式である。
 .PP
 .in +4n
 .nf
 struct rusage {
-.\"O     struct timeval ru_utime; /* user time used */
-.\"O     struct timeval ru_stime; /* system time used */
-.\"O     long   ru_maxrss;        /* maximum resident set size */
-.\"O     long   ru_ixrss;         /* integral shared memory size */
-.\"O     long   ru_idrss;         /* integral unshared data size */
-.\"O     long   ru_isrss;         /* integral unshared stack size */
-.\"O     long   ru_minflt;        /* page reclaims */
-.\"O     long   ru_majflt;        /* page faults */
-.\"O     long   ru_nswap;         /* swaps */
-.\"O     long   ru_inblock;       /* block input operations */
-.\"O     long   ru_oublock;       /* block output operations */
-.\"O     long   ru_msgsnd;        /* messages sent */
-.\"O     long   ru_msgrcv;        /* messages received */
-.\"O     long   ru_nsignals;      /* signals received */
-.\"O     long   ru_nvcsw;         /* voluntary context switches */
-.\"O     long   ru_nivcsw;        /* involuntary context switches */
-    struct timeval ru_utime; /* »ÈÍѤµ¤ì¤¿¥æ¡¼¥¶¡¼»þ´Ö */
-    struct timeval ru_stime; /* »ÈÍѤµ¤ì¤¿¥·¥¹¥Æ¥à»þ´Ö */
-    long   ru_maxrss;        /* RAM ¾å¤Ë¸ºß¤¹¤ë²¾ÁÛ¥Ú¡¼¥¸¤Î¥µ¥¤¥º
-                               (resident set size) ¤ÎºÇÂçÃÍ */
-    long   ru_ixrss;         /* ¶¦Í­¥á¥â¥ê¤Î¹ç·×¥µ¥¤¥º */
-    long   ru_idrss;         /* Èó¶¦Í­¥Ç¡¼¥¿¤Î¹ç·×¥µ¥¤¥º */
-    long   ru_isrss;         /* Èó¶¦Í­¥¹¥¿¥Ã¥¯¤Î¹ç·×¥µ¥¤¥º */
-    long   ru_minflt;        /* ÍøÍѤµ¤ì¤¿¥Ú¡¼¥¸ */
-    long   ru_majflt;        /* ¥Ú¡¼¥¸¥Õ¥©¡¼¥ë¥È */
-    long   ru_nswap;         /* ¥¹¥ï¥Ã¥× */
-    long   ru_inblock;       /* ¥Ö¥í¥Ã¥¯ÆþÎÏÁàºî */
-    long   ru_oublock;       /* ¥Ö¥í¥Ã¥¯½ÐÎÏÁàºî */
-    long   ru_msgsnd;        /* Á÷¿®¤µ¤ì¤¿¥á¥Ã¥»¡¼¥¸ */
-    long   ru_msgrcv;        /* ¼õ¿®¤µ¤ì¤¿¥á¥Ã¥»¡¼¥¸ */
-    long   ru_nsignals;      /* ¼õ¿®¤µ¤ì¤¿¥·¥°¥Ê¥ë */
-    long   ru_nvcsw;         /* °Õ¿Þ¤·¤¿¥³¥ó¥Æ¥­¥¹¥ÈÀÚ¤êÂؤ¨ */
-    long   ru_nivcsw;        /* °Õ¿Þ¤·¤Ê¤¤¥³¥ó¥Æ¥­¥¹¥ÈÀÚ¤êÂؤ¨ */
+    struct timeval ru_utime; /* 使用されたユーザー CPU 時間 */
+    struct timeval ru_stime; /* 使用されたシステム CPU 時間 */
+    long   ru_maxrss;        /* RAM 上に存在する仮想ページのサイズ
+                               (resident set size) の最大値 */
+    long   ru_ixrss;         /* 共有メモリの合計サイズ */
+    long   ru_idrss;         /* 非共有データの合計サイズ */
+    long   ru_isrss;         /* 非共有スタックの合計サイズ */
+    long   ru_minflt;        /* ページの再利用 (ソフトページフォルト) */
+    long   ru_majflt;        /* ページフォールト (ハードページフォルト) */
+    long   ru_nswap;         /* スワップ */
+    long   ru_inblock;       /* ブロック入力操作 */
+    long   ru_oublock;       /* ブロック出力操作 */
+    long   ru_msgsnd;        /* 送信された IPC メッセージ */
+    long   ru_msgrcv;        /* 受信された IPC メッセージ */
+    long   ru_nsignals;      /* 受信されたシグナル */
+    long   ru_nvcsw;         /* 意図したコンテキスト切り替え */
+    long   ru_nivcsw;        /* 意図しないコンテキスト切り替え */
 };
 .fi
 .in
-.\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
-.\"O On success, zero is returned.
-.\"O On error, \-1 is returned, and
-.\"O .I errno
-.\"O is set appropriately.
-À®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
-.I errno
-¤ËŬÀÚ¤ÊÃͤ¬ÀßÄꤵ¤ì¤ë¡£
-.\"O .SH ERRORS
-.SH ¥¨¥é¡¼
-.TP
-.B EFAULT
-.\"O .I usage
-.\"O points outside the accessible address space.
-.I usage
-¤¬¥¢¥¯¥»¥¹²Äǽ¤Ê¥¢¥É¥ì¥¹¶õ´Ö¤Î³°¤ò»Ø¤·¤Æ¤¤¤ë¡£
-.TP
-.B EINVAL
-.\"O .I who
-.\"O is invalid.
-.I who
-¤¬Ìµ¸ú¤Ç¤¢¤ë¡£
-.\"O .SH "CONFORMING TO"
-.SH ½àµò
-SVr4, 4.3BSD.
-.\"O POSIX.1-2001 specifies
-.\"O .BR getrusage (),
-.\"O but only specifies the fields
-.\"O .I ru_utime
-.\"O and
-.\"O .IR ru_stime .
-POSIX.1-2001 ¤Ï
-.BR getrusage ()
-¤òµ¬Äꤷ¤Æ¤¤¤ë¤¬¡¢µ¬Äꤷ¤Æ¤¤¤ë¥Õ¥£¡¼¥ë¥É¤Ï
-.I ru_utime
-¤È
-.I ru_stime
-¤À¤±¤Ç¤¢¤ë¡£
+.PP
+すべてのフィールドがサポートされているわけではない。 メンテナンスされていないフィールドには、 カーネルが 0 を設定する
+(メンテナンスされていないフィールドは、 他のシステムとの互換性のために提供されており、 いつか Linux でもサポートされるかもしれない)。
+各フィールドの詳細は以下の通りである。
+.TP 
+\fIru_utime\fP
+ユーザモードでの実行で消費された合計時間。 \fItimeval\fP 構造体 (秒とミリ秒) で表現される。
+.TP 
+\fIru_stime\fP
+カーネルモードでの実行で消費された合計時間。 \fItimeval\fP 構造体 (秒とミリ秒) で表現される。
+.TP 
+\fIru_maxrss\fP (Linux 2.6.32 以降)
+使用された resident set size の最大値 (キロバイト単位)。 \fBRUSAGE_CHILDREN\fP の場合には、プロセスツリーの
+resident set size の最大値ではなく、 最も大きい子プロセスの resident set size となる。
+.TP 
+\fIru_ixrss\fP (メンテナンスされていない)
+.\" On some systems,
+.\" this is the integral of the text segment memory consumption,
+.\" expressed in kilobyte-seconds.
+このフィールドは現在のところ Linux では未使用である。
+.TP 
+\fIru_idrss\fP (メンテナンスされていない)
+.\" On some systems, this is the integral of the data segment memory consumption,
+.\" expressed in kilobyte-seconds.
+このフィールドは現在のところ Linux では未使用である。
+.TP 
+\fIru_isrss\fP (メンテナンスされていない)
+.\" On some systems, this is the integral of the stack memory consumption,
+.\" expressed in kilobyte-seconds.
+このフィールドは現在のところ Linux では未使用である。
+.TP 
+\fIru_minflt\fP
+I/O 動作なしで発生したページフォルトの回数。 再割り当てを待っているページリストからページフレームを「回収」 (reclaim) することで、
+I/O 動作を避けることができる。
+.TP 
+\fIru_majflt\fP
+I/O 動作を必要とするページフォルトの回数。
+.TP 
+\fIru_nswap\fP (メンテナンスされていない)
+.\" On some systems, this is the number of swaps out of physical memory.
+このフィールドは現在のところ Linux では未使用である。
+.TP 
+\fIru_inblock\fP (Linux 2.6.22 以降)
+ファイルシステムが入力を実行する必要があった回数。
+.TP 
+\fIru_oublock\fP (Linux 2.6.22 以降)
+ファイルシステムが出力を実行する必要があった回数。
+.TP 
+\fIru_msgsnd\fP (メンテナンスされていない)
+.\" On FreeBSD 6.2, this appears to measure messages sent over sockets
+.\" On some systems,
+.\" this field records the number of messages sent over sockets.
+このフィールドは現在のところ Linux では未使用である。
+.TP 
+\fIru_msgrcv\fP (メンテナンスされていない)
+.\" On FreeBSD 6.2, this appears to measure messages received over sockets
+.\" On some systems,
+.\" this field records the number of messages received over sockets.
+このフィールドは現在のところ Linux では未使用である。
+.TP 
+\fIru_nsignals\fP (メンテナンスされていない)
+.\" On some systems, this field records the number of signals received.
+このフィールドは現在のところ Linux では未使用である。
+.TP 
+\fIru_nvcsw\fP (Linux 2.6 以降)
+自分のタイムスライスが完了する前にプロセスが自発的にプロセッサを解放して行われたコンテキストスイッチの回数
+(通常はリソースが利用可能になるのを待つために行われる)。
+.TP 
+\fImemory_migrate\fP (Linux 2.6.16 以降)
+優先度が自分より高いプロセッサが実行可能になったか、現在のプロセスが自分のタイムスライスを超過したことにより行われたコンテキストスイッチの回数。
+.PP
+.SH 返り値
+成功した場合は 0 が返される。エラーの場合は \-1 が返され、 \fIerrno\fP が適切に設定される。
+.SH エラー
+.TP 
+\fBEFAULT\fP
+\fIusage\fP がアクセス可能なアドレス空間の外を指している。
+.TP 
+\fBEINVAL\fP
+\fIwho\fP が無効である。
+.SH 準拠
+SVr4, 4.3BSD.  POSIX.1\-2001 は \fBgetrusage\fP()  を規定しているが、規定しているフィールドは
+\fIru_utime\fP と \fIru_stime\fP だけである。
 
-.\"O .B RUSAGE_THREAD
-.\"O is Linux-specific.
-.B RUSAGE_THREAD
-¤Ï Linux ¸ÇÍ­¤Ç¤¢¤ë¡£
-.\"O .SH NOTES
-.SH Ãí°Õ
-.\"O Resource usage metrics are preserved across an
-.\"O .BR execve (2).
-.BR execve (2)
-¤ÎÁ°¸å¤Ç¥ê¥½¡¼¥¹»ÈÍÑÎ̤λØɸ¤ÏÊÝ»ý¤µ¤ì¤ë¡£
+\fBRUSAGE_THREAD\fP は Linux 固有である。
+.SH 注意
+\fBexecve\fP(2)  の前後でリソース使用量の指標は保持される。
 
-.\"O Including
-.\"O .I <sys/time.h>
-.\"O is not required these days, but increases portability.
-.\"O (Indeed,
-.\"O .I struct timeval
-.\"O is defined in
-.\"O .IR <sys/time.h> .)
-º£Æü¤Ç¤Ï
-.I <sys/time.h>
-¤ò¥¤¥ó¥¯¥ë¡¼¥É¤¹¤ëɬÍפϤʤ¤¤¬¡¢
-¥¤¥ó¥¯¥ë¡¼¥É¤·¤Æ¤ª¤±¤Ð°Ü¿¢À­¤¬Áý¤¹¡£
-(¼ÂºÝ
-.I struct timeval
-¤Ï
-.I <sys/time.h>
-¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£)
+今日では \fI<sys/time.h>\fP をインクルードする必要はないが、 インクルードしておけば移植性が増す。 (実際
+\fIstruct timeval\fP は \fI<sys/time.h>\fP で定義されている。)
 .PP
-.\"O In Linux kernel versions before 2.6.9, if the disposition of
-.\"O .B SIGCHLD
-.\"O is set to
-.\"O .B SIG_IGN
-.\"O then the resource usages of child processes
-.\"O are automatically included in the value returned by
-.\"O .BR RUSAGE_CHILDREN ,
-.\"O although POSIX.1-2001 explicitly prohibits this.
-2.6.9 ¤è¤êÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Linux ¥«¡¼¥Í¥ë¤Ç¤Ï¡¢
-.B SIGCHLD
-¤Î½èÍý¤¬
-.B SIG_IGN
-¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¤È¡¢
-»Ò¥×¥í¥»¥¹¤Î¥ê¥½¡¼¥¹»ÈÍÑÎ̤¬
-.B RUSAGE_CHILDREN
-¤ÇÊÖ¤µ¤ì¤ëÃͤ˼«Æ°Åª¤Ë´Þ¤á¤é¤ì¤ë¡£
-¤·¤«¤· POSIX.1-2001 ¤Ç¤Ï¡¢¤³¤ì¤òÌÀ³Î¤Ë¶Ø»ß¤·¤Æ¤¤¤ë¡£
-.\"O This nonconformance is rectified in Linux 2.6.9 and later.
-.\"O .\" See the description of getrusage() in XSH.
-.\"O .\" A similar statement was also in SUSv2.
-¤³¤Î½àµò¤·¤Æ¤¤¤Ê¤«¤Ã¤¿ÅÀ¤Ï¡¢Linux 2.6.9 °Ê¹ß¤Ç²þÀµ¤µ¤ì¤¿¡£
-.\" XSH ¤Î getrusage() ¤ÎÀâÌÀ¤ò»²¾È¤¹¤ë¤³¤È¡£
-.\" Æ±Íͤε­½Ò¤Ï SUSv2 ¤Ë¤â¤¢¤ë¡£
+.\" See the description of getrusage() in XSH.
+.\" A similar statement was also in SUSv2.
+2.6.9 より前のバージョンの Linux カーネルでは、 \fBSIGCHLD\fP の処理が \fBSIG_IGN\fP に設定されていると、
+子プロセスのリソース使用量が \fBRUSAGE_CHILDREN\fP で返される値に自動的に含められる。 しかし POSIX.1\-2001
+では、これを明確に禁止している。 この準拠していなかった点は、Linux 2.6.9 以降で改正された。
 .LP
-.\"O The structure definition shown at the start of this page
-.\"O was taken from 4.3BSD Reno.
-.\"O Not all fields are meaningful under Linux.
-.\"O In Linux 2.4 only the fields
-.\"O .IR ru_utime ,
-.\"O .IR ru_stime ,
-.\"O .IR ru_minflt ,
-.\"O and
-.\"O .I ru_majflt
-.\"O are maintained.
-¤³¤Î¥Ú¡¼¥¸¤ÎºÇ½é¤Ç¼¨¤·¤¿¹½Â¤ÂΤÎÄêµÁ¤Ï 4.3BSD Reno ¤Î¤â¤Î¤òºÎÍѤ·¤¿¡£
-Linux ¤Ç¤ÏÁ´¤Æ¤Î¥Õ¥£¡¼¥ë¥É¤¬°ÕÌ£¤ò»ý¤Ä¤È¤¤¤¦¤ï¤±¤Ç¤Ï¤Ê¤¤¡£
-Linux 2.4 ¤Ç¤Ï¡¢¥Õ¥£¡¼¥ë¥É
-.IR ru_utime ,
-.IR ru_stime ,
-.IR ru_minflt ,
-.I ru_majflt
-¤Î¤ß¤¬¥á¥ó¥Æ¥Ê¥ó¥¹¤µ¤ì¤Æ¤¤¤ë¡£
-.\"O Since Linux 2.6,
-.\"O .I ru_nvcsw
-.\"O and
-.\"O .I ru_nivcsw
-.\"O are also maintained.
-Linux 2.6 °Ê¹ß¤Ç¤Ï
-.IR ru_nvcsw ,
-.I ru_nivcsw
-¤â¥á¥ó¥Æ¥Ê¥ó¥¹¤µ¤ì¤Æ¤¤¤ë¡£
-.\"O Since Linux 2.6.22,
-.\"O .I ru_inblock
-.\"O and
-.\"O .I ru_oublock
-.\"O are also maintained.
-Linux 2.6.22 °Ê¹ß¤Ç¤Ï
-.IR ru_inblock ,
-.I ru_oublock
-¤â¥á¥ó¥Æ¥Ê¥ó¥¹¤µ¤ì¤Æ¤¤¤ë¡£
+このページの最初で示した構造体の定義は 4.3BSD Reno のものである。
+
+古いシステムでは、 \fBgetrusage\fP() と同様の目的を持つ関数 \fBvtimes\fP() が提供
+されていた。後方互換性のため、glibc でも \fBvtimes\fP() を提供している。
+全ての新しいアプリケーションでは \fBgetrusage\fP() を使用すべきである。
 
-.\"O See also the description of
-.\"O .IR /proc/PID/stat
-.\"O in
-.\"O .BR proc (5).
-.BR proc (5)
-¤Ë¤¢¤ë
-.I /proc/PID/stat
-¤ÎÀâÌÀ¤â»²¾È¤Î¤³¤È¡£
-.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
-.BR clock_gettime (2),
-.BR getrlimit (2),
-.BR times (2),
-.BR wait (2),
-.BR wait4 (2),
-.BR clock (3)
+\fBproc\fP(5)  にある \fI/proc/PID/stat\fP の説明も参照のこと。
+.SH 関連項目
+\fBclock_gettime\fP(2), \fBgetrlimit\fP(2), \fBtimes\fP(2), \fBwait\fP(2), \fBwait4\fP(2),
+\fBclock\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。