[[PATCH,RFC,2] 08/63] Y2038: add function __ctime64
Commit Message
---
time/Versions | 1 +
time/ctime.c | 10 ++++++++++
2 files changed, 11 insertions(+)
@@ -67,6 +67,7 @@ libc {
}
GLIBC_2.27 {
__difftime64;
+ __ctime64;
__gmtime64; __gmtime64_r;
__localtime64; __localtime64_r;
}
@@ -26,3 +26,13 @@ ctime (const time_t *t)
In particular, ctime and asctime must yield the same pointer. */
return asctime (localtime (t));
}
+
+/* Return a string as returned by asctime which
+ is the representation of *T in that form. */
+char *
+__ctime64 (const __time64_t *t)
+{
+ /* Apply the same rule as ctime:
+ make ctime64 (t) is equivalent to asctime (localtime64 (t)). */
+ return asctime (__localtime64 (t));
+}