Loading...
stdlib/FreeBSD/atol.3.patch Libc-763.13 Libc-391.2.5
--- Libc/Libc-763.13/stdlib/FreeBSD/atol.3.patch
+++ Libc/Libc-391.2.5/stdlib/FreeBSD/atol.3.patch
@@ -1,6 +1,6 @@
---- atol.3.orig	2010-02-08 16:26:10.000000000 -0800
-+++ atol.3	2010-02-13 21:01:28.000000000 -0800
-@@ -36,7 +36,8 @@
+--- atol.3.orig	Fri Mar 11 10:15:17 2005
++++ atol.3	Fri Mar 11 10:53:10 2005
+@@ -40,7 +40,8 @@
  .Dt ATOL 3
  .Os
  .Sh NAME
@@ -10,51 +10,22 @@
  .Nd convert
  .Tn ASCII
  string to
-@@ -49,14 +50,19 @@ integer
- .Sh SYNOPSIS
- .In stdlib.h
- .Ft long
--.Fn atol "const char *nptr"
-+.Fn atol "const char *str"
+@@ -56,6 +57,11 @@
+ .Fn atol "const char *nptr"
  .Ft "long long"
--.Fn atoll "const char *nptr"
-+.Fn atoll "const char *str"
+ .Fn atoll "const char *nptr"
 +.In xlocale.h
 +.Ft long
-+.Fn atol_l "const char *str" "locale_t loc"
++.Fn atol_l "const char *nptr" "locale_t loc"
 +.Ft "long long"
-+.Fn atoll_l "const char *str" "locale_t loc"
++.Fn atoll_l "const char *nptr" "locale_t loc"
  .Sh DESCRIPTION
  The
  .Fn atol
- function converts the initial portion of the string pointed to by
--.Fa nptr
-+.Fa str
- to
- .Vt long
- integer
-@@ -64,12 +70,12 @@ representation.
- .Pp
+@@ -82,6 +88,18 @@
  It is equivalent to:
  .Pp
--.Dl "strtol(nptr, (char **)NULL, 10);"
-+.Dl "strtol(str, (char **)NULL, 10);"
- .Pp
- The
- .Fn atoll
- function converts the initial portion of the string pointed to by
--.Fa nptr
-+.Fa str
- to
- .Vt "long long"
- integer
-@@ -77,8 +83,28 @@ representation.
- .Pp
- It is equivalent to:
- .Pp
--.Dl "strtoll(nptr, (char **)NULL, 10);"
--.Sh COMPATIBILITY
-+.Dl "strtoll(str, (char **)NULL, 10);"
+ .Dl "strtoll(nptr, (char **)NULL, 10);"
 +.Pp
 +While the
 +.Fn atol
@@ -67,19 +38,10 @@
 +functions may be passed locales directly. See
 +.Xr xlocale 3
 +for more information.
-+.Sh IMPLEMENTATION NOTES
-+The
-+.Fn atol ,
-+.Fn atoll ,
-+.Fn atol_l ,
-+and
-+.Fn atoll_l
-+functions are thread-safe and async-cancel-safe.
-+.Pp
- The
- .Fx
- implementations of the
-@@ -121,7 +147,8 @@ on an error.
+ .Sh ERRORS
+ The functions
+ .Fn atol
+@@ -96,7 +114,8 @@
  .Xr atoi 3 ,
  .Xr strtod 3 ,
  .Xr strtol 3 ,