From: Mark H Weaver <mhw-StlzRsPvAncdnm+yROfE0A@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [patch] scalb.3: fix prototypes for scalbf and scalbl
Date: Sat, 23 Mar 2013 00:06:35 -0400 [thread overview]
Message-ID: <87k3oykbec.fsf@tines.lan> (raw)
The prototypes for scalbf and scalbl given in scalb.3 are incorrect.
If you have doubts, try compiling the following code:
#include <math.h>
double scalb(double x, double exp);
float scalbf(float x, double exp);
long double scalbl(long double x, double exp);
To gain confidence that the prototypes below are correct, compile the
following:
#include <math.h>
double scalb(double x, double exp);
float scalbf(float x, float exp);
long double scalbl(long double x, long double exp);
Or search for man pages from other sources, e.g.:
http://www.unix.com/man-page/OpenSolaris/3m/scalbf/
http://docs.oracle.com/cd/E26505_01/html/816-5172/scalb-3m.html
The patch below fixes these mistakes.
Thanks,
Mark
diff --git a/man3/scalb.3 b/man3/scalb.3
index 990c0bf..a5b2e5b 100644
--- a/man3/scalb.3
+++ b/man3/scalb.3
@@ -33,9 +33,9 @@ by integral power of radix (OBSOLETE)
.sp
.BI "double scalb(double " x ", double " exp );
.br
-.BI "float scalbf(float " x ", double " exp );
+.BI "float scalbf(float " x ", float " exp );
.br
-.BI "long double scalbl(long double " x ", double " exp );
+.BI "long double scalbl(long double " x ", long double " exp );
.sp
Link with \fI\-lm\fP.
.sp
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2013-03-23 4:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-23 4:06 Mark H Weaver [this message]
[not found] ` <87k3oykbec.fsf-oEj8245dElT/PtFMR13I2A@public.gmane.org>
2013-03-25 11:04 ` [patch] scalb.3: fix prototypes for scalbf and scalbl Michael Kerrisk (man-pages)
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=87k3oykbec.fsf@tines.lan \
--to=mhw-stlzrspvancdnm+yrofe0a@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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: link
Be 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