forked from Stichting-MINIX-Research-Foundation/minix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathferror.3
More file actions
58 lines (57 loc) · 1.22 KB
/
Copy pathferror.3
File metadata and controls
58 lines (57 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
.\" Copyright (c) 1980 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" @(#)ferror.3s 6.3 (Berkeley) 5/14/86
.\"
.TH FERROR 3 "May 14, 1986"
.UC 4
.SH NAME
ferror, feof, clearerr, fileno \- stream status inquiries
.SH SYNOPSIS
.nf
.ft B
#include <stdio.h>
int feof(FILE *\fIstream\fP)
int ferror(FILE *\fIstream\fP)
int clearerr(FILE *\fIstream\fP)
int fileno(FILE *\fIstream\fP)
.ft R
.fi
.SH DESCRIPTION
.B Feof
returns non-zero when end of file is read on the named input
.IR stream ,
otherwise zero.
Unless cleared by
.BR clearerr ,
the end-of-file indication lasts until
the stream is closed.
.PP
.B Ferror
returns non-zero when an error has occurred reading or writing
the named
.IR stream ,
otherwise zero.
Unless cleared by
.BR clearerr ,
the error indication lasts until
the stream is closed.
.PP
.B Clearerr
resets the error and end-of-file indicators on the named
.IR stream .
.PP
.B Fileno
returns the integer file descriptor
associated with the
.IR stream ,
see
.BR open (2).
.PP
Currently all of these functions
are implemented as macros;
they cannot be redeclared.
.SH "SEE ALSO"
.BR fopen (3),
.BR open (2).