aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-05-26 12:23:54 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-05-26 13:25:54 +0200
commit696b65a571f5e278aa8ff1d325dfff59f455ef31 (patch)
treeddaec3d5bfc859247ffb2eaa0386157b69cf46c1 /man3
parentc2e0ff42a47407b932ce8eb1435511515902217d (diff)
downloadman-pages-696b65a571f5e278aa8ff1d325dfff59f455ef31.tar.gz
y0.3: These functions now correctly diagnose a pole error
The fix was in glibc 2.19. See https://sourceware.org/bugzilla/show_bug.cgi?id=6807 Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/y0.322
1 files changed, 10 insertions, 12 deletions
diff --git a/man3/y0.3 b/man3/y0.3
index 07e20bd782..8f8cb3ac3c 100644
--- a/man3/y0.3
+++ b/man3/y0.3
@@ -187,15 +187,11 @@ Pole error: \fIx\fP is 0.0
.\" as a range error.
.I errno
is set to
-.\" FIXME . y0(0.0) gives EDOM
.BR ERANGE
-(but see BUGS).
-No
+and an
.B FE_DIVBYZERO
-exception is returned by
-.BR fetestexcept (3)
-for this case.
-.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6808
+exception is raised
+(but see BUGS).
.TP
Range error: result underflow
.\" e.g., y0(1e33) on glibc 2.8/x86-32
@@ -253,15 +249,17 @@ conform to SVr4, 4.3BSD,
POSIX.1-2001, POSIX.1-2008.
The others are nonstandard functions that also exist on the BSDs.
.SH BUGS
-On a pole error, these functions set
+Before glibc 2.19,
+.\" http://sourceware.org/bugzilla/show_bug.cgi?id=6807
+these functions misdiagnosed pole errors:
.I errno
-to
+was set to
.BR EDOM ,
instead of
.BR ERANGE
-as POSIX.1-2004 requires.
-.\" FIXME .
-.\" Bug raised: http://sourceware.org/bugzilla/show_bug.cgi?id=6807
+and no
+.B FE_DIVBYZERO
+exception was raised.
.PP
In glibc version 2.3.2 and earlier,
.\" FIXME . Actually, 2.3.2 is the earliest test result I have; so yet