BSD 4_3 release
[unix-history] / usr / man / man3 / ferror.3s
index ff393d2..173f2b2 100644 (file)
@@ -1,6 +1,13 @@
-.TH FERROR 3S  "19 January 1983"
+.\" 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 3S  "May 14, 1986"
+.UC 4
 .SH NAME
 .SH NAME
-feof, ferror, clearerr, fileno \- stream status inquiries
+ferror, feof, clearerr, fileno \- stream status inquiries
 .SH SYNOPSIS
 .B #include <stdio.h>
 .PP
 .SH SYNOPSIS
 .B #include <stdio.h>
 .PP
@@ -30,32 +37,37 @@ feof, ferror, clearerr, fileno \- stream status inquiries
 .SH DESCRIPTION
 .I Feof
 returns non-zero when end of file is read on the named input
 .SH DESCRIPTION
 .I Feof
 returns non-zero when end of file is read on the named input
-.I stream,
+.IR stream ,
 otherwise zero.
 otherwise zero.
+Unless cleared by
+.IR clearerr ,
+the end-of-file indication lasts until
+the stream is closed.
 .PP
 .I Ferror
 returns non-zero when an error has occurred reading or writing
 the named
 .PP
 .I Ferror
 returns non-zero when an error has occurred reading or writing
 the named
-.I stream,
+.IR stream ,
 otherwise zero.
 Unless cleared by
 otherwise zero.
 Unless cleared by
-.I clearerr,
+.IR clearerr ,
 the error indication lasts until
 the stream is closed.
 .PP
 the error indication lasts until
 the stream is closed.
 .PP
-.I Clrerr
-resets the error indication on the named
-.I stream.
+.I Clearerr
+resets the error and end-of-file indicators on the named
+.IR stream .
 .PP
 .I Fileno
 returns the integer file descriptor
 associated with the
 .PP
 .I Fileno
 returns the integer file descriptor
 associated with the
-.I stream,
+.IR stream ,
 see
 see
-.IR  open (2).
+.IR open (2).
 .PP
 .PP
-These functions
+Currently all of these functions
 are implemented as macros;
 they cannot be redeclared.
 .SH "SEE ALSO"
 are implemented as macros;
 they cannot be redeclared.
 .SH "SEE ALSO"
-fopen(3), open(2)
+fopen(3S),
+open(2)