OSDN Git Service

(split) LDP: Translate several number of pages
[linuxjm/LDP_man-pages.git] / draft / man3 / sched_getcpu.3
index c37dea2..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
-.SH Ì¾Á°
-.\"O sched_getcpu \- determine CPU on which the calling thread is running
-sched_getcpu \- ¸Æ¤Ó½Ð¤·¤¿¥¹¥ì¥Ã¥É¤¬¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë CPU ¤òÃΤë
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH SCHED_GETCPU 3 2013\-04\-17 Linux "Linux Programmer's Manual"
+.SH 名前
+sched_getcpu \- 呼び出したスレッドが実行されている CPU を知る
+.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
-.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
-.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
-¤Ë¥¨¥é¡¼¤ò¼¨¤¹ÃͤòÀßÄꤹ¤ë¡£
-.\"O .SH ERRORS
-.SH ¥¨¥é¡¼
-.TP
-.B ENOSYS
-.\"O This kernel does not implement
-.\"O .BR getcpu (2).
-¤³¤Î¥«¡¼¥Í¥ë¤Ç¤Ï
-.BR getcpu (2)
-¤¬¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
-.\"O .SH VERSIONS
-.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
-.SH Ãí°Õ
-.\"O The call
+.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 説明
+\fBsched_getcpu\fP()  は、呼び出したスレッドが現在実行されている CPU の番号を返す。
+.SH 返り値
+成功すると、 \fBsched_getcpu\fP()  は非負の CPU 番号を返す。 エラーの場合、\-1 を返し、 \fIerrno\fP
+にエラーを示す値を設定する。
+.SH エラー
+.TP 
+\fBENOSYS\fP
+このカーネルでは \fBgetcpu\fP(2)  が実装されていない。
+.SH バージョン
+この関数は glibc 2.6 以降で利用可能である。
+.SH 準拠
+\fBsched_getcpu\fP()  は glibc 固有である。
+.SH 注意
+呼び出し
 .in +4n
 .nf
 
@@ -89,20 +78,18 @@ 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
 
 int c, s;
 s = getcpu(&c, NULL, NULL);
-cpu = (s == -1) ? s : c;
+cpu = (s == \-1) ? s : c;
 .fi
 .in
-.\"O .SH SEE ALSO
-.SH ´ØÏ¢¹àÌÜ
-.BR getcpu (2)
+.SH 関連項目
+\fBgetcpu\fP(2)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.51 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。