OSDN Git Service

(split) LDP: Update draft and release pages (semaphore and unistd)
[linuxjm/LDP_man-pages.git] / release / 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 \fINote\fP: There is no glibc wrapper for this system call; see NOTES.
24 .SH 説明
25 \fBget_thread_area\fP()  returns an entry in the current thread's thread\-local
26 storage (TLS) array.  The index of the entry corresponds to the value of
27 \fIu_info\->entry_number\fP, passed in by the user.  If the value is in
28 bounds, \fBget_thread_area\fP()  copies the corresponding TLS entry into the
29 area pointed to by \fIu_info\fP.
30 .SH 返り値
31 成功した場合、 \fBget_thread_area\fP()  は 0 を返す。 そうでない場合、 \-1 を返し、 \fIerrno\fP
32 に適切な値をセットする。
33 .SH エラー
34 .TP 
35 \fBEFAULT\fP
36 \fIu_info\fP が不正なポインタである。
37 .TP 
38 \fBEINVAL\fP
39 \fIu_info\->entry_number\fP が範囲外である。
40 .SH バージョン
41 \fBget_thread_area\fP()  は Linux 2.5.32 で初めて登場した。
42 .SH 準拠
43 \fBget_thread_area\fP()  は Linux 独自の関数であり、 移植を意図したプログラムでは使用すべきではない。
44 .SH 注意
45 Glibc does not provide a wrapper for this system call, since it is generally
46 intended only for use by threading libraries.  In the unlikely event that
47 you want to call it directly, use \fBsyscall\fP(2).
48 .SH 関連項目
49 \fBmodify_ldt\fP(2), \fBset_thread_area\fP(2)
50 .SH この文書について
51 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
52 である。プロジェクトの説明とバグ報告に関する情報は
53 http://www.kernel.org/doc/man\-pages/ に書かれている。