tgamma.3: Since glibc 2.18, errno is correctly set to EDOM when (x == -infinity))

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-10-30 07:52:04 +01:00
parent 8ee4373d37
commit 31e025bf45
1 changed files with 7 additions and 8 deletions

View File

@ -113,8 +113,6 @@ when calling these functions.
The following errors can occur:
.TP
Domain error: \fIx\fP is a negative integer, or negative infinity
.\" FIXME . errno is not set to EDOM for x == -inf
.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6809
.I errno
is set to
.BR EDOM .
@ -169,13 +167,14 @@ that returns something else (see
.BR gamma (3)
for details).
.SH BUGS
If
.I x
is negative infinity,
Before version 2.18, the glibc implementation of these functions did not set
.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6809
.I errno
is not set (it should be set to
.BR EDOM ).
.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6809
to
.B EDOM
when
.I x
is negative infinity.
In glibc versions 2.3.3 and earlier,
an argument of +0 or \-0 incorrectly produced a domain error