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

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

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-09-11 17:10:26 +02:00
parent 3e72368940
commit 7848c0dc34
1 changed files with 13 additions and 6 deletions

View File

@ -29,7 +29,8 @@
.\" 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 SIN 3 2009-02-04 "" "Linux Programmer's Manual"
.\"
.TH SIN 3 2010-09-11 "" "Linux Programmer's Manual"
.SH NAME
sin, sinf, sinl \- sine function
.SH SYNOPSIS
@ -86,23 +87,29 @@ 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=6781
.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://sources.redhat.com/bugzilla/show_bug.cgi?id=6781
.I errno
to
.B EDOM
when a domain error occurred.
.SH "SEE ALSO"
.BR acos (3),
.BR asin (3),