diff --git a/man3/remainder.3 b/man3/remainder.3 index 2863e3589..031a7713a 100644 --- a/man3/remainder.3 +++ b/man3/remainder.3 @@ -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