2 .\" Copyright 1989 AT&T Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH FERROR 3C "Feb 17, 2005"
8 ferror, feof, clearerr, fileno \- stream status inquiries
14 \fBint\fR \fBferror\fR(\fBFILE *\fR\fIstream\fR);
19 \fBint\fR \fBfeof\fR(\fBFILE *\fR\fIstream\fR);
24 \fBvoid\fR \fBclearerr\fR(\fBFILE *\fR\fIstream\fR);
29 \fBint\fR \fBfileno\fR(\fBFILE *\fR\fIstream\fR);
35 The \fBferror()\fR function returns a non-zero value when an error has
36 previously occurred reading from or writing to the named \fIstream\fR (see
37 \fBIntro\fR(3)). It returns \fB0\fR otherwise.
40 The \fBfeof()\fR function returns a non-zero value when \fBEOF\fR has
41 previously been detected reading the named input \fIstream\fR. It returns
45 The \fBclearerr()\fR function resets the error indicator and \fBEOF\fR
46 indicator to 0 on the named \fIstream\fR.
49 The \fBfileno()\fR function returns the integer file descriptor associated with
50 the named \fIstream\fR; see \fBopen\fR(2).
54 See \fBattributes\fR(5) for descriptions of the following attributes:
62 ATTRIBUTE TYPE ATTRIBUTE VALUE
64 Interface Stability Standard
72 \fBopen\fR(2), \fBIntro\fR(3), \fBfopen\fR(3C), \fBstdio\fR(3C),
73 \fBattributes\fR(5), \fBstandards\fR(5)