OSDN Git Service

(split) LDP man-pages の original/ を v3.29 に更新。
[linuxjm/LDP_man-pages.git] / original / man3 / cos.3
index 4ee485c..bbb1244 100644 (file)
@@ -29,7 +29,7 @@
 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
 .\" Modified 2002-07-27 by Walter Harms
 .\"    (walter.harms@informatik.uni-oldenburg.de)
-.TH COS 3 2009-02-04 ""   "Linux Programmer's Manual"
+.TH COS 3 2010-09-11 ""   "Linux Programmer's Manual"
 .SH NAME
 cos, cosf, cosl \- cosine function
 .SH SYNOPSIS
@@ -53,9 +53,14 @@ Feature Test Macro Requirements for glibc (see
 .ad l
 .BR cosf (),
 .BR cosl ():
-_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 cos ()
@@ -83,23 +88,26 @@ when calling these functions.
 The following errors can occur:
 .TP
 Domain error: \fIx\fP is an infinity
-.\" .I errno
-.\" is set to
-.\" .BR EDOM .
+.I errno
+is set to
+.BR EDOM
+(but see BUGS).
 An invalid floating-point exception
 .RB ( FE_INVALID )
 is raised.
-.PP
-These functions do not set
-.IR errno .
-.\" FIXME . Is it intentional that these functions do not set errno?
-.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6780
 .SH "CONFORMING TO"
 C99, POSIX.1-2001.
 The variant returning
 .I double
 also conforms to
 SVr4, 4.3BSD.
+.SH BUGS
+Before version 2.10, the glibc implementation did not set
+.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6780
+.I errno
+to
+.B EDOM
+when a domain error occurred.
 .SH "SEE ALSO"
 .BR acos (3),
 .BR asin (3),