lgamma.3: glibc 2.10 fixed pole error bug

http://sourceware.org/bugzilla/show_bug.cgi?id=6777
was (silently) resolved.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-09-11 16:22:04 +02:00
parent 1f6982a0db
commit 707a25b2d5
1 changed files with 6 additions and 7 deletions

View File

@ -4,7 +4,7 @@
.\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
.\" <mtk.manpages@gmail.com> .\" <mtk.manpages@gmail.com>
.\" .\"
.TH LGAMMA 3 2008-08-05 "" "Linux Programmer's Manual" .TH LGAMMA 3 2010-09-11 "" "Linux Programmer's Manual"
.SH NAME .SH NAME
lgamma, lgammaf, lgammal, lgamma_r, lgammaf_r, lgammal_r, signgam \- lgamma, lgammaf, lgammal, lgamma_r, lgammaf_r, lgammal_r, signgam \-
log gamma function log gamma function
@ -120,7 +120,6 @@ The following errors can occur:
Pole error: \fIx\fP is a nonpositive integer Pole error: \fIx\fP is a nonpositive integer
.I errno .I errno
is set to is set to
.\" FIXME . glibc 2.8 gives EDOM!
.BR ERANGE .BR ERANGE
(but see BUGS). (but see BUGS).
A divide-by-zero floating-point exception A divide-by-zero floating-point exception
@ -146,14 +145,14 @@ The
.BR lgamma_r () .BR lgamma_r ()
functions are nonstandard, but present on several other systems. functions are nonstandard, but present on several other systems.
.SH BUGS .SH BUGS
For a pole error, In glibc 2.9 and earlier,
.\" .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6777
.\" FIXME . this is as at glibc 2.8; check later if this bug is fixed when a pole error occurs,
.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6777
.I errno .I errno
is set to is set to
.BR EDOM ; .BR EDOM ;
POSIX.1 says it should be set to instead of the POSIX-mandated
.BR ERANGE . .BR ERANGE .
Since version 2.10, glibc does the right thing.
.SH "SEE ALSO" .SH "SEE ALSO"
.BR tgamma (3) .BR tgamma (3)