OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man3 / clock_getcpuclockid.3
index 4ca287a..148b847 100644 (file)
@@ -30,7 +30,7 @@
 .\"*******************************************************************
 .TH CLOCK_GETCPUCLOCKID 3 2013\-07\-04 Linux "Linux Programmer's Manual"
 .SH 名前
-clock_getcpuclockid \- obtain ID of a process CPU\-time clock
+clock_getcpuclockid \- プロセスの CPU 時刻のクロック ID を取得する
 .SH 書式
 \fB#include <time.h>\fP
 .nf
@@ -51,43 +51,38 @@ _XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L
 .RE
 .ad
 .SH 説明
-The \fBclock_getcpuclockid\fP()  function obtains the ID of the CPU\-time clock
-of the process whose ID is \fIpid\fP, and returns it in the location pointed to
-by \fIclock_id\fP.  If \fIpid\fP is zero, then the clock ID of the CPU\-time clock
-of the calling process is returned.
+\fBclock_getcpuclockid\fP() 関数は、 プロセス ID が \fIpid\fP のプロセスの CPU 時刻のクロック ID を取得し、
+その ID を \fIclock_id\fP が指す場所に入れて返す。 \fIpid\fP が 0 の場合、 呼び出し元のプロセスの CPU 時刻のクロック ID
+が返される。
 .SH 返り値
-On success, \fBclock_getcpuclockid\fP()  returns 0; on error, it returns one of
-the positive error numbers listed in ERRORS.
+成功すると、 \fBclock_getcpuclockid\fP() は 0 を返す。 エラーの場合、
+「エラー」の節のリストにある正のエラー番号のいずれかを返す。
 .SH エラー
 .TP 
 \fBENOSYS\fP
-The kernel does not support obtaining the per\-process CPU\-time clock of
-another process, and \fIpid\fP does not specify the calling process.
+カーネルが他のプロセスのプロセス単位の CPU 時刻のクロックの取得に対応しておらず、 かつ \fIpid\fP が呼び出し元のプロセスを指していなかった。
 .TP 
 \fBEPERM\fP
-The caller does not have permission to access the CPU\-time clock of the
-process specified by \fIpid\fP.  (Specified as an optional error in
-POSIX.1\-2001; does not occur on Linux unless the kernel does not support
-obtaining the per\-process CPU\-time clock of another process.)
+呼び出し元プロセスが \fIpid\fP で指定されたプロセスの CPU 時刻のクロックにアクセスする許可を持っていなかった。(POSIX.1\-2001
+では任意のエラーとして規定されている。 カーネルが他のプロセスのプロセス単位の CPU 時刻のクロックの取得に対応していない場合には、
+このエラーは発生しない。)
 .TP 
 \fBESRCH\fP
-There is no process with the ID \fIpid\fP.
+ID が \fIpid\fP のプロセスが存在しない。
 .SH バージョン
-The \fBclock_getcpuclockid\fP()  function is available in glibc since version
-2.2.
+\fBclock_getcpuclockid\fP() 関数は glibc バージョン 2.2 以降で利用可能である。
 .SH 属性
 .SS "マルチスレッディング (pthreads(7) 参照)"
 \fBclock_getcpuclockid\fP() 関数はスレッドセーフである。
 .SH 準拠
 POSIX.1\-2001.
 .SH 注意
-Calling \fBclock_gettime\fP(2)  with the clock ID obtained by a call to
-\fBclock_getcpuclockid\fP()  with a \fIpid\fP of 0, is the same as using the clock
-ID \fBCLOCK_PROCESS_CPUTIME_ID\fP.
+\fIpid\fP に 0 を指定して \fBclock_getcpuclockid\fP() を呼び出して得られたクロック ID を引き数として
+\fBclock_gettime\fP(2) の呼び出すのは、 クロック ID \fBCLOCK_PROCESS_CPUTIME_ID\fP を使って
+\fBclock_gettime\fP(2) の呼び出すのと同じである。
 .SH 例
-The example program below obtains the CPU\-time clock ID of the process whose
-ID is given on the command line, and then uses \fBclock_gettime\fP(2)  to
-obtain the time on that clock.  An example run is the following:
+以下のサンプルプログラムは、 コマンドラインで指定された ID を持つプロセスの CPU 時刻のクロック ID を取得し、
+\fBclock_gettime\fP(2) を使ってそのクロックの時刻を取得する。 以下は実行例である。
 .in +4n
 .nf
 
@@ -134,6 +129,6 @@ main(int argc, char *argv[])
 \fBclock_getres\fP(2), \fBtimer_create\fP(2), \fBpthread_getcpuclockid\fP(3),
 \fBtime\fP(7)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。