OSDN Git Service

Update draft for LDP 3.67
[linuxjm/LDP_man-pages.git] / draft / man3 / tcgetsid.3
index 2401cf7..98c751d 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
 .\"         all rights reserved.
 .\" Translated Sat Jul 19 03:06:35 JST 2003
 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
 .\"
-.TH TCGETSID 3 2010-09-10 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
-.\"O tcgetsid \- get session ID
+.TH TCGETSID 3 2014\-01\-13 GNU "Linux Programmer's Manual"
 .SH 名前
 tcgetsid \- セッションID を取得する
-.\"O .SH SYNOPSIS
 .SH 書式
-.nf
-.\"O .BR "#define _XOPEN_SOURCE 500" "        /* See feature_test_macros(7) */"
-.BR "#define _XOPEN_SOURCE 500" "        /* feature_test_macros(7) 参照 */"
+\fB#define _XOPEN_SOURCE 500\fP /* feature_test_macros(7) 参照 */
 .br
-.B "#include <termios.h>"
+\fB#include <termios.h>\fP
 .sp
-.BI "pid_t tcgetsid(int " fd );
-.fi
-.\"O .SH DESCRIPTION
+\fBpid_t tcgetsid(int \fP\fIfd\fP\fB);\fP
 .SH 説明
-.\"O The function
-.\"O .BR tcgetsid ()
-.\"O returns the session ID of the current session that has the
-.\"O terminal associated to
-.\"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() の呼び出しを行うプロセスの制御端末で
-なければならない。
-.\"O .SH "RETURN VALUE"
+関数 \fBtcgetsid\fP()  は、制御端末として \fIfd\fP に対応する端末を持つカレント・セッションのセッションID を返す。 この端末は
+\fBtcgetsid\fP() の呼び出しを行うプロセスの制御端末で なければならない。
 .SH 返り値
-.\"O When
-.\"O .I fd
-.\"O refers to the controlling terminal of our session,
-.\"O the function
-.\"O .BR tcgetsid ()
-.\"O will return the session ID of this session.
-.I fd
-が呼び出しを行ったセッションの制御端末を参照している場合、
-関数
-.BR tcgetsid ()
-はこのセッションのセッションID を返す。
-.\"O Otherwise, \-1 is returned, and
-.\"O .I errno
-.\"O is set appropriately.
-そうでない場合、 \-1 が返され、
-.I errno
-が適切に設定される。
-.\"O .SH ERRORS
+\fIfd\fP が呼び出しを行ったセッションの制御端末を参照している場合、 関数 \fBtcgetsid\fP()  はこのセッションのセッションID を返す。
+そうでない場合、 \-1 が返され、 \fIerrno\fP が適切に設定される。
 .SH エラー
-.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
+.TP 
+\fBEBADF\fP
+\fIfd\fP が有効なファイルディスクリプタではない。
+.TP 
+\fBENOTTY\fP
+呼び出しを行ったプロセスが制御端末を持っていない、もしくは 制御端末を持っているが \fIfd\fP で参照されるものとは異なる。
 .SH バージョン
-.\"O .BR tcgetsid ()
-.\"O is provided in glibc since version 2.1.
-.BR tcgetsid ()
-は、バージョン 2.1 以降の glibc で提供されている。
-.\"O .SH "CONFORMING TO"
+\fBtcgetsid\fP()  は、バージョン 2.1 以降の glibc で提供されている。
+.SH 属性
+.SS "マルチスレッディング (pthreads(7) 参照)"
+\fBtcgetsid\fP() 関数はスレッドセーフではない。
 .SH 準拠
-POSIX.1-2001.
-.\"O .SH NOTES
+POSIX.1\-2001.
 .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 以降で存在する。
-.\"O .SH "SEE ALSO"
+この関数は \fBTIOCGSID\fP \fBioctl\fP(2)  経由で実現されており、 Linux 2.1.71 以降で存在する。
 .SH 関連項目
-.BR getsid (2)
+\fBgetsid\fP(2)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。