mirror of https://github.com/mkerrisk/man-pages
ferror.3: Remove fileno(3) content that was migrated to new fileno(3) page
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
acd8a0e37e
commit
15267cb8a1
|
@ -39,11 +39,10 @@
|
|||
.\"
|
||||
.\"
|
||||
.\" Converted for Linux, Mon Nov 29 14:24:40 1993, faith@cs.unc.edu
|
||||
.\" Added remark on EBADF for fileno, aeb, 2001-03-22
|
||||
.\"
|
||||
.TH FERROR 3 2019-03-06 "" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
clearerr, feof, ferror, fileno \- check and reset stream status
|
||||
clearerr, feof, ferror \- check and reset stream status
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <stdio.h>
|
||||
|
@ -51,17 +50,6 @@ clearerr, feof, ferror, fileno \- check and reset stream status
|
|||
.BI "void clearerr(FILE *" stream );
|
||||
.BI "int feof(FILE *" stream );
|
||||
.BI "int ferror(FILE *" stream );
|
||||
.BI "int fileno(FILE *" stream );
|
||||
.fi
|
||||
.PP
|
||||
.RS -4
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.RE
|
||||
.PP
|
||||
.BR fileno ():
|
||||
.nf
|
||||
_POSIX_C_SOURCE
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
The function
|
||||
|
@ -86,32 +74,11 @@ The error indicator can be reset only by the
|
|||
.BR clearerr ()
|
||||
function.
|
||||
.PP
|
||||
The function
|
||||
.BR fileno ()
|
||||
examines the argument
|
||||
.I stream
|
||||
and returns the integer file descriptor used to implement this stream.
|
||||
The file descriptor is still owned by
|
||||
.I stream
|
||||
and will be closed when
|
||||
.BR fclose (3)
|
||||
is called.
|
||||
Duplicate the file descriptor with
|
||||
.BR dup (2)
|
||||
before passing it to code that might close it.
|
||||
.PP
|
||||
For nonlocking counterparts, see
|
||||
.BR unlocked_stdio (3).
|
||||
.SH ERRORS
|
||||
These functions should not fail and do not set the external variable
|
||||
.IR errno .
|
||||
(However, in case
|
||||
.BR fileno ()
|
||||
detects that its argument is not a valid stream, it must
|
||||
return \-1 and set
|
||||
.I errno
|
||||
to
|
||||
.BR EBADF .)
|
||||
.SH ATTRIBUTES
|
||||
For an explanation of the terms used in this section, see
|
||||
.BR attributes (7).
|
||||
|
@ -125,8 +92,7 @@ Interface Attribute Value
|
|||
T{
|
||||
.BR clearerr (),
|
||||
.BR feof (),
|
||||
.BR ferror (),
|
||||
.BR fileno ()
|
||||
.BR ferror ()
|
||||
T} Thread safety MT-Safe
|
||||
.TE
|
||||
.hy
|
||||
|
@ -139,12 +105,9 @@ The functions
|
|||
and
|
||||
.BR ferror ()
|
||||
conform to C89, C99, POSIX.1-2001, and POSIX.1-2008.
|
||||
.PP
|
||||
The function
|
||||
.BR fileno ()
|
||||
conforms to POSIX.1-2001 and POSIX.1-2008.
|
||||
.SH SEE ALSO
|
||||
.BR open (2),
|
||||
.BR fdopen (3),
|
||||
.BR fileno (3),
|
||||
.BR stdio (3),
|
||||
.BR unlocked_stdio (3)
|
||||
|
|
Loading…
Reference in New Issue