]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
remainder.3: Document fixes for EDOM handling for range errors
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 19 Nov 2016 08:48:06 +0000 (09:48 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 19 Nov 2016 10:28:46 +0000 (11:28 +0100)
The bug http://sources.redhat.com/bugzilla/show_bug.cgi?id=6783
was fixed in glibc 2.15.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/remainder.3

index 2863e35898d36c9e40a767016cb7d6a9e6937700..031a7713afe56db1ec5ca7f375ac051e6cca6517 100644 (file)
@@ -152,9 +152,10 @@ when calling these functions.
 The following errors can occur:
 .TP
 Domain error: \fIx\fP is an infinity and \fIy\fP is not a NaN
-.\" .I errno
-.\" is set to
-.\" .BR EDOM .
+.I errno
+is set to
+.BR EDOM
+(but see BUGS).
 An invalid floating-point exception
 .RB ( FE_INVALID )
 is raised.
@@ -162,9 +163,6 @@ is raised.
 These functions do not set
 .IR errno
 for this case.
-.\" FIXME . Is it intentional that these functions do not set errno?
-.\" They do set errno for the y == 0 case, below.
-.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6783
 .TP
 Domain error: \fIy\fP is zero\" [XXX see bug above] and \fIx\fP is not a NaN
 .I errno
@@ -225,6 +223,18 @@ returns a NaN, as expected, but wrongly causes a domain error;
 it should yield a silent NaN.
 .\" FIXME . this bug occurs as at glibc 2.8.
 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6779
+
+Before glibc 2.15,
+.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6783
+.I errno
+was not set to
+.BR EDOM
+for the domain error that occurs when
+.I x
+is an infinity and
+.I y
+is not a NaN.
+.I errno was not set 
 .SH EXAMPLE
 The call "remainder(29.0, 3.0)" returns \-1.
 .SH SEE ALSO