atanh.3: glibc 2.10 fixed pole error bug

http://sourceware.org/bugzilla/show_bug.cgi?id=6759
was resolved.

Reported-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Reported-by: Jan Kratochvil  <jan.kratochvil@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-09-11 08:48:02 +02:00
parent a6e9960e8f
commit 1f6982a0db
1 changed files with 8 additions and 9 deletions

View File

@ -30,7 +30,7 @@
.\" Modified 2002-07-27 by Walter Harms
.\" (walter.harms@informatik.uni-oldenburg.de)
.\"
.TH ATANH 3 2008-08-05 "" "Linux Programmer's Manual"
.TH ATANH 3 2010-09-11 "" "Linux Programmer's Manual"
.SH NAME
atanh, atanhf, atanhl \- inverse hyperbolic tangent function
.SH SYNOPSIS
@ -118,7 +118,6 @@ Pole error: \fIx\fP is +1 or \-1
is set to
.BR ERANGE
(but see BUGS).
.\" FIXME . glibc actually gives EDOM for this case
A divide-by-zero floating-point exception
.RB ( FE_DIVBYZERO )
is raised.
@ -129,16 +128,16 @@ The variant returning
also conforms to
SVr4, 4.3BSD, C89.
.SH BUGS
For a pole error,
.\"
.\" FIXME . this is as at glibc 2.8; check later if this bug is fixed
In glibc 2.9 and earlier,
.\" Bug: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6759
.\" This can be seen in sysdeps/ieee754/k_standard.c
.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6759
when a pole error occurs,
.I errno
is set to
.BR EDOM ;
POSIX.1 says it should be set to
as set to
.BR EDOM
instead of the POSIX-mandated
.BR ERANGE .
Since version 2.10, glibc does the right thing.
.SH "SEE ALSO"
.BR acosh (3),
.BR asinh (3),