This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[[PATCH RFC 2] 06/63] Y2038: add function __gmtime64


---
 time/Versions | 1 +
 time/gmtime.c | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/time/Versions b/time/Versions
index 723a03cd13..511580b6d8 100644
--- a/time/Versions
+++ b/time/Versions
@@ -67,6 +67,7 @@ libc {
   }
   GLIBC_2.27 {
     __difftime64;
+    __gmtime64;
     __localtime64; __localtime64_r;
   }
 }
diff --git a/time/gmtime.c b/time/gmtime.c
index e38f0cbcc0..4a8c0cbfd7 100644
--- a/time/gmtime.c
+++ b/time/gmtime.c
@@ -46,3 +46,10 @@ gmtime (const time_t *t)
     }
   return __tz_convert (*t, 0, &_tmbuf);
 }
+
+/* Return the `struct tm' representation of 64-bit-time *T in UTC.	*/
+struct tm *
+__gmtime64 (const __time64_t *t)
+{
+  return __tz_convert (*t, 0, &_tmbuf);
+}
-- 
2.14.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]