This is the mail archive of the glibc-cvs@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]

GNU C Library master sources branch aaribaud/y2038-pre-5th-draft created. glibc-2.25-8-g51c7b8b


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, aaribaud/y2038-pre-5th-draft has been created
        at  51c7b8b02574e8a3b9a00734d9e71f2b2d24cecf (commit)

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=51c7b8b02574e8a3b9a00734d9e71f2b2d24cecf

commit 51c7b8b02574e8a3b9a00734d9e71f2b2d24cecf
Author: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Date:   Wed Feb 22 08:06:33 2017 +0100

    Add 64-bit version of ctime_r

diff --git a/sysdeps/unix/sysv/linux/arm/Versions b/sysdeps/unix/sysv/linux/arm/Versions
index 7b8ee8d..b6ddb82 100644
--- a/sysdeps/unix/sysv/linux/arm/Versions
+++ b/sysdeps/unix/sysv/linux/arm/Versions
@@ -17,6 +17,7 @@ libc {
     localtime64; localtime64_r;
     mktime64;
     timelocal64;
+    ctime64_r;
   }
   GLIBC_PRIVATE {
     # A copy of sigaction lives in libpthread, and needs these.
diff --git a/time/ctime_r.c b/time/ctime_r.c
index ecd7731..15c98a5 100644
--- a/time/ctime_r.c
+++ b/time/ctime_r.c
@@ -22,8 +22,17 @@
 /* Return a string as returned by asctime which is the representation
    of *T in that form.  Reentrant version.  */
 char *
-ctime_r (const time_t *t, char *buf)
+ctime_r (const __time_t *t, char *buf)
 {
   struct tm tm;
   return __asctime_r (__localtime_r (t, &tm), buf);
 }
+
+/* Return a string as returned by asctime which is the representation
+   of 64-bit-time *T in that form.  Reentrant version.  */
+char *
+ctime64_r (const __time64_t *t, char *buf)
+{
+  struct tm tm;
+  return __asctime_r (__localtime64_r (t, &tm), buf);
+}
diff --git a/time/time.h b/time/time.h
index fa92275..1958679 100644
--- a/time/time.h
+++ b/time/time.h
@@ -213,6 +213,14 @@ extern char *asctime_r (const struct tm *__restrict __tp,
 /* Equivalent to `asctime_r (localtime_r (timer, *TMP*), buf)'.  */
 extern char *ctime_r (const __time_t *__restrict __timer,
 		      char *__restrict __buf) __THROW;
+
+/* Equivalent to `asctime_r (localtime64_r (timer, *TMP*), buf)'.  */
+extern char *ctime64_r (const __time64_t *__restrict __timer,
+		      char *__restrict __buf) __THROW;
+
+#ifdef __USE_TIME_BITS64
+#define ctime_r ctime64_r
+#endif
 #endif	/* POSIX */
 
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
GNU C Library master sources


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