aboutsummaryrefslogtreecommitdiff
path: root/time/time.h
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 /time/time.h
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 'time/time.h')
-rw-r--r--time/time.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/time/time.h b/time/time.h
index 117bf7b..dd7ce8d 100644
--- a/time/time.h
+++ b/time/time.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1999, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1999,2000,01,02 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -188,6 +188,28 @@ extern char *strptime (__const char *__restrict __s,
__THROW;
# endif
+# ifdef __USE_GNU
+/* Similar to the two functions above but take the information from
+ the provided locale and not the global locale. */
+# include <xlocale.h>
+
+extern size_t __strftime_l (char *__restrict __s, size_t __maxsize,
+ __const char *__restrict __format,
+ __const struct tm *__restrict __tp,
+ __locale_t __loc) __THROW;
+extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
+ __const char *__restrict __format,
+ __const struct tm *__restrict __tp,
+ __locale_t __loc) __THROW;
+
+extern char *__strptime_l (__const char *__restrict __s,
+ __const char *__restrict __fmt, struct tm *__tp,
+ __locale_t __loc) __THROW;
+extern char *strptime_l (__const char *__restrict __s,
+ __const char *__restrict __fmt, struct tm *__tp,
+ __locale_t __loc) __THROW;
+# endif
+
/* Return the `struct tm' representation of *TIMER
in Universal Coordinated Time (aka Greenwich Mean Time). */
@@ -358,7 +380,6 @@ extern int getdate_r (__const char *__restrict __string,
struct tm *__restrict __resbufp) __THROW;
# endif
-
__END_DECLS
#endif /* <time.h> included. */