OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / isatty.3
1 .\" Copyright 2008, Linux Foundation, written by Michael Kerrisk
2 .\"     <mtk.manpages@gmail.com>
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
24 .\"*******************************************************************
25 .\"
26 .\" This file was generated with po4a. Translate the source file.
27 .\"
28 .\"*******************************************************************
29 .TH ISATTY 3 2008\-12\-03 Linux "Linux Programmer's Manual"
30 .SH 名前
31 isatty \- ファイルディスクリプタが端末を参照しているかをチェックする
32 .SH 書式
33 .nf
34 \fB#include <unistd.h>\fP
35 .sp
36 \fBint isatty(int \fP\fIfd\fP\fB);\fP
37 .fi
38 .SH 説明
39 \fBisatty\fP()  関数は、 \fIfd\fP が端末を参照するオープンされたファイルディスクリプタかどうかを チェックする。
40 .SH 返り値
41 \fBisatty\fP()  は、 \fIfd\fP が端末を参照するオープンされたファイルディスクリプタであれば 1 を返す。 そうでなければ 0 を返し、
42 \fIerrno\fP にエラーを示す値を設定する。
43 .SH エラー
44 .TP 
45 \fBEBADF\fP
46 \fIfd\fP が有効なファイルディスクリプタではない。
47 .TP 
48 \fBEINVAL\fP
49 .\" FIXME File a bug for this?
50 \fIfd\fP が端末以外のファイルを参照している。 POSIX.1\-2001 では、この場合にエラー \fBENOTTY\fP を返すと規定されている。
51 .SH 準拠
52 SVr4, 4.3BSD, POSIX.1\-2001.
53 .SH 関連項目
54 \fBfstat\fP(2), \fBttyname\fP(3)