All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] scalb.3: fix prototypes for scalbf and scalbl
@ 2013-03-23  4:06 Mark H Weaver
       [not found] ` <87k3oykbec.fsf-oEj8245dElT/PtFMR13I2A@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Mark H Weaver @ 2013-03-23  4:06 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [patch] scalb.3: fix prototypes for scalbf and scalbl
       [not found] ` <87k3oykbec.fsf-oEj8245dElT/PtFMR13I2A@public.gmane.org>
@ 2013-03-25 11:04   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-03-25 11:04 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On Sat, Mar 23, 2013 at 5:06 AM, Mark H Weaver <mhw-StlzRsPvAncdnm+yROfE0A@public.gmane.org> wrote:
> 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. Applied.

Cheers,

Michael


> 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



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-25 11:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-23  4:06 [patch] scalb.3: fix prototypes for scalbf and scalbl Mark H Weaver
     [not found] ` <87k3oykbec.fsf-oEj8245dElT/PtFMR13I2A@public.gmane.org>
2013-03-25 11:04   ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.