From 7848c0dc34c07ab08b1bd1d72e5335969fca86de Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 11 Sep 2010 17:10:26 +0200 Subject: [PATCH] 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 --- man3/sin.3 | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/man3/sin.3 b/man3/sin.3 index 9f0d1e956..35635efb5 100644 --- a/man3/sin.3 +++ b/man3/sin.3 @@ -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),