OSDN Git Service

(split) LDP: Translate several number of pages
[linuxjm/LDP_man-pages.git] / draft / man3 / sched_getcpu.3
index ded7405..6a2448d 100644 (file)
@@ -1,6 +1,7 @@
 .\" Copyright (c) 2008, Linux Foundation, written by Michael Kerrisk
 .\"     <mtk.manpages@gmail.com>
 .\"
+.\" %%%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.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
-.\" Japanese Version Copyright (c) 2008  Akihiro MOTOKI
-.\"         all rights reserved.
-.\" Translated 2008-08-21, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.04
-.\" 
-.TH SCHED_GETCPU 3 2010-10-31 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH SCHED_GETCPU 3 2013\-04\-17 Linux "Linux Programmer's Manual"
 .SH 名前
-.\"O sched_getcpu \- determine CPU on which the calling thread is running
 sched_getcpu \- 呼び出したスレッドが実行されている CPU を知る
-.\"O .SH SYNOPSIS
 .SH 書式
 .nf
-.\"O .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
-.BR "#define _GNU_SOURCE" "         /* feature_test_macros(7) 参照 */"
-.\" Really:_BSD_SOURCE || _SVID_SOURCE
-.B #include <sched.h>
+\fB#include <sched.h>\fP
 
-.B int sched_getcpu(void);
+\fBint sched_getcpu(void);\fP
 .fi
-.\"O .SH DESCRIPTION
+.sp
+.in -4n
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
+.in
+.sp
+\fBsched_getcpu\fP():
+.ad l
+.RS 4
+.PD 0
+.TP  4
+glibc 2.14 以降:
+_GNU_SOURCE
+.TP  4
+glibc 2.14 より前:
+_BSD_SOURCE || _SVID_SOURCE
+    /* _GNU_SOURCE も定義される */
+.PD
+.RE
+.ad b
 .SH 説明
-.\"O .BR sched_getcpu ()
-.\"O returns the number of the CPU on which the calling thread is currently executing.
-.BR sched_getcpu ()
-は、呼び出したスレッドが現在実行されている CPU の番号を返す。
-.\"O .SH RETURN VALUE
+\fBsched_getcpu\fP()  は、呼び出したスレッドが現在実行されている CPU の番号を返す。
 .SH 返り値
-.\"O On success,
-.\"O .BR sched_getcpu ()
-.\"O returns a nonnegative CPU number.
-.\"O On error, \-1 is returned and
-.\"O .I errno
-.\"O is set to indicate the error.
-成功すると、
-.BR sched_getcpu ()
-は非負の CPU 番号を返す。
-エラーの場合、\-1 を返し、
-.I errno
+成功すると、 \fBsched_getcpu\fP()  は非負の CPU 番号を返す。 エラーの場合、\-1 を返し、 \fIerrno\fP
 にエラーを示す値を設定する。
-.\"O .SH ERRORS
 .SH エラー
-.TP
-.B ENOSYS
-.\"O This kernel does not implement
-.\"O .BR getcpu (2).
-このカーネルでは
-.BR getcpu (2)
-が実装されていない。
-.\"O .SH VERSIONS
+.TP 
+\fBENOSYS\fP
+このカーネルでは \fBgetcpu\fP(2)  が実装されていない。
 .SH バージョン
-.\"O This function is available since glibc 2.6.
 この関数は glibc 2.6 以降で利用可能である。
-.\"O .SH CONFORMING TO
 .SH 準拠
-.\"O .BR sched_getcpu ()
-.\"O is glibc specific.
-.BR sched_getcpu ()
-は glibc 固有である。
-.\"O .SH NOTES
+\fBsched_getcpu\fP()  は glibc 固有である。
 .SH 注意
-.\"O The call
+呼び出し
 .in +4n
 .nf
 
@@ -89,12 +78,7 @@ cpu = sched_getcpu();
 
 .fi
 .in
-.\"O is equivalent to the following
-.\"O .BR getcpu (2)
-.\"O call:
-は、以下の
-.BR getcpu (2)
-の呼び出しと等価である。
+は、以下の \fBgetcpu\fP(2)  呼び出しと等価である。
 .in +4n
 .nf
 
@@ -103,6 +87,9 @@ s = getcpu(&c, NULL, NULL);
 cpu = (s == \-1) ? s : c;
 .fi
 .in
-.\"O .SH SEE ALSO
 .SH 関連項目
-.BR getcpu (2)
+\fBgetcpu\fP(2)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.51 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。