OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man2 / gettid.2
index 6657f66..6591feb 100644 (file)
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
-.\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI, all rights reserved.
-.\" Translated Mon Mar  5 2003 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
-.\" Updated Sun Sep 14 JST 2003 by Akihiro MOTOKI
-.\" Updated 2008-02-10, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.77
-.\" Updated 2008-08-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.05
+.\"*******************************************************************
 .\"
 .\"
-.TH GETTID 2 2008-04-14 "Linux" "Linux Programmer's Manual"
-.SH Ì¾Á°
-gettid \- ¥¹¥ì¥Ã¥ÉID ¤ò¼èÆÀ¤¹¤ë
-.SH ½ñ¼°
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH GETTID 2 2008\-04\-14 Linux "Linux Programmer's Manual"
+.SH 名前
+gettid \- スレッドID を取得する
+.SH 書式
 .nf
 .nf
-.B #include <sys/types.h>
+\fB#include <sys/types.h>\fP
 .sp
 .sp
-.B pid_t gettid(void);
+\fBpid_t gettid(void);\fP
 .fi
 .fi
-.SH ÀâÌÀ
-.BR gettid ()
-¤Ï¸Æ¤Ó½Ð¤·¸µ¤Î¥¹¥ì¥Ã¥É ID (TID) ¤òÊÖ¤¹¡£
-¥·¥ó¥°¥ë¥¹¥ì¥Ã¥É¤Î¥×¥í¥»¥¹¤Ç¤Ï¡¢¥¹¥ì¥Ã¥É ID ¤Ï
-.RB ( getpid (2)
-¤¬ÊÖ¤¹¥×¥í¥»¥¹ ID (PID) ¤ÈÅù¤·¤¤¡£
-¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¤Î¥×¥í¥»¥¹¤Ç¤Ï¡¢Á´¤Æ¤Î¥¹¥ì¥Ã¥É¤ÏƱ¤¸ PID ¤ò»ý¤Ä¤¬¡¢
-¤½¤ì¤¾¤ì¤Î¥¹¥ì¥Ã¥É¤Ï°ì°Õ¤Ê TID ¤ò»ý¤Ä¡£
-¤µ¤é¤Ê¤ë¾ÜºÙ¤Ï¡¢
-.BR clone (2)
-¤Î
-.BR CLONE_THREAD
-¤Ë¤Ä¤¤¤Æ¤ÎµÄÏÀ¤ò»²¾È¤¹¤ë¤³¤È¡£
-.SH ÊÖ¤êÃÍ
-À®¸ù¤Î¾ì¹ç¡¢¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Î¥¹¥ì¥Ã¥ÉID ¤òÊÖ¤¹¡£
-.SH ¥¨¥é¡¼
-¤³¤Î¥³¡¼¥ë¤Ï¾ï¤ËÀ®¸ù¤¹¤ë¡£
-.SH ¥Ð¡¼¥¸¥ç¥ó
-.BR gettid ()
-¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢¥«¡¼¥Í¥ë 2.4.11 ¤Î Linux ¤Ç½é¤á¤ÆÅо줷¤¿¡£
-.SH ½àµò
-.BR gettid ()
-¤Ï Linux ¸ÇÍ­¤Ç¤¢¤ê¡¢
-°Ü¿¢¤òÁÛÄꤷ¤¿¥×¥í¥°¥é¥à¤Ç¤Ï»ÈÍѤ¹¤Ù¤­¤Ç¤Ï¤Ê¤¤¡£
-.SH Ãí°Õ
-glibc ¤Ï¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤ËÂФ¹¤ë¥é¥Ã¥Ñ¡¼´Ø¿ô¤òÄ󶡤·¤Æ¤¤¤Ê¤¤¡£
-.BR syscall (2)
-¤ò»È¤Ã¤Æ¸Æ¤Ó½Ð¤¹¤³¤È¡£
-.\" See http://sourceware.org/bugzilla/show_bug.cgi?id=6399
+.SH 説明
+\fBgettid\fP()  は呼び出し元のスレッド ID (TID) を返す。 シングルスレッドのプロセスでは、スレッド ID は
+(\fBgetpid\fP(2)  が返すプロセス ID (PID) と等しい。 マルチスレッドのプロセスでは、全てのスレッドは同じ PID を持つが、
+それぞれのスレッドは一意な TID を持つ。 さらなる詳細は、 \fBclone\fP(2)  の \fBCLONE_THREAD\fP
+についての議論を参照すること。
+.SH 返り値
+成功の場合、呼び出し元のプロセスのスレッドID を返す。
+.SH エラー
+このコールは常に成功する。
+.SH バージョン
+\fBgettid\fP()  システムコールは、カーネル 2.4.11 の Linux で初めて登場した。
+.SH 準拠
+\fBgettid\fP()  は Linux 固有であり、 移植を想定したプログラムでは使用すべきではない。
+.SH 注意
+.\" FIXME See http://sourceware.org/bugzilla/show_bug.cgi?id=6399
 .\" "gettid() should have a wrapper"
 .\" "gettid() should have a wrapper"
+glibc はこのシステムコールに対するラッパー関数を提供していない。 このシステムコールは呼び出すには \fBsyscall\fP(2)  を使うこと。
 
 
-¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤¬ÊÖ¤¹¥¹¥ì¥Ã¥É ID ¤Ï
-POSIX ¥¹¥ì¥Ã¥É ID
-.RB ( pthread_self (3)
-¤¬ÊÖ¤¹Û£Ëæ¤ÊÃÍ) ¤ÈƱ¤¸¤â¤Î¤Ç¤Ï¤Ê¤¤¡£
-.SH ´ØÏ¢¹àÌÜ
-.BR clone (2),
-.BR fork (2),
-.BR getpid (2)
+このシステムコールが返すスレッド ID は POSIX スレッド ID (\fBpthread_self\fP(3)  が返す曖昧な値) と同じものではない。
+.SH 関連項目
+\fBclone\fP(2), \fBfork\fP(2), \fBgetpid\fP(2)