public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mtk.manpages at gmail dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug math/6803] scalb(), scalbln(), scalbn() do not set errno on overflow/underflow Date: Sat, 23 May 2020 10:44:27 +0000 [thread overview] Message-ID: <bug-6803-131-BWIVKEjuPH@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-6803-131@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=6803 --- Comment #13 from Michael Kerrisk <mtk.manpages at gmail dot com> --- Fix documented for man-pages-5.07 commit ab5c28f9423931435a1cf41a0b058459b2bce998 (HEAD -> master) Author: Michael Kerrisk <mtk.manpages@gmail.com> Date: Sat May 23 12:20:59 2020 +0200 scalb.3: These functions now correctly set errno for the EDOM and ERANGE cas es Modify DESCRIPTION appropriately and add BUGS section. The fix was in glibc 2.20. See https://www.sourceware.org/bugzilla/show_bug.cgi?id=6803 and https://www.sourceware.org/bugzilla/show_bug.cgi?id=6804 Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com> diff --git a/man3/scalb.3 b/man3/scalb.3 index 2db0bd9ad..c685b68eb 100644 --- a/man3/scalb.3 +++ b/man3/scalb.3 @@ -150,34 +150,28 @@ The following errors can occur: Domain error: \fIx\fP is 0, and \fIexp\fP is positive infinity, \ or \fIx\fP is positive infinity and \fIexp\fP is negative infinity \ and the other argument is not a NaN -.\" .I errno -.\" is set to -.\" .BR EDOM . +.I errno +is set to +.BR EDOM . An invalid floating-point exception .RB ( FE_INVALID ) is raised. .TP Range error, overflow -.\" .I errno -.\" is set to -.\" .BR ERANGE . +.I errno +is set to +.BR ERANGE . An overflow floating-point exception .RB ( FE_OVERFLOW ) is raised. .TP Range error, underflow -.\" .I errno -.\" is set to -.\" .BR ERANGE . +.I errno +is set to +.BR ERANGE . An underflow floating-point exception .RB ( FE_UNDERFLOW ) 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=6803 -.\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6804 .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7). @@ -215,6 +209,13 @@ are unstandardized; is nevertheless present on several other systems .\" Looking at header files: scalbf() is present on the .\" BSDs, Tru64, HP-UX 11, Irix 6.5; scalbl() is on HP-UX 11 and Tru64. +.SH BUGS +Before glibc 2.20, +.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6803 +.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6804 +these functions did not set +.I errno +for domain and range errors. .SH SEE ALSO .BR ldexp (3), .BR scalbln (3) -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2020-05-23 10:44 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-6803-131@http.sourceware.org/bugzilla/> 2012-03-01 17:35 ` jsm28 at gcc dot gnu.org 2014-03-31 14:58 ` cvs-commit at gcc dot gnu.org 2015-09-16 21:12 ` cvs-commit at gcc dot gnu.org 2015-09-16 21:13 ` jsm28 at gcc dot gnu.org 2020-05-23 10:44 ` mtk.manpages at gmail dot com [this message] 2020-05-26 9:20 ` mtk.manpages at gmail dot com 2008-07-31 11:07 [Bug math/6803] New: " mtk dot manpages at gmail dot com 2008-07-31 11:07 ` [Bug math/6803] " mtk dot manpages at gmail dot com 2008-07-31 11:08 ` mtk dot manpages at gmail dot com 2008-07-31 11:09 ` mtk dot manpages at gmail dot com 2008-07-31 11:12 ` mtk dot manpages at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-6803-131-BWIVKEjuPH@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).