From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: [patch] scalb.3: fix prototypes for scalbf and scalbl Date: Sat, 23 Mar 2013 00:06:35 -0400 Message-ID: <87k3oykbec.fsf@tines.lan> Mime-Version: 1.0 Content-Type: text/plain Return-path: Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org The prototypes for scalbf and scalbl given in scalb.3 are incorrect. If you have doubts, try compiling the following code: #include 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 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