OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / draft / man3 / tcgetsid.3
index 80538a0..2401cf7 100644 (file)
 .TH TCGETSID 3 2010-09-10 "GNU" "Linux Programmer's Manual"
 .\"O .SH NAME
 .\"O tcgetsid \- get session ID
-.SH Ì¾Á°
-tcgetsid \- ¥»¥Ã¥·¥ç¥óID ¤ò¼èÆÀ¤¹¤ë
+.SH 名前
+tcgetsid \- セッションID を取得する
 .\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.SH 書式
 .nf
 .\"O .BR "#define _XOPEN_SOURCE 500" "        /* See feature_test_macros(7) */"
-.BR "#define _XOPEN_SOURCE 500" "        /* feature_test_macros(7) »²¾È */"
+.BR "#define _XOPEN_SOURCE 500" "        /* feature_test_macros(7) 参照 */"
 .br
 .B "#include <termios.h>"
 .sp
 .BI "pid_t tcgetsid(int " fd );
 .fi
 .\"O .SH DESCRIPTION
-.SH ÀâÌÀ
+.SH 説明
 .\"O The function
 .\"O .BR tcgetsid ()
 .\"O returns the session ID of the current session that has the
@@ -49,15 +49,15 @@ tcgetsid \- 
 .\"O .I fd
 .\"O as controlling terminal.
 .\"O This terminal must be the controlling terminal of the calling process.
-´Ø¿ô
+関数
 .BR tcgetsid ()
-¤Ï¡¢À©¸æüËö¤È¤·¤Æ
+は、制御端末として
 .I fd
-¤ËÂбþ¤¹¤ëüËö¤ò»ý¤Ä¥«¥ì¥ó¥È¡¦¥»¥Ã¥·¥ç¥ó¤Î¥»¥Ã¥·¥ç¥óID ¤òÊÖ¤¹¡£
-¤³¤ÎüËö¤Ï \fBtcgetsid\fR() ¤Î¸Æ¤Ó½Ð¤·¤ò¹Ô¤¦¥×¥í¥»¥¹¤ÎÀ©¸æüËö¤Ç
-¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
+に対応する端末を持つカレント・セッションのセッションID を返す。
+この端末は \fBtcgetsid\fR() の呼び出しを行うプロセスの制御端末で
+なければならない。
 .\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
+.SH 返り値
 .\"O When
 .\"O .I fd
 .\"O refers to the controlling terminal of our session,
@@ -65,54 +65,54 @@ tcgetsid \- 
 .\"O .BR tcgetsid ()
 .\"O will return the session ID of this session.
 .I fd
-¤¬¸Æ¤Ó½Ð¤·¤ò¹Ô¤Ã¤¿¥»¥Ã¥·¥ç¥ó¤ÎÀ©¸æüËö¤ò»²¾È¤·¤Æ¤¤¤ë¾ì¹ç¡¢
-´Ø¿ô
+が呼び出しを行ったセッションの制御端末を参照している場合、
+関数
 .BR tcgetsid ()
-¤Ï¤³¤Î¥»¥Ã¥·¥ç¥ó¤Î¥»¥Ã¥·¥ç¥óID ¤òÊÖ¤¹¡£
+はこのセッションのセッションID を返す。
 .\"O Otherwise, \-1 is returned, and
 .\"O .I errno
 .\"O is set appropriately.
-¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¡¢ \-1 ¤¬ÊÖ¤µ¤ì¡¢
+そうでない場合、 \-1 が返され、
 .I errno
-¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
+が適切に設定される。
 .\"O .SH ERRORS
-.SH ¥¨¥é¡¼
+.SH ã\82¨ã\83©ã\83¼
 .TP
 .B EBADF
 .\"O .I fd
 .\"O is not a valid file descriptor.
 .I fd
-¤ÏÍ­¸ú¤Ê¥Õ¥¡¥¤¥ëµ­½Ò»Ò¤Ç¤Ê¤¤¡£
+は有効なファイル記述子でない。
 .TP
 .B ENOTTY
 .\"O The calling process does not have a controlling terminal, or
 .\"O it has one but it is not described by
 .\"O .IR fd .
-¸Æ¤Ó½Ð¤·¤ò¹Ô¤Ã¤¿¥×¥í¥»¥¹¤¬À©¸æüËö¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡¢¤â¤·¤¯¤Ï
-À©¸æüËö¤ò»ý¤Ã¤Æ¤¤¤ë¤¬
+呼び出しを行ったプロセスが制御端末を持っていない、もしくは
+制御端末を持っているが
 .I fd
-¤Ç»²¾È¤µ¤ì¤ë¤â¤Î¤È¤Ï°Û¤Ê¤ë¡£
+で参照されるものとは異なる。
 .\"O .SH VERSIONS
-.SH ¥Ð¡¼¥¸¥ç¥ó
+.SH バージョン
 .\"O .BR tcgetsid ()
 .\"O is provided in glibc since version 2.1.
 .BR tcgetsid ()
-¤Ï¡¢¥Ð¡¼¥¸¥ç¥ó 2.1 °Ê¹ß¤Î glibc ¤ÇÄ󶡤µ¤ì¤Æ¤¤¤ë¡£
+は、バージョン 2.1 以降の glibc で提供されている。
 .\"O .SH "CONFORMING TO"
-.SH ½àµò
+.SH 準拠
 POSIX.1-2001.
 .\"O .SH NOTES
-.SH Ãí°Õ
+.SH 注意
 .\"O This function is implemented via the
 .\"O .B TIOCGSID
 .\"O .BR ioctl (2),
 .\"O present
 .\"O since Linux 2.1.71.
-¤³¤Î´Ø¿ô¤Ï
+この関数は
 .B TIOCGSID
 .BR ioctl (2)
-·Ðͳ¤Ç¼Â¸½¤µ¤ì¤Æ¤ª¤ê¡¢
-Linux 2.1.71 °Ê¹ß¤Ç¸ºß¤¹¤ë¡£
+経由で実現されており、
+Linux 2.1.71 以降で存在する。
 .\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
+.SH 関連項目
 .BR getsid (2)