Loading...
string/FreeBSD/wcscoll.3.patch Libc-763.12 Libc-391.4.1
--- Libc/Libc-763.12/string/FreeBSD/wcscoll.3.patch
+++ Libc/Libc-391.4.1/string/FreeBSD/wcscoll.3.patch
@@ -1,6 +1,6 @@
---- wcscoll.3.bsdnew	2009-11-18 18:24:39.000000000 -0800
-+++ wcscoll.3	2009-11-18 18:24:39.000000000 -0800
-@@ -37,37 +37,57 @@
+--- wcscoll.3.orig	Fri Mar 11 08:27:51 2005
++++ wcscoll.3	Fri Mar 11 08:29:43 2005
+@@ -41,7 +41,8 @@
  .Dt WCSCOLL 3
  .Os
  .Sh NAME
@@ -10,41 +10,22 @@
  .Nd compare wide strings according to current collation
  .Sh LIBRARY
  .Lb libc
- .Sh SYNOPSIS
+@@ -49,6 +50,9 @@
  .In wchar.h
  .Ft int
--.Fn wcscoll "const wchar_t *s1" "const wchar_t *s2"
-+.Fo wcscoll
-+.Fa "const wchar_t *ws1"
-+.Fa "const wchar_t *ws2"
-+.Fc
-+.In wchar.h
+ .Fn wcscoll "const wchar_t *s1" "const wchar_t *s2"
 +.In xlocale.h
 +.Ft int
-+.Fo wcscoll_l
-+.Fa "const wchar_t *ws1"
-+.Fa "const wchar_t *ws2"
-+.Fa "locale_t loc"
-+.Fc
++.Fn wcscoll_l "const wchar_t *s1" "const wchar_t *s2" "locale_t loc"
  .Sh DESCRIPTION
  The
  .Fn wcscoll
- function compares the null-terminated strings
--.Fa s1
-+.Fa ws1
- and
--.Fa s2
--according to the current locale collation order.
-+.Fa ws2 ,
-+according to the current locale's collation order.
- In the
- .Dq Li C
- locale,
+@@ -63,6 +67,14 @@
  .Fn wcscoll
  is equivalent to
  .Fn wcscmp .
 +.Pp
-+Although the
++While the
 +.Fn wcscoll
 +function uses the current locale, the
 +.Fn wcscoll_l
@@ -54,18 +35,7 @@
  .Sh RETURN VALUES
  The
  .Fn wcscoll
- function
- returns an integer greater than, equal to, or less than 0,
- if
--.Fa s1
-+.Fa ws1
- is greater than, equal to, or less than
--.Fa s2 .
-+.Fa ws2 .
- .Pp
- No return value is reserved to indicate errors;
- callers should set
-@@ -91,7 +111,8 @@ Cannot allocate enough memory for tempor
+@@ -95,7 +107,8 @@
  .Xr setlocale 3 ,
  .Xr strcoll 3 ,
  .Xr wcscmp 3 ,