OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / ilogb.3
index c929ae7..f0c46d9 100644 (file)
@@ -26,7 +26,7 @@
 .\"
 .\" Inspired by a page by Walter Harms created 2002-08-10
 .\"
-.TH ILOGB 3 2013-08-06 "" "Linux Programmer's Manual"
+.TH ILOGB 3 2014-12-31 "" "Linux Programmer's Manual"
 .SH NAME
 ilogb, ilogbf, ilogbl \- get integer exponent of a floating-point value
 .SH SYNOPSIS
@@ -116,33 +116,23 @@ when calling these functions.
 The following errors can occur:
 .TP
 Domain error: \fIx\fP is 0 or a NaN
-.\" .I errno
-.\" is set to
-.\" .BR EDOM .
 An invalid floating-point exception
 .RB ( FE_INVALID )
-is raised.
+is raised, and
+.I errno
+is set to
+.BR EDOM
+(but see BUGS).
 .IP
-These functions do not set
-.IR errno
-for this case.
-.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6794
 .TP
 Domain error: \fIx\fP is an infinity
-.\" .I errno
-.\" is set to
-.\" .BR EDOM .
-.\" An invalid floating-point exception
-.\" .RB ( FE_INVALID )
-.\" is raised.
-.IP
-These functions do not set
-.IR errno
-or raise an exception for this case.
-.\" FIXME . Is it intentional that these functions do not set errno,
-.\" or raise an exception?
-.\" log(), log2(), log10() do set errno
-.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6794
+An invalid floating-point exception
+.RB ( FE_INVALID )
+is raised, and
+.I errno
+is set to
+.BR EDOM
+(but see BUGS).
 .SH ATTRIBUTES
 .SS Multithreading (see pthreads(7))
 The
@@ -153,15 +143,32 @@ and
 functions are thread-safe.
 .SH CONFORMING TO
 C99, POSIX.1-2001.
+.SH BUGS
+.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6794
+Before version 2.16, the following bugs existed in the
+glibc implementation of these functions:
+.IP * 3
+The domain error case where
+.I x
+is 0 or a NaN did not cause
+.I errno
+to be set or (on some achitectures) raise a floating-point exception.
+.IP * 3
+The domain error case where
+.I x
+is an infinity did not cause
+.I errno
+to be set or raise a floating-point exception.
 .SH SEE ALSO
 .BR log (3),
 .BR logb (3),
 .BR significand (3)
 .SH COLOPHON
-This page is part of release 3.64 of the Linux
+This page is part of release 3.79 of the Linux
 .I man-pages
 project.
 A description of the project,
-and information about reporting bugs,
+information about reporting bugs,
+and the latest version of this page,
 can be found at
 \%http://www.kernel.org/doc/man\-pages/.