.\" 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
.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 ()
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),