.\" 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.
.\"
.\" 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
.\" Modified 2002-07-27 by Walter Harms
.\" (walter.harms@informatik.uni-oldenburg.de)
.\"
-.TH LOG 3 2010-06-13 "" "Linux Programmer's Manual"
+.TH LOG 3 2010-09-20 "" "Linux Programmer's Manual"
.SH NAME
log, logf, logl \- natural logarithmic function
.SH SYNOPSIS
.ad l
.BR logf (),
.BR logl ():
-_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
.SH DESCRIPTION
The
.BR log ()
A divide-by-zero floating-point exception
.RB ( FE_DIVBYZERO )
is raised.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
C99, POSIX.1-2001.
The variant returning
.I double
of a NaN produces a bogus invalid floating-point
.RB ( FE_INVALID )
exception.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR cbrt (3),
.BR clog (3),
-.BR log2 (3),
.BR log10 (3),
.BR log1p (3),
+.BR log2 (3),
.BR sqrt (3)