]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
sincos.3: The glibc implementation does now give EDOM for a domain error
authorMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 26 May 2020 08:36:49 +0000 (10:36 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 26 May 2020 08:44:57 +0000 (10:44 +0200)
The fix was in glibc 2.22
(commit d435569cd626bccb9c27361202a279d0fd7fce88).

See https://www.sourceware.org/bugzilla/show_bug.cgi?id=15467

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/sincos.3

index b8c3089f84a24e8e8e0e8ad3b89a0798fc78ef29..74fb4603fac5357f177c0d4f9dc48748929c547a 100644 (file)
@@ -60,19 +60,13 @@ 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?
-.\" sin() and cos() also don't set errno; bugs have been raised for
-.\" those functions.
-.\" See https://www.sourceware.org/bugzilla/show_bug.cgi?id=15467
 .SH VERSIONS
 These functions first appeared in glibc in version 2.1.
 .SH ATTRIBUTES
@@ -103,6 +97,13 @@ built-in optimizations, using flags such as:
 cc -O \-lm \-fno\-builtin prog.c
 .EE
 .in
+.SH BUGS
+Before version 2.22, the glibc implementation did not set
+.\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=15467
+.I errno
+to
+.B EDOM
+when a domain error occurred.
 .SH SEE ALSO
 .BR cos (3),
 .BR sin (3),