mirror of https://github.com/mkerrisk/man-pages
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:
parent
3e72368940
commit
7848c0dc34
19
man3/sin.3
19
man3/sin.3
|
@ -29,7 +29,8 @@
|
||||||
.\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
|
.\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
|
||||||
.\" Modified 2002-07-27 by Walter Harms
|
.\" Modified 2002-07-27 by Walter Harms
|
||||||
.\" (walter.harms@informatik.uni-oldenburg.de)
|
.\" (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
|
.SH NAME
|
||||||
sin, sinf, sinl \- sine function
|
sin, sinf, sinl \- sine function
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -86,23 +87,29 @@ when calling these functions.
|
||||||
The following errors can occur:
|
The following errors can occur:
|
||||||
.TP
|
.TP
|
||||||
Domain error: \fIx\fP is an infinity
|
Domain error: \fIx\fP is an infinity
|
||||||
.\" .I errno
|
.I errno
|
||||||
.\" is set to
|
is set to
|
||||||
.\" .BR EDOM .
|
.BR EDOM
|
||||||
|
(but see BUGS).
|
||||||
An invalid floating-point exception
|
An invalid floating-point exception
|
||||||
.RB ( FE_INVALID )
|
.RB ( FE_INVALID )
|
||||||
is raised.
|
is raised.
|
||||||
.PP
|
.PP
|
||||||
These functions do not set
|
These functions do not set
|
||||||
.IR errno .
|
.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"
|
.SH "CONFORMING TO"
|
||||||
C99, POSIX.1-2001.
|
C99, POSIX.1-2001.
|
||||||
The variant returning
|
The variant returning
|
||||||
.I double
|
.I double
|
||||||
also conforms to
|
also conforms to
|
||||||
SVr4, 4.3BSD, C89.
|
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"
|
.SH "SEE ALSO"
|
||||||
.BR acos (3),
|
.BR acos (3),
|
||||||
.BR asin (3),
|
.BR asin (3),
|
||||||
|
|
Loading…
Reference in New Issue