OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man3 / log2.3
index 7ab73d8..9d2d0a1 100644 (file)
@@ -2,6 +2,7 @@
 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
 .\"     <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
@@ -21,6 +22,7 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" References consulted:
 .\"     Linux libc source code
@@ -31,7 +33,7 @@
 .\" Modified 2002-07-27 by Walter Harms
 .\"    (walter.harms@informatik.uni-oldenburg.de)
 .\"
-.TH LOG2 3  2010-06-13  "" "Linux Programmer's Manual"
+.TH LOG2 3  2010-09-12  "" "Linux Programmer's Manual"
 .SH NAME
 log2, log2f, log2l \- base-2 logarithmic function
 .SH SYNOPSIS
@@ -56,13 +58,18 @@ Feature Test Macro Requirements for glibc (see
 .BR log2 (),
 .BR log2f (),
 .BR log2l ():
-_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
+.RS 4
+_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
+.br
+or
 .I cc\ -std=c99
+.RE
 .ad b
 .SH DESCRIPTION
 The
 .BR log2 ()
-function returns the base 2 logarithm of \fIx\fP.
+function returns the base 2 logarithm of
+.IR x .
 .SH RETURN VALUE
 On success, these functions return the base 2 logarithm of
 .IR x .
@@ -81,15 +88,24 @@ For a discussion of the errors that can occur for these functions, see
 .BR log (3).
 .SH VERSIONS
 These functions first appeared in glibc in version 2.1.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
 C99, POSIX.1-2001.
 The variant returning
 .I double
 also conforms to
-SVr4, 4.3BSD, C89.
-.SH "SEE ALSO"
+SVr4, 4.3BSD.
+.SH SEE ALSO
 .BR cbrt (3),
 .BR clog2 (3),
 .BR log (3),
 .BR log10 (3),
 .BR sqrt (3)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.