OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / ctermid.3
1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\" License.
23 .\" Modified Sat Jul 24 19:51:06 1993 by Rik Faith (faith@cs.unc.edu)
24 .\"*******************************************************************
25 .\"
26 .\" This file was generated with po4a. Translate the source file.
27 .\"
28 .\"*******************************************************************
29 .TH CTERMID 3 2007\-07\-26 GNU "Linux Programmer's Manual"
30 .SH 名前
31 ctermid \- 制御端末名の取得
32 .SH 書式
33 .nf
34 .\" POSIX also requires this function to be declared in <unistd.h>,
35 .\" and glibc does so if suitable feature test macros are defined.
36 \fB#include <stdio.h>\fP
37 .sp
38 \fBchar *ctermid(char *\fP\fIs\fP\fB);\fP
39 .fi
40 .sp
41 .in -4n
42 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
43 .in
44 .sp
45 .\" From <unistd.h>: _XOPEN_SOURCE
46 \fBctermid\fP(): _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
47 .SH 説明
48 \fBctermid\fP()  はプロセスの現在の制御端末のパス名を返す。 \fIs\fP が NULL の場合、静的なバッファを用いる。それ以外の場合、
49 \fIs\fP は端末パス名を保持するのに使用されるバッファへのポインタとなる。 シンボル定数 \fBL_ctermid\fP は返されるパス名の最大文字数である。
50 .SH 返り値
51 パス名へのポインタ。
52 .SH 準拠
53 SVr4, POSIX.1\-2001.
54 .SH バグ
55 返されたパスはたぶん制御端末を一意には特定できない。 たとえば \fI/dev/tty\fP のように。
56 .PP
57 .\" in glibc 2.3.x, x >= 4, the glibc headers threw an error
58 .\" if ctermid() was given an argument; fixed in 2.4.
59 プログラムが端末をオープンできることは保証されていない。
60 .SH 関連項目
61 \fBttyname\fP(3)