diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-02-06 10:26:43 +0100 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-02-06 10:26:43 +0100 |
commit | bdd65639ba37af073e97dffbd74c1dbdec70ef35 (patch) | |
tree | e27e0613eda6e81a39782e6fdf44cfab93eb811b | |
parent | c7c869e66dada19aadc1845bbe28aa617bb63716 (diff) | |
download | man-pages-bdd65639ba37af073e97dffbd74c1dbdec70ef35.tar.gz |
setbuf.3: POSIX doesn't require to errno to be unchanged after successful setbuf()
See https://www.austingroupbugs.net/view.php?id=397#c799
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r-- | man3/setbuf.3 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/man3/setbuf.3 b/man3/setbuf.3 index b79ddfd88b..ccfeb83ba4 100644 --- a/man3/setbuf.3 +++ b/man3/setbuf.3 @@ -188,6 +188,21 @@ The and .BR setvbuf () functions conform to C89 and C99. +.SH NOTES +POSIX notes +.\" https://www.austingroupbugs.net/view.php?id=397#c799 +.\" 0000397: setbuf and errno +that the value of +.I errno +is unspecified after a call to +.BR setbuf () +and further notes that, since the value of +.I errno +is not required to be unchanged after a successful call to +.BR setbuf (), +applications should instead use +.BR setvbuf () +in order to detect errors. .SH BUGS .\" The .\" .BR setbuffer () |