OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man3 / lrint.3
index bb1fac5..d8053bd 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,8 +22,9 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
-.TH LRINT 3  2008-08-11 "" "Linux Programmer's Manual"
+.TH LRINT 3  2014-01-18 "" "Linux Programmer's Manual"
 .SH NAME
 lrint, lrintf, lrintl, llrint, llrintf, llrintl \- round to nearest integer
 .SH SYNOPSIS
@@ -51,19 +53,25 @@ Feature Test Macro Requirements for glibc (see
 .sp
 .ad l
 All functions shown above:
-_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
+.RS 4
+_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
+_POSIX_C_SOURCE\ >=\ 200112L;
+.br
+or
 .I cc\ -std=c99
-.ad b
+.RE
+.ad
 .SH DESCRIPTION
 These functions round their argument to the nearest integer value,
 using the current rounding direction (see
 .BR fesetround (3)).
 
-Note that unlike
-.BR rint (3),
-etc., the return type of these functions differs from
+Note that unlike the
+.BR rint (3)
+family of functions,
+the return type of these functions differs from
 that of their arguments.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 These functions return the rounded integer value.
 
 If
@@ -74,7 +82,7 @@ or the rounded value is too large to be stored in a
 .RI ( "long long"
 in the case of the
 .B ll*
-functions)
+functions),
 then a domain error occurs, and the return value is unspecified.
 .\" The return value is -(LONG_MAX - 1) or -(LLONG_MAX -1)
 .SH ERRORS
@@ -99,12 +107,32 @@ These functions do not set
 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6798
 .SH VERSIONS
 These functions first appeared in glibc in version 2.1.
-.SH "CONFORMING TO"
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR lrint (),
+.BR lrintf (),
+.BR lrintl (),
+.BR llrint (),
+.BR llrintf (),
+and
+.BR llrintl ()
+functions are thread-safe.
+.SH CONFORMING TO
 C99, POSIX.1-2001.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR ceil (3),
 .BR floor (3),
 .BR lround (3),
 .BR nearbyint (3),
 .BR rint (3),
 .BR round (3)
+.SH COLOPHON
+This page is part of release 3.68 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/.