.\" by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\" Updated 2008-09-14, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
-.TH ATANH 3 2008-08-05 "" "Linux Programmer's Manual"
+.TH ATANH 3 2010-09-11 "" "Linux Programmer's Manual"
.\"O .SH NAME
.SH ̾Á°
.\"O atanh, atanhf, atanhl \- inverse hyperbolic tangent function
.sp
.ad l
.BR atanh ():
-_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _ISOC99_SOURCE; or
+.RS 4
+_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
+_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED || _ISOC99_SOURCE ||
+_POSIX_C_SOURCE\ >=\ 200112L;
+.br
+or
.I cc\ -std=c99
+.RE
.br
.BR atanhf (),
.BR atanhl ():
-_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
+.RS 4
+_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
+_POSIX_C_SOURCE\ >=\ 200112L;
+.br
+or
.I cc\ -std=c99
+.RE
.ad b
.\"O .SH DESCRIPTION
.SH ÀâÌÀ
¤Ë
.B ERANGE
¤¬ÀßÄꤵ¤ì¤ë (⤷¡Ö¥Ð¥°¡×¤ÎÀá¤â»²¾È)¡£
-.\" FIXME . glibc actually gives EDOM for this case
.\"O A divide-by-zero floating-point exception
.\"O .RB ( FE_DIVBYZERO )
.\"O is raised.
ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
.\"O .SH BUGS
.SH ¥Ð¥°
-.\"O For a pole error,
-¶Ë¥¨¥é¡¼¤Î¾ì¹ç¤Ë¡¢
-.\"
-.\" FIXME . this is as at glibc 2.8; check later if this bug is fixed
+.\"O 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
+.\"O when a pole error occurs,
.\"O .I errno
-.\"O is set to
-.\"O .BR EDOM ;
-.I errno
-¤Ë
-.B EDOM
-¤¬ÀßÄꤵ¤ì¤ë¡£
-.\"O POSIX.1 says it should be set to
+.\"O as set to
+.\"O .BR EDOM
+.\"O instead of the POSIX-mandated
.\"O .BR ERANGE .
-POSIX.1 ¤Ç¤Ï¡¢
+.\"O Since version 2.10, glibc does the right thing.
+glibc 2.9 ¤È¤½¤ì°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¡¢
+¶Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¡¢POSIX ¤ÇÍ׵ᤵ¤ì¤Æ¤¤¤ë
.B ERANGE
-¤òÀßÄꤹ¤Ù¤¤È¤Ê¤Ã¤Æ¤¤¤ë¡£
+¤Ç¤Ï¤Ê¤¯
+.B EDOM
+¤¬
+.I errno
+¤ËÀßÄꤵ¤ì¤ë¡£
+¥Ð¡¼¥¸¥ç¥ó 2.10 °Ê¹ß¤Î glibc ¤Ç¤Ï¡¢Àµ¤·¤¤Æ°ºî¤ò¤¹¤ë¡£
.\"O .SH "SEE ALSO"
.SH ´ØÏ¢¹àÌÜ
.BR acosh (3),