diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-02-07 11:11:24 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-02-07 12:01:36 +0100 |
| commit | a23bf7259c9d4ef0af4a8ede1e81040d4f11e831 (patch) | |
| tree | 9685a85f55d043b16b4045a60d37cbd7401c0f98 /man3 | |
| parent | 5b921fc469049c4bc2002e512a0f1d15d8603d3d (diff) | |
| download | man-pages-a23bf7259c9d4ef0af4a8ede1e81040d4f11e831.tar.gz | |
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>
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/ferror.3 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/man3/ferror.3 b/man3/ferror.3 index 9f1d4264e6..c62c35334c 100644 --- a/man3/ferror.3 +++ b/man3/ferror.3 @@ -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), |
