OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man2 / get_thread_area.2
1 .\" Copyright (C) 2003 Free Software Foundation, Inc.
2 .\" Written by Kent Yoder.
3 .\"
4 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
5 .\" This file is distributed according to the GNU General Public License.
6 .\" %%%LICENSE_END
7 .\"
8 .\"*******************************************************************
9 .\"
10 .\" This file was generated with po4a. Translate the source file.
11 .\"
12 .\"*******************************************************************
13 .TH GET_THREAD_AREA 2 2012\-07\-13 Linux "Linux Programmer's Manual"
14 .SH 名前
15 get_thread_area \- スレッド局所記憶 (TLS) 領域を取り出す
16 .SH 書式
17 \fB#include <linux/unistd.h>\fP
18 .br
19 \fB#include <asm/ldt.h>\fP
20 .sp
21 \fBint get_thread_area(struct user_desc *\fP\fIu_info\fP\fB);\fP
22
23 \fI注\fP: このシステムコールには glibc のラッパー関数は存在しない。「注意」の節を参照。
24 .SH 説明
25 \fBget_thread_area\fP()  は、カレント・スレッドのスレッド局所記憶 (thread\-local storage; TLS)
26 配列の中のエントリを返す。 エントリのインデックスは、ユーザから引き数として渡される \fIu_info\->entry_number\fP
27 の値に対応している。 値が範囲内にある場合、 \fBget_thread_info\fP()  は対応する TLS エントリを \fIu_info\fP
28 で指された領域にコピーする。
29 .SH 返り値
30 成功した場合、 \fBget_thread_area\fP()  は 0 を返す。 そうでない場合、 \-1 を返し、 \fIerrno\fP
31 に適切な値をセットする。
32 .SH エラー
33 .TP 
34 \fBEFAULT\fP
35 \fIu_info\fP が不正なポインタである。
36 .TP 
37 \fBEINVAL\fP
38 \fIu_info\->entry_number\fP が範囲外である。
39 .SH バージョン
40 \fBget_thread_area\fP()  は Linux 2.5.32 で初めて登場した。
41 .SH 準拠
42 \fBget_thread_area\fP()  は Linux 独自の関数であり、 移植を意図したプログラムでは使用すべきではない。
43 .SH 注意
44 このシステムコールは通常はスレッドライブラリでのみ使用されることを目的として用意されているため、 glibc
45 はこのシステムコールに対するラッパー関数を提供していない。おそらくないと思うが、このシステムコールを直接呼び出したい場合は \fBsyscall\fP(2)
46 を使うこと。
47 .SH 関連項目
48 \fBmodify_ldt\fP(2), \fBset_thread_area\fP(2)
49 .SH この文書について
50 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
51 である。プロジェクトの説明とバグ報告に関する情報は
52 http://www.kernel.org/doc/man\-pages/ に書かれている。