Loading...
--- Libc/Libc-583/stdtime/FreeBSD/strftime.3.patch
+++ Libc/Libc-391.2.5/stdtime/FreeBSD/strftime.3.patch
@@ -1,5 +1,5 @@
---- _SB/Libc/stdtime/FreeBSD/strftime.3 2004-11-25 11:38:45.000000000 -0800
-+++ _SB/Libc/stdtime/FreeBSD/strftime.3.edit 2006-06-28 16:55:53.000000000 -0700
+--- strftime.3.orig Fri Mar 11 07:33:40 2005
++++ strftime.3 Fri Mar 11 07:43:03 2005
@@ -40,7 +40,8 @@
.Dt STRFTIME 3
.Os
@@ -10,44 +10,27 @@
.Nd format date and time
.Sh LIBRARY
.Lb libc
-@@ -48,10 +49,20 @@
- .In time.h
- .Ft size_t
- .Fo strftime
--.Fa "char * restrict buf"
-+.Fa "char *restrict s"
- .Fa "size_t maxsize"
--.Fa "const char * restrict format"
--.Fa "const struct tm * restrict timeptr"
-+.Fa "const char *restrict format"
-+.Fa "const struct tm *restrict timeptr"
-+.Fc
-+.In time.h
+@@ -53,6 +54,15 @@
+ .Fa "const char * restrict format"
+ .Fa "const struct tm * restrict timeptr"
+ .Fc
+.In xlocale.h
+.Ft size_t
+.Fo strftime_l
-+.Fa "char *restrict s"
++.Fa "char * restrict buf"
+.Fa "size_t maxsize"
-+.Fa "const char *restrict format"
-+.Fa "const struct tm *restrict timeptr"
++.Fa "const char * restrict format"
++.Fa "const struct tm * restrict timeptr"
+.Fa "locale_t loc"
- .Fc
++.Fc
.Sh DESCRIPTION
The
-@@ -59,7 +70,7 @@
- function formats the information from
- .Fa timeptr
- into the buffer
--.Fa buf
-+.Fa s ,
- according to the string pointed to by
- .Fa format .
- .Pp
-@@ -83,6 +94,14 @@
+ .Fn strftime
+@@ -83,6 +93,14 @@
terminating NUL.
Otherwise, zero is returned and the buffer contents are indeterminate.
.Pp
-+Although the
++While the
+.Fn strftime
+function uses the current locale, the
+.Fn strftime_l
@@ -58,7 +41,7 @@
The conversion specifications are copied to the buffer after expansion
as follows:-
.Bl -tag -width "xxxx"
-@@ -226,7 +245,8 @@
+@@ -226,7 +244,8 @@
.Xr ctime 3 ,
.Xr printf 3 ,
.Xr strptime 3 ,
@@ -68,17 +51,3 @@
.Sh STANDARDS
The
.Fn strftime
-@@ -253,11 +273,12 @@
- .Ql %u ,
- .Ql \&%V ,
- .Ql %z ,
-+and
- .Ql %+ .
- .Pp
- The peculiar week number and year in the replacements of
- .Ql %G ,
--.Ql %g
-+.Ql %g ,
- and
- .Ql \&%V
- are defined in ISO 8601: 1988.