OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / draft / man3 / pow.3
index b2aded6..7bd70c3 100644 (file)
@@ -37,7 +37,7 @@
 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
 .\" Updated 2008-09-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
 .\"
-.TH POW 3  2008-08-10 "" "Linux Programmer's Manual"
+.TH POW 3  2010-09-12 "" "Linux Programmer's Manual"
 .\"O .SH NAME
 .SH Ì¾Á°
 .\"O pow, powf, powl \- power functions
@@ -68,9 +68,14 @@ glibc 
 .ad l
 .BR powf (),
 .BR powl ():
-_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
-.ad b
+.RE
+.ad
 .\"O .SH DESCRIPTION
 .SH ÀâÌÀ
 .\"O The
@@ -425,7 +430,6 @@ NaN 
 ¤Ë
 .B ERANGE
 ¤¬ÀßÄꤵ¤ì¤ë¡£
-.\" FIXME . glibc 2.8 gives EDOM
 .\"O A divide-by-zero floating-point exception
 .\"O .RB ( FE_DIVBYZERO )
 .\"O is raised.
@@ -475,23 +479,28 @@ C99, POSIX.1-2001.
 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
 .\"O .SH BUGS
 .SH ¥Ð¥°
-.\"O For a pole error,
-¶Ë¥¨¥é¡¼¤Î¾ì¹ç¡¢
+.\"O In glibc 2.9 and earlier,
 .\"
-.\" FIXME . this is as at glibc 2.8; check later if this bug is fixed
-.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6776
+.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6776
+.\"O when a pole error occurs,
 .\"O .I errno
 .\"O is set to
-.\"O .BR EDOM ;
-.\"O POSIX.1 says it should be set to
+.\"O .BR EDOM
+.\"O instead of the POSIX-mandated
 .\"O .BR ERANGE .
-.I errno
-¤Ë
-.B EDOM
-¤¬ÀßÄꤵ¤ì¤ë¡£
-POSIX.1 ¤Îµ¬Äê¤Ç¤Ï¡¢
+.\"O Since version 2.10,
+.\" or possibly 2.9, I haven't found the source code change
+.\" and I don't have a 2.9 system to test
+.\"O glibc does the right thing.
+glibc 2.9 ¤È¤½¤ì°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¡¢
+¶Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¡¢POSIX ¤ÇÍ׵ᤵ¤ì¤Æ¤¤¤ë
 .B ERANGE
-¤òÀßÄꤹ¤Ù¤­¤È¤µ¤ì¤Æ¤¤¤ë¡£
+¤Ç¤Ï¤Ê¤¯
+.B EDOM
+¤¬
+.I errno
+¤ËÀßÄꤵ¤ì¤ë¡£
+¥Ð¡¼¥¸¥ç¥ó 2.10 °Ê¹ß¤Î glibc ¤Ç¤Ï¡¢Àµ¤·¤¤Æ°ºî¤ò¤¹¤ë¡£
 
 .\"O If
 .\"O .I x