OSDN Git Service

(split) LDP: Update release pages based on LDP 3.54 release
[linuxjm/LDP_man-pages.git] / release / man3 / ctermid.3
index de32c54..67c7994 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
 .\"
+.\" %%%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.
+.\" %%%LICENSE_END
+.\"
 .\" Modified Sat Jul 24 19:51:06 1993 by Rik Faith (faith@cs.unc.edu)
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 1997 Hiroaki Nagoya
 .\"         all rights reserved.
 .\" Translated Mon Feb 10 1997 by Hiroaki Nagoya <nagoya@is.titech.ac.jp>
 .\"
-.TH CTERMID 3  2007-07-26 "GNU" "Linux Programmer's Manual"
-.SH Ì¾Á°
-ctermid \- À©¸æüËö̾¤Î¼èÆÀ
-.SH ½ñ¼°
+.TH CTERMID 3 2013\-07\-04 GNU "Linux Programmer's Manual"
+.SH 名前
+ctermid \- 制御端末名の取得
+.SH 書式
 .nf
-.B #include <stdio.h>
+.\" POSIX also requires this function to be declared in <unistd.h>,
+.\" and glibc does so if suitable feature test macros are defined.
+\fB#include <stdio.h>\fP
 .sp
-.BI "char *ctermid(char *" "s" );
+\fBchar *ctermid(char *\fP\fIs\fP\fB);\fP
 .fi
 .sp
 .in -4n
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
-.RB ( feature_test_macros (7)
-»²¾È):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
-.BR ctermid ():
-_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
 .\" From <unistd.h>: _XOPEN_SOURCE
-.SH ÀâÌÀ
-.BR ctermid ()
-¤Ï¥×¥í¥»¥¹¤Î¸½ºß¤ÎÀ©¸æüËö¤Î¥Ñ¥¹Ì¾¤òÊÖ¤¹¡£
-.I s
-¤¬ NULL ¤Î¾ì¹ç¡¢ÀÅŪ¤Ê¥Ð¥Ã¥Õ¥¡¤òÍѤ¤¤ë¡£¤½¤ì°Ê³°¤Î¾ì¹ç¡¢
-.I s
-¤ÏüËö¥Ñ¥¹Ì¾¤òÊÝ»ý¤¹¤ë¤Î¤Ë»ÈÍѤµ¤ì¤ë¥Ð¥Ã¥Õ¥¡¤Ø¤Î¥Ý¥¤¥ó¥¿¤È¤Ê¤ë¡£
-¥·¥ó¥Ü¥ëÄê¿ô
-.B L_ctermid
-¤ÏÊÖ¤µ¤ì¤ë¥Ñ¥¹Ì¾¤ÎºÇÂçʸ»ú¿ô¤Ç¤¢¤ë¡£
-.SH ÊÖ¤êÃÍ
-¥Ñ¥¹Ì¾¤Ø¤Î¥Ý¥¤¥ó¥¿¡£
-.SH ½àµò
-SVr4, POSIX.1-2001.
-.SH ¥Ð¥°
-ÊÖ¤µ¤ì¤¿¥Ñ¥¹¤Ï¤¿¤Ö¤óÀ©¸æüËö¤ò°ì°Õ¤Ë¤ÏÆÃÄê¤Ç¤­¤Ê¤¤¡£
-¤¿¤È¤¨¤Ð
-.I /dev/tty
-¤Î¤è¤¦¤Ë¡£
+\fBctermid\fP(): _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
+.SH 説明
+\fBctermid\fP()  はプロセスの現在の制御端末のパス名を返す。 \fIs\fP が NULL の場合、静的なバッファを用いる。それ以外の場合、
+\fIs\fP は端末パス名を保持するのに使用されるバッファへのポインタとなる。 シンボル定数 \fBL_ctermid\fP は返されるパス名の最大文字数である。
+.SH 返り値
+パス名へのポインタ。
+.SH 属性
+.SS "マルチスレッディング (pthreads(7) 参照)"
+\fBctermid\fP() 関数は例外付きでスレッドセーフである。 NULL パラメータで呼び出された場合はスレッドセーフではない。
+.SH 準拠
+SVr4, POSIX.1\-2001.
+.SH バグ
+返されたパスはたぶん制御端末を一意には特定できない。 たとえば \fI/dev/tty\fP のように。
 .PP
-¥×¥í¥°¥é¥à¤¬Ã¼Ëö¤ò¥ª¡¼¥×¥ó¤Ç¤­¤ë¤³¤È¤ÏÊݾڤµ¤ì¤Æ¤¤¤Ê¤¤¡£
 .\" in glibc 2.3.x, x >= 4, the glibc headers threw an error
 .\" if ctermid() was given an argument; fixed in 2.4.
-.SH ´ØÏ¢¹àÌÜ
-.BR ttyname (3)
+プログラムが端末をオープンできることは保証されていない。
+.SH 関連項目
+\fBttyname\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。