Skip to contentSkip to conversation

scalb.3: fix prototypes for scalbf and scalbl

PATCH In review Mark H Weaver 2 participants 2 messages Mar 23, 2013 – Mar 25, 2013 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scalb.3: fix prototypes for scalbf and scalbl

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

man3/scalb.3 +2 -2
index 990c0bf..a5b2e5b 100644
@@ -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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 87k3oykbec.fsf-oEj8245dElT/[email protected]

#2 lore raw
Quoted 16 lines · Mark H Weaver

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);
Quoted 6 lines

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

Quoted 16 lines
man3/scalb.3 +2 -2
index 990c0bf..a5b2e5b 100644
@@ -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
Signature · 7 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html