diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2020-05-26 10:36:49 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2020-05-26 10:44:57 +0200 |
| commit | 053d061aefa35bd783e38f65a2aea41537e7e1cc (patch) | |
| tree | b3b068a970643e451b43179031c123debdff8416 /man3 | |
| parent | 442456d9317073ee862742d00fb5fa38bf2b7a97 (diff) | |
| download | man-pages-053d061aefa35bd783e38f65a2aea41537e7e1cc.tar.gz | |
sincos.3: The glibc implementation does now give EDOM for a domain error
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>
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/sincos.3 | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/man3/sincos.3 b/man3/sincos.3 index b8c3089f84..74fb4603fa 100644 --- a/man3/sincos.3 +++ b/man3/sincos.3 @@ -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), |
