ferror.3: POSIX.1-2008: these functions won't change 'errno' if 'stream' is valid

See https://www.austingroupbugs.net/view.php?id=401.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-02-07 11:11:24 +01:00
parent 5b921fc469
commit a23bf7259c
1 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,5 @@
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" and Copyright (C) 2021 Michael Kerrisk <mtk.manpages@gmail.com>
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
@ -89,7 +90,7 @@ function returns nonzero if the error indicator is set for
.IR stream ;
otherwise, it returns zero.
.SH ERRORS
These functions should not fail and do not set the external variable
These functions should not fail and do not set
.IR errno .
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
@ -117,6 +118,14 @@ The functions
and
.BR ferror ()
conform to C89, C99, POSIX.1-2001, and POSIX.1-2008.
.SH NOTES
POSIX.1-2008 specifies
.\"https://www.austingroupbugs.net/view.php?id=401
that these functions shall not change the value of
.I errno
if
.I stream
is valid.
.SH SEE ALSO
.BR open (2),
.BR fdopen (3),