OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man2 / gettid.2
1 .\" Copyright 2003 Abhijit Menon-Sen <ams@wiw.org>
2 .\" and Copyright (C) 2008 Michael Kerrisk <mtk.manpages@gmail.com>
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH GETTID 2 2013\-02\-04 Linux "Linux Programmer's Manual"
32 .SH 名前
33 gettid \- スレッドID を取得する
34 .SH 書式
35 .nf
36 \fB#include <sys/types.h>\fP
37 .sp
38 \fBpid_t gettid(void);\fP
39 .fi
40
41 \fI注\fP: このシステムコールには glibc のラッパー関数は存在しない。「注意」の節を参照。
42 .SH 説明
43 \fBgettid\fP()  は呼び出し元のスレッド ID (TID) を返す。 シングルスレッドのプロセスでは、スレッド ID は
44 (\fBgetpid\fP(2)  が返すプロセス ID (PID) と等しい。 マルチスレッドのプロセスでは、全てのスレッドは同じ PID を持つが、
45 それぞれのスレッドは一意な TID を持つ。 さらなる詳細は、 \fBclone\fP(2)  の \fBCLONE_THREAD\fP
46 についての議論を参照すること。
47 .SH 返り値
48 成功の場合、呼び出し元のプロセスのスレッドID を返す。
49 .SH エラー
50 このコールは常に成功する。
51 .SH バージョン
52 \fBgettid\fP()  システムコールは、カーネル 2.4.11 の Linux で初めて登場した。
53 .SH 準拠
54 \fBgettid\fP()  は Linux 固有であり、 移植を想定したプログラムでは使用すべきではない。
55 .SH 注意
56 .\" FIXME See http://sourceware.org/bugzilla/show_bug.cgi?id=6399
57 .\" "gettid() should have a wrapper"
58 glibc はこのシステムコールに対するラッパー関数を提供していない。 このシステムコールは呼び出すには \fBsyscall\fP(2)  を使うこと。
59
60 このシステムコールが返すスレッド ID は POSIX スレッド ID (\fBpthread_self\fP(3)  が返す曖昧な値) と同じものではない。
61 .SH 関連項目
62 .\" .BR kcmp (2),
63 .\" .BR move_pages (2),
64 .\" .BR migrate_pages (2),
65 .\" .BR process_vm_readv (2),
66 .\" .BR ptrace (2),
67 \fBcapget\fP(2), \fBclone\fP(2), \fBfcntl\fP(2), \fBfork\fP(2), \fBget_robust_list\fP(2),
68 \fBgetpid\fP(2), \fBioprio_set\fP(2), \fBperf_event_open\fP(2),
69 \fBsched_setaffinity\fP(2), \fBsched_setparam\fP(2), \fBsched_setscheduler\fP(2),
70 \fBtimer_create\fP(2), \fBtgkill\fP(2)
71 .SH この文書について
72 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
73 である。プロジェクトの説明とバグ報告に関する情報は
74 http://www.kernel.org/doc/man\-pages/ に書かれている。