]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
SYNOPSIS: Added feature test macro requirements.
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 1 Aug 2008 05:26:28 +0000 (05:26 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 1 Aug 2008 05:26:28 +0000 (05:26 +0000)
Added RETURN VALUE section.
Rewrote ERRORS section.
Updated CONFORMING TO.

man3/log10.3

index 3eaae78012f7cdef2d6a6db096535337addd10f5..9e7f1983f5dc9e9209e95894b0312d73d7c04f05 100644 (file)
@@ -1,4 +1,6 @@
 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
+.\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
+.\"     <mtk.manpages@gmail.com>
 .\"
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
@@ -29,7 +31,7 @@
 .\" Modified 2002-07-27 by Walter Harms
 .\"    (walter.harms@informatik.uni-oldenburg.de)
 .\"
-.TH LOG10 3  2002-07-27  "" "Linux Programmer's Manual"
+.TH LOG10 3  2008-07-29  "" "Linux Programmer's Manual"
 .SH NAME
 log10, log10f, log10l \-  base-10 logarithmic function
 .SH SYNOPSIS
@@ -44,28 +46,44 @@ log10, log10f, log10l \-  base-10 logarithmic function
 .fi
 .sp
 Link with \fI\-lm\fP.
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.ad l
+.BR log10f (),
+.BR log10l ():
+_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
+.I cc\ -std=c99
+.ad b
 .SH DESCRIPTION
 The
 .BR log10 ()
 function returns the base 10 logarithm of \fIx\fP.
+.SH RETURN VALUE
+On success, these functions return the base 10 logarithm of
+.IR x .
+
+For special cases, including where
+.I x
+is 0, 1, negative, infinity, or NaN, see
+.BR log (3).
 .SH ERRORS
-The
-.BR log10 ()
-function can return the following errors:
-.TP
-.B EDOM
-The argument \fIx\fP is negative.
-.TP
-.B ERANGE
-The argument \fIx\fP is zero.
-The log of zero is not defined.
+See
+.BR math_error (7)
+for information on how to determine whether an error has occurred
+when calling these functions.
+
+For a discussion of the errors that can occur for these functions, see
+.BR log (3).
 .SH "CONFORMING TO"
+C99, POSIX.1-2001.
+The variant returning
+.I double
+also conforms to
 SVr4, 4.3BSD, C89.
-The
-.I float
-and
-.I "long double"
-variants are C99 requirements.
 .SH "SEE ALSO"
 .BR cbrt (3),
 .BR clog10 (3),