tan.3: errno is now correctly set to EDOM on a domain error

http://sources.redhat.com/bugzilla/show_bug.cgi?id=6782
was (silently) resolved.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-09-11 17:11:21 +02:00
parent 7848c0dc34
commit e472357803
1 changed files with 12 additions and 7 deletions

View File

@ -30,7 +30,7 @@
.\" Modified 2002-07-27 by Walter Harms
.\" (walter.harms@informatik.uni-oldenburg.de)
.\"
.TH TAN 3 2008-08-05 "" "Linux Programmer's Manual"
.TH TAN 3 2010-09-11 "" "Linux Programmer's Manual"
.SH NAME
tan, tanf, tanl \- tangent function
.SH SYNOPSIS
@ -102,9 +102,10 @@ 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.
@ -121,15 +122,19 @@ is raised.
.PP
These functions do not set
.IR errno .
.\" FIXME . Is it intentional that these functions do not set
.\" errno (at least for domain error)?
.\" Bug raised: http://sourceware.org/bugzilla/show_bug.cgi?id=6782
.SH "CONFORMING TO"
C99, POSIX.1-2001.
The variant returning
.I double
also conforms to
SVr4, 4.3BSD, C89.
.SH BUGS
Before version 2.10, the glibc implementation did not set
.\" http://sourceware.org/bugzilla/show_bug.cgi?id=6782
.I errno
to
.B EDOM
when a domain error occurred.
.SH "SEE ALSO"
.BR acos (3),
.BR asin (3),