OSDN Git Service

Address unmatch newlines in special ja.po
[linuxjm/LDP_man-pages.git] / draft / man3 / isfdtype.3
1 .\" t
2 .\" Copyright (C) 2014 Michael Kerrisk <mtk.manpages@gmail.com>
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH ISFDTYPE 3 2014\-03\-13 Linux "Linux Programmer's Manual"
32 .SH 名前
33 isfdtype \- ファイルディスクリプターのファイル種別を検査する
34 .SH 書式
35 .nf
36 \fB#include <sys/stat.h>\fP
37 \fB#include <sys/socket.h>\fP
38
39 \fBint isfdtype(int \fP\fIfd\fP\fB, int \fP\fIfdtype\fP\fB);\fP
40 .fi
41 .sp
42 .in -4n
43 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
44 .in
45 .sp
46 \fBisfdtype\fP():
47 .ad l
48 .RS 4
49 .PD 0
50 .TP  4
51 glibc 2.20 以降:
52 _DEFAULT_SOURCE
53 .TP  4
54 glibc 2.20 より前:
55 _BSD_SOURCE || _SVID_SOURCE
56 .PD
57 .RE
58 .ad b
59 .SH 説明
60 \fBisfdtype\fP() 関数はファイルディスクリプター \fIfd\fP がタイプが \fIfdtype\fP のファイルを参照しているかを検査する。
61 \fIfdtype\fP 引き数には、\fI<sys/stat.h>\fP で定義されている \fBS_IF*\fP 定数のひとつ (\fBS_IFREG\fP
62 など) を指定する。 \fBS_IF*\fP 定数の説明は \fBstat\fP(2) にある。
63 .SH 返り値
64 \fBisfdtype\fP() 関数は、ファイルディスクリプター \fIfd\fP がタイプ \fIfdtype\fP であった場合に 1 を返し、そうでない場合に 0
65 を返す。 エラーの場合、 \-1 を返し、\fIerrno\fP に原因を示す値を設定する。
66 .SH エラー
67 \fBisfdtype\fP() 関数は \fBfstat\fP(3) と同じエラーで失敗する。
68 .SH 準拠
69 \fBisfdtype\fP() 関数はどの標準でも規定されていないが、 POSIX.1g 標準のドラフトに登場したことはある。 OpenBSD と
70 Tru64 UNIX に存在し、おそらく他のシステムにも存在する (OpenBSD と Tru64 UNIX のどちらの場合でも必要なヘッダーファイルは
71 \fI<sys/stat.h>\fP だけであり、POSIX.1g ドラフトに書かれていたのと同じである)。
72 .SH 注意
73 移植性が求められるアプリケーションでは \fBfstat\fP(3) を使用すべきである。
74 .SH 関連項目
75 \fBfstat\fP(3)
76 .SH この文書について
77 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.78 の一部
78 である。プロジェクトの説明とバグ報告に関する情報は
79 http://www.kernel.org/doc/man\-pages/ に書かれている。