aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-27 22:38:19 +0000
committerRoland McGrath <roland@gnu.org>2002-08-27 22:38:19 +0000
commitc4d6f155e0ad6c3794fd3e7d2fa28e18ee9410b9 (patch)
treedbd9c143da2c049692889737783bb3db69a6d502 /wcsmbs
parent1d4959d856d014ed8ed0462297e62c355cc7167f (diff)
downloadglibc-c4d6f155e0ad6c3794fd3e7d2fa28e18ee9410b9.zip
glibc-c4d6f155e0ad6c3794fd3e7d2fa28e18ee9410b9.tar.gz
glibc-c4d6f155e0ad6c3794fd3e7d2fa28e18ee9410b9.tar.bz2
* time/time.h (__strptime_l, strptime_l): Declare them.
* time/time.h (__strftime_l, strftime_l): Declare them. * wcsmbs/wchar.h (__wcsftime_l, wcsftime_l): Declare them. * time/strftime_l.c: New file. * time/wcsftime_l.c: New file. * time/Makefile (routines): Add strftime_l, wcsftime_l. * time/Versions (libc: GLIBC_2.3): Add __strftime_l, __wcsftime_l, strftime_l, wcsftime_l.
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/wchar.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h
index 6dacb26..777c73a 100644
--- a/wcsmbs/wchar.h
+++ b/wcsmbs/wchar.h
@@ -699,6 +699,21 @@ extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
__const wchar_t *__restrict __format,
__const struct tm *__restrict __tp) __THROW;
+# ifdef __USE_GNU
+# include <xlocale.h>
+
+/* Similar to `wcsftime' but takes the information from
+ the provided locale and not the global locale. */
+extern size_t __wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
+ __const wchar_t *__restrict __format,
+ __const struct tm *__restrict __tp,
+ __locale_t __loc) __THROW;
+extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
+ __const wchar_t *__restrict __format,
+ __const struct tm *__restrict __tp,
+ __locale_t __loc) __THROW;
+# endif
+
/* The X/Open standard demands that most of the functions defined in
the <wctype.h> header must also appear here. This is probably
because some X/Open members wrote their implementation before the