1 .\" Copyright (c) 1990, 1991 The Regents of the University of California.
2 .\" All rights reserved.
4 .\" This code is derived from software contributed to Berkeley by
5 .\" Chris Torek and the American National Standards Committee X3,
6 .\" on Information Processing Systems.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. All advertising materials mentioning features or use of this software
17 .\" must display the following acknowledgement:
18 .\" This product includes software developed by the University of
19 .\" California, Berkeley and its contributors.
20 .\" 4. Neither the name of the University nor the names of its contributors
21 .\" may be used to endorse or promote products derived from this software
22 .\" without specific prior written permission.
24 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 .\" @(#)ferror.3 6.8 (Berkeley) 6/29/91
39 .\" Converted for Linux, Mon Nov 29 14:24:40 1993, faith@cs.unc.edu
40 .\" Added remark on EBADF for fileno, aeb, 2001-03-22
42 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
43 .\" all rights reserved.
44 .\" Translated Fri Dec 26 10:49:26 JST 1997
45 .\" by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
46 .\" Updated Sat May 19 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
47 .\" Updated Fri Nov 2 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
49 .TH FERROR 3 2008-08-29 "" "Linux Programmer's Manual"
52 .\"O clearerr, feof, ferror, fileno \- check and reset stream status
53 clearerr, feof, ferror, fileno \- ストリームステータスのチェックとリセット
58 .BI "void clearerr(FILE *" stream );
60 .BI "int feof(FILE *" stream );
62 .BI "int ferror(FILE *" stream );
64 .BI "int fileno(FILE *" stream );
67 .\"O Feature Test Macro Requirements for glibc (see
68 .\"O .BR feature_test_macros (7)):
70 .RB ( feature_test_macros (7)
75 _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
80 .\"O clears the end-of-file and error indicators for the stream pointed to by
86 で示されるストリームの EOF(end-of-file) 指示子とエラー指示子をクリアする。
90 .\"O tests the end-of-file indicator for the stream pointed to by
92 .\"O returning nonzero if it is set.
93 .\"O The end-of-file indicator can only be
94 .\"O cleared by the function
100 で示されるストリームの EOF 指示子をテストし、
108 .\"O tests the error indicator for the stream pointed to by
110 .\"O returning nonzero if it is set.
111 .\"O The error indicator can only be reset by the
118 で示されるストリームのエラー指示子をテストし、
126 .\"O examines the argument
128 .\"O and returns its integer descriptor.
133 を調べ、その整数のディスクリプターを返す。
135 .\"O For nonlocking counterparts, see
136 .\"O .BR unlocked_stdio (3).
137 ロックせずにこれらの処理を行いたいときは、
138 .BR unlocked_stdio (3)
142 .\"O These functions should not fail and do not set the external variable
144 これらの関数は失敗すべきではなく、また、外部変数
147 .\"O (However, in case
149 .\"O detects that its argument is not a valid stream, it must
150 .\"O return \-1 and set
156 関数の場合で、引数が有効なストリームでなかった場合、
162 .\"O .SH "CONFORMING TO"
165 .\"O .BR clearerr (),
169 .\"O conform to C89 and C99.
180 .BR unlocked_stdio (3)