Loading...
stdlib/FreeBSD/strtol.3.patch Libc-763.13 Libc-583
--- Libc/Libc-763.13/stdlib/FreeBSD/strtol.3.patch
+++ Libc/Libc-583/stdlib/FreeBSD/strtol.3.patch
@@ -1,6 +1,6 @@
---- strtol.3.bsdnew	2009-11-13 14:11:51.000000000 -0800
-+++ strtol.3	2009-11-13 14:33:25.000000000 -0800
-@@ -36,7 +36,10 @@
+--- strtol.3	2006-02-14 14:41:58.000000000 -0800
++++ strtol.3.edit	2006-08-09 13:42:57.000000000 -0700
+@@ -40,7 +40,10 @@
  .Dt STRTOL 3
  .Os
  .Sh NAME
@@ -12,7 +12,7 @@
  .Nd "convert a string value to a"
  .Vt long , "long long" , intmax_t
  or
-@@ -45,26 +48,41 @@ integer
+@@ -49,26 +52,41 @@
  .Sh LIBRARY
  .Lb libc
  .Sh SYNOPSIS
@@ -62,7 +62,7 @@
  to a
  .Vt long
  value.
-@@ -72,7 +90,7 @@ The
+@@ -76,7 +94,7 @@
  .Fn strtoll
  function
  converts the string in
@@ -71,7 +71,7 @@
  to a
  .Vt "long long"
  value.
-@@ -80,7 +98,7 @@ The
+@@ -84,7 +102,7 @@
  .Fn strtoimax
  function
  converts the string in
@@ -80,7 +80,7 @@
  to an
  .Vt intmax_t
  value.
-@@ -88,7 +106,7 @@ The
+@@ -92,7 +110,7 @@
  .Fn strtoq
  function
  converts the string in
@@ -89,7 +89,7 @@
  to a
  .Vt quad_t
  value.
-@@ -143,11 +161,11 @@ stores the address of the first invalid 
+@@ -147,11 +165,11 @@
  If there were no digits at all, however,
  .Fn strtol
  stores the original value of
@@ -103,7 +103,7 @@
  is not
  .Ql \e0
  but
-@@ -155,11 +173,17 @@ but
+@@ -159,11 +177,17 @@
  is
  .Ql \e0
  on return, the entire string was valid.)
@@ -122,16 +122,18 @@
  and
  .Fn strtoq
  functions
-@@ -177,7 +201,7 @@ is set to
+@@ -181,8 +205,8 @@
  .Er ERANGE
  and the function return value is clamped according
  to the following table.
--.Bl -column -offset indent ".Fn strtoimax" ".Sy underflow" ".Sy overflow"
+-.Bl -column -offset indent ".Fn strtoimax" ".Sy overflow" ".Sy underflow"
+-.It Sy Function Ta Sy overflow Ta Sy underflow
 +.Bl -column -offset indent ".Fn strtoimax" ".Dv INTMAX_MIN" ".Dv INTMAX_MAX"
- .It Sy Function Ta Sy underflow Ta Sy overflow
++.It Sy Function Ta Sy underflow Ta Sy overflow
  .It Fn strtol Ta Dv LONG_MIN Ta Dv LONG_MAX
  .It Fn strtoll Ta Dv LLONG_MIN Ta Dv LLONG_MAX
-@@ -195,14 +219,25 @@ no conversion could be performed
+ .It Fn strtoimax Ta Dv INTMAX_MIN Ta Dv INTMAX_MAX
+@@ -199,13 +223,25 @@
  .It Bq Er ERANGE
  The given string was out of range; the value converted has been clamped.
  .El
@@ -150,7 +152,6 @@
  .Xr atoi 3 ,
  .Xr atol 3 ,
  .Xr strtod 3 ,
--.Xr strtonum 3 ,
 +.Xr strtol_l 3 ,
  .Xr strtoul 3 ,
 -.Xr wcstol 3