Bell 32V development
authorTom London <tbl@research.uucp>
Sat, 9 Dec 1978 03:48:29 +0000 (22:48 -0500)
committerTom London <tbl@research.uucp>
Sat, 9 Dec 1978 03:48:29 +0000 (22:48 -0500)
Work on file usr/man/man3/ferror.3s

Co-Authored-By: John Reiser <jfr@research.uucp>
Synthesized-from: 32v

usr/man/man3/ferror.3s [new file with mode: 0644]

diff --git a/usr/man/man3/ferror.3s b/usr/man/man3/ferror.3s
new file mode 100644 (file)
index 0000000..71fdc80
--- /dev/null
@@ -0,0 +1,61 @@
+.TH FERROR 3S 
+.SH NAME
+feof, ferror, clearerr, fileno \- stream status inquiries
+.SH SYNOPSIS
+.B #include <stdio.h>
+.PP
+.B feof(stream)
+.br
+.SM
+.B FILE
+.B *stream;
+.PP
+.B ferror(stream)
+.br
+.SM
+.B FILE
+.B *stream
+.PP
+.B clearerr(stream)
+.br
+.SM
+.B FILE
+.B *stream
+.PP
+.B fileno(stream)
+.br
+.SM
+.B FILE
+.B *stream;
+.SH DESCRIPTION
+.I Feof
+returns non-zero when end of file is read on the named input
+.I stream,
+otherwise zero.
+.PP
+.I Ferror
+returns non-zero when an error has occurred reading or writing
+the named
+.I stream,
+otherwise zero.
+Unless cleared by
+.I clearerr,
+the error indication lasts until
+the stream is closed.
+.PP
+.I Clrerr
+resets the error indication on the named
+.I stream.
+.PP
+.I Fileno
+returns the integer file descriptor
+associated with the
+.I stream,
+see
+.IR  open (2).
+.PP
+These functions
+are implemented as macros;
+they cannot be redeclared.
+.SH "SEE ALSO"
+fopen(3), open(2)