Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include strftime_l is part of POSIX2008.
details: https://anonhg.NetBSD.org/src/rev/c6b2e77e7214
branches: trunk
changeset: 786244:c6b2e77e7214
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Apr 21 17:54:56 2013 +0000
description:
strftime_l is part of POSIX2008.
diffstat:
include/time.h | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diffs (54 lines):
diff -r 4e4d88895ce5 -r c6b2e77e7214 include/time.h
--- a/include/time.h Sun Apr 21 17:45:46 2013 +0000
+++ b/include/time.h Sun Apr 21 17:54:56 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: time.h,v 1.42 2013/04/21 17:45:46 joerg Exp $ */
+/* $NetBSD: time.h,v 1.43 2013/04/21 17:54:56 joerg Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -174,6 +174,16 @@
#endif
#endif
+#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
+# ifndef __LOCALE_T_DECLARED
+typedef struct _locale *locale_t;
+# define __LOCALE_T_DECLARED
+# endif
+size_t strftime_l(char * __restrict, size_t, const char * __restrict,
+ const struct tm * __restrict, locale_t)
+ __attribute__((__format__(__strftime__, 3, 0)));
+#endif
+
#if defined(_NETBSD_SOURCE)
typedef struct __state *timezone_t;
@@ -200,24 +210,14 @@
const char *tzgetname(const timezone_t, int) __RENAME(__tzgetname50);
#endif
+size_t strftime_lz(const timezone_t, char * __restrict, size_t,
+ const char * __restrict, const struct tm * __restrict, locale_t)
+ __attribute__((__format__(__strftime__, 4, 0)));
size_t strftime_z(const timezone_t, char * __restrict, size_t,
const char * __restrict, const struct tm * __restrict)
__attribute__((__format__(__strftime__, 4, 0)));
-
-#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
-# ifndef __LOCALE_T_DECLARED
-typedef struct _locale *locale_t;
-# define __LOCALE_T_DECLARED
-# endif
-size_t strftime_l(char * __restrict, size_t, const char * __restrict,
- const struct tm * __restrict, locale_t)
- __attribute__((__format__(__strftime__, 3, 0)));
-size_t strftime_lz(const timezone_t, char * __restrict, size_t,
- const char * __restrict, const struct tm * __restrict, locale_t)
- __attribute__((__format__(__strftime__, 4, 0)));
char *strptime_l(const char * __restrict, const char * __restrict,
struct tm * __restrict, locale_t);
-#endif
#endif /* _NETBSD_SOURCE */
Home |
Main Index |
Thread Index |
Old Index