OSDN Git Service

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