X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff..1f2f436a38f7ae2d39a943ad2898d8fed4ed2e58:/string/FreeBSD/wcscoll.3.patch diff --git a/string/FreeBSD/wcscoll.3.patch b/string/FreeBSD/wcscoll.3.patch index dfd866d..50a59cc 100644 --- a/string/FreeBSD/wcscoll.3.patch +++ b/string/FreeBSD/wcscoll.3.patch @@ -1,6 +1,6 @@ ---- wcscoll.3.orig Fri Mar 11 08:27:51 2005 -+++ wcscoll.3 Fri Mar 11 08:29:43 2005 -@@ -41,7 +41,8 @@ +--- 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 @@ .Dt WCSCOLL 3 .Os .Sh NAME @@ -10,22 +10,41 @@ .Nd compare wide strings according to current collation .Sh LIBRARY .Lb libc -@@ -49,6 +50,9 @@ + .Sh SYNOPSIS .In wchar.h .Ft int - .Fn wcscoll "const wchar_t *s1" "const wchar_t *s2" +-.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 +.In xlocale.h +.Ft int -+.Fn wcscoll_l "const wchar_t *s1" "const wchar_t *s2" "locale_t loc" ++.Fo wcscoll_l ++.Fa "const wchar_t *ws1" ++.Fa "const wchar_t *ws2" ++.Fa "locale_t loc" ++.Fc .Sh DESCRIPTION The .Fn wcscoll -@@ -63,6 +67,14 @@ + 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, .Fn wcscoll is equivalent to .Fn wcscmp . +.Pp -+While the ++Although the +.Fn wcscoll +function uses the current locale, the +.Fn wcscoll_l @@ -35,7 +54,18 @@ .Sh RETURN VALUES The .Fn wcscoll -@@ -95,7 +107,8 @@ + 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 .Xr setlocale 3 , .Xr strcoll 3 , .Xr wcscmp 3 ,