GNU C Library master sources branch master updated. glibc-2.28.9000-474-gc4c2836

aaribaud@sourceware.org aaribaud@sourceware.org
Tue Dec 18 22:15:00 GMT 2018


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, master has been updated
       via  c4c2836ada90259e4c5632f962dfcda54ac448fa (commit)
       via  7755e504117cc014416a60f8498f3f15b14d6482 (commit)
       via  a1d346ce0d6e93bd48638ad57a11e37afacdc80f (commit)
       via  131db8b0c8eeb4185aaf641e9ab119717b0a860e (commit)
       via  64c2277d2eb14b6b485a16b799d900505e2cbe71 (commit)
      from  64dd7a16305441a7d6ed752c192c68b6c2a54ca5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

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

commit c4c2836ada90259e4c5632f962dfcda54ac448fa
Author: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Date:   Tue Dec 18 23:13:55 2018 +0100

    Y2038: add function __ctime64_r
    
    Tested with 'make check' on x86_64-linux-gnu and i686-linux.gnu.
    
    	* include/time.h
    	(__ctime64_r): Add.
    	* time/ctime_r.c
    	(__ctime64_r): Add.
    	[__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.

diff --git a/ChangeLog b/ChangeLog
index 9b345fa..7caa73e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2018-12-18  Albert ARIBAUD <albert.aribaud@3adev.fr>
 
 	* include/time.h
+	(__ctime64_r): Add.
+	* time/ctime_r.c
+	(__ctime64_r): Add.
+	[__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
+
+	* include/time.h
 	(__ctime64): Add.
 	* time/gmtime.c
 	(__ctime64): Add.
diff --git a/include/time.h b/include/time.h
index 34d9de1..a10a59a 100644
--- a/include/time.h
+++ b/include/time.h
@@ -65,6 +65,14 @@ libc_hidden_proto (__ctime64);
 #endif
 
 #if __TIMESIZE == 64
+# define __ctime64_r ctime_r
+#else
+extern char *__ctime64_r (const __time64_t *__restrict __timer,
+		          char *__restrict __buf) __THROW;
+libc_hidden_proto (__ctime64_r);
+#endif
+
+#if __TIMESIZE == 64
 # define __localtime64 localtime
 #else
 extern struct tm *__localtime64 (const __time64_t *__timer);
diff --git a/time/ctime_r.c b/time/ctime_r.c
index c111146..38be678 100644
--- a/time/ctime_r.c
+++ b/time/ctime_r.c
@@ -22,8 +22,23 @@
 /* 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)
+__ctime64_r (const __time64_t *t, char *buf)
 {
   struct tm tm;
-  return __asctime_r (__localtime_r (t, &tm), buf);
+  return __asctime_r (__localtime64_r (t, &tm), buf);
+}
+
+/* Provide a 32-bit variant if needed.  */
+
+#if __TIMESIZE != 64
+
+libc_hidden_def (__ctime64_r)
+
+char *
+ctime_r (const time_t *t, char *buf)
+{
+  __time64_t t64 = *t;
+  return __ctime64_r (&t64, buf);
 }
+
+#endif

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=7755e504117cc014416a60f8498f3f15b14d6482

commit 7755e504117cc014416a60f8498f3f15b14d6482
Author: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Date:   Tue Dec 18 23:13:24 2018 +0100

    Y2038: add function __ctime64
    
    Tested with 'make check' on x86_64-linux-gnu and i686-linux.gnu.
    
    	* include/time.h
    	(__ctime64): Add.
    	* time/gmtime.c
    	(__ctime64): Add.
    	[__TIMESIZE != 64] (ctime): Turn into a wrapper.

diff --git a/ChangeLog b/ChangeLog
index 5dfc488..9b345fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2018-12-18  Albert ARIBAUD <albert.aribaud@3adev.fr>
 
 	* include/time.h
+	(__ctime64): Add.
+	* time/gmtime.c
+	(__ctime64): Add.
+	[__TIMESIZE != 64] (ctime): Turn into a wrapper.
+
+	* include/time.h
 	(__gmtime64_r): Add.
 	* time/gmtime.c
 	(__gmtime64_r): Add.
diff --git a/include/time.h b/include/time.h
index fb93d64..34d9de1 100644
--- a/include/time.h
+++ b/include/time.h
@@ -58,6 +58,13 @@ extern time_t __mktime_internal (struct tm *__tp,
 				 long int *__offset) attribute_hidden;
 
 #if __TIMESIZE == 64
+# define __ctime64 ctime
+#else
+extern char *__ctime64 (const __time64_t *__timer) __THROW;
+libc_hidden_proto (__ctime64);
+#endif
+
+#if __TIMESIZE == 64
 # define __localtime64 localtime
 #else
 extern struct tm *__localtime64 (const __time64_t *__timer);
diff --git a/time/ctime.c b/time/ctime.c
index 1222614..7925662 100644
--- a/time/ctime.c
+++ b/time/ctime.c
@@ -20,9 +20,24 @@
 /* Return a string as returned by asctime which
    is the representation of *T in that form.  */
 char *
-ctime (const time_t *t)
+__ctime64 (const __time64_t *t)
 {
   /* The C Standard says ctime (t) is equivalent to asctime (localtime (t)).
      In particular, ctime and asctime must yield the same pointer.  */
-  return asctime (localtime (t));
+  return asctime (__localtime64 (t));
+}
+
+/* Provide a 32-bit variant if needed.  */
+
+#if __TIMESIZE != 64
+
+libc_hidden_def (__ctime64)
+
+char *
+ctime (const time_t *t)
+{
+  __time64_t t64 = *t;
+  return __ctime64 (&t64);
 }
+
+#endif

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a1d346ce0d6e93bd48638ad57a11e37afacdc80f

commit a1d346ce0d6e93bd48638ad57a11e37afacdc80f
Author: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Date:   Tue Dec 18 23:12:30 2018 +0100

    Y2038: add function __gmtime64_r
    
    Tested with 'make check' on x86_64-linux-gnu and i686-linux.gnu.
    
    	* include/time.h
    	(__gmtime64_r): Add.
    	* time/gmtime.c
    	(__gmtime64_r): Add.
    	[__TIMESIZE != 64] (__gmtime): Turn into a wrapper.

diff --git a/ChangeLog b/ChangeLog
index fe1b8fc..5dfc488 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2018-12-18  Albert ARIBAUD <albert.aribaud@3adev.fr>
 
 	* include/time.h
+	(__gmtime64_r): Add.
+	* time/gmtime.c
+	(__gmtime64_r): Add.
+	[__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
+
+	* include/time.h
 	(__gmtime64): Add.
 	* time/gmtime.c
 	(__gmtime64): Add.
diff --git a/include/time.h b/include/time.h
index c5881ac..fb93d64 100644
--- a/include/time.h
+++ b/include/time.h
@@ -86,6 +86,14 @@ extern struct tm *__gmtime64 (const __time64_t *__timer);
 libc_hidden_proto (__gmtime64)
 #endif
 
+#if __TIMESIZE == 64
+# define __gmtime64_r __gmtime_r
+#else
+extern struct tm *__gmtime64_r (const __time64_t *__restrict __timer,
+				struct tm *__restrict __tp);
+libc_hidden_proto (__gmtime64_r);
+#endif
+
 /* Compute the `struct tm' representation of T,
    offset OFFSET seconds east of UTC,
    and store year, yday, mon, mday, wday, hour, min, sec into *TP.
diff --git a/time/gmtime.c b/time/gmtime.c
index ee901c3..dff50f0 100644
--- a/time/gmtime.c
+++ b/time/gmtime.c
@@ -21,10 +21,26 @@
 /* Return the `struct tm' representation of *T in UTC,
    using *TP to store the result.  */
 struct tm *
-__gmtime_r (const time_t *t, struct tm *tp)
+__gmtime64_r (const __time64_t *t, struct tm *tp)
 {
   return __tz_convert (*t, 0, tp);
 }
+
+/* Provide a 32-bit variant if needed.  */
+
+#if __TIMESIZE != 64
+
+libc_hidden_def (__gmtime64_r)
+
+struct tm *
+__gmtime_r (const time_t *t, struct tm *tp)
+{
+  __time64_t t64 = *t;
+  return __gmtime64_r (&t64, tp);
+}
+
+#endif
+
 libc_hidden_def (__gmtime_r)
 weak_alias (__gmtime_r, gmtime_r)
 

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=131db8b0c8eeb4185aaf641e9ab119717b0a860e

commit 131db8b0c8eeb4185aaf641e9ab119717b0a860e
Author: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Date:   Tue Dec 18 23:11:40 2018 +0100

    Y2038: add function __gmtime64
    
    Tested with 'make check' on x86_64-linux-gnu and i686-linux.gnu.
    
    	* include/time.h
    	(__gmtime64): Add.
    	* time/gmtime.c
    	(__gmtime64): Add.
    	[__TIMESIZE != 64] (__gmtime): Turn into a wrapper.

diff --git a/ChangeLog b/ChangeLog
index 4724c84..fe1b8fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2018-12-18  Albert ARIBAUD <albert.aribaud@3adev.fr>
 
 	* include/time.h
+	(__gmtime64): Add.
+	* time/gmtime.c
+	(__gmtime64): Add.
+	[__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
+
+	* include/time.h
 	(__localtime64_r): Add.
 	* time/localtime.c
 	(__localtime64_r): Add.
diff --git a/include/time.h b/include/time.h
index 876b8a2..c5881ac 100644
--- a/include/time.h
+++ b/include/time.h
@@ -79,6 +79,13 @@ extern struct tm *__gmtime_r (const time_t *__restrict __timer,
 			      struct tm *__restrict __tp);
 libc_hidden_proto (__gmtime_r)
 
+#if __TIMESIZE == 64
+# define __gmtime64 gmtime
+#else
+extern struct tm *__gmtime64 (const __time64_t *__timer);
+libc_hidden_proto (__gmtime64)
+#endif
+
 /* Compute the `struct tm' representation of T,
    offset OFFSET seconds east of UTC,
    and store year, yday, mon, mday, wday, hour, min, sec into *TP.
diff --git a/time/gmtime.c b/time/gmtime.c
index bda09bc..ee901c3 100644
--- a/time/gmtime.c
+++ b/time/gmtime.c
@@ -28,10 +28,24 @@ __gmtime_r (const time_t *t, struct tm *tp)
 libc_hidden_def (__gmtime_r)
 weak_alias (__gmtime_r, gmtime_r)
 
+/* Return the `struct tm' representation of *T in UTC.  */
+struct tm *
+__gmtime64 (const __time64_t *t)
+{
+  return __tz_convert (*t, 0, &_tmbuf);
+}
+
+/* Provide a 32-bit variant if needed.  */
+
+#if __TIMESIZE != 64
+
+libc_hidden_def (__gmtime64)
 
-/* Return the `struct tm' representation of *T in UTC.	*/
 struct tm *
 gmtime (const time_t *t)
 {
-  return __tz_convert (*t, 0, &_tmbuf);
+  __time64_t t64 = *t;
+  return __gmtime64 (&t64);
 }
+
+#endif

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=64c2277d2eb14b6b485a16b799d900505e2cbe71

commit 64c2277d2eb14b6b485a16b799d900505e2cbe71
Author: Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
Date:   Tue Dec 18 23:11:08 2018 +0100

    Y2038: add function __localtime64_r
    
    Tested with 'make check' on x86_64-linux-gnu and i686-linux.gnu.
    
    	* include/time.h
    	(__localtime64_r): Add.
    	* time/localtime.c
    	(__localtime64_r): Add.
    	[__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.

diff --git a/ChangeLog b/ChangeLog
index 1e55537..4724c84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-12-18  Albert ARIBAUD <albert.aribaud@3adev.fr>
+
+	* include/time.h
+	(__localtime64_r): Add.
+	* time/localtime.c
+	(__localtime64_r): Add.
+	[__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
+
 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	* sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
diff --git a/include/time.h b/include/time.h
index 3bc303a..876b8a2 100644
--- a/include/time.h
+++ b/include/time.h
@@ -67,6 +67,14 @@ libc_hidden_proto (__localtime64)
 extern struct tm *__localtime_r (const time_t *__timer,
 				 struct tm *__tp) attribute_hidden;
 
+#if __TIMESIZE == 64
+# define __localtime64_r __localtime_r
+#else
+extern struct tm *__localtime64_r (const __time64_t *__timer,
+				   struct tm *__tp);
+libc_hidden_proto (__localtime64_r)
+#endif
+
 extern struct tm *__gmtime_r (const time_t *__restrict __timer,
 			      struct tm *__restrict __tp);
 libc_hidden_proto (__gmtime_r)
diff --git a/time/localtime.c b/time/localtime.c
index 96879d4..9367c70 100644
--- a/time/localtime.c
+++ b/time/localtime.c
@@ -25,10 +25,25 @@ struct tm _tmbuf;
 /* Return the `struct tm' representation of *T in local time,
    using *TP to store the result.  */
 struct tm *
-__localtime_r (const time_t *t, struct tm *tp)
+__localtime64_r (const __time64_t *t, struct tm *tp)
 {
   return __tz_convert (*t, 1, tp);
 }
+
+/* Provide a 32-bit variant if needed.  */
+
+#if __TIMESIZE != 64
+
+struct tm *
+__localtime_r (const time_t *t, struct tm *tp)
+{
+  __time64_t t64 = *t;
+  return __localtime64_r (&t64, tp);
+}
+libc_hidden_def (__localtime64_r)
+
+#endif
+
 weak_alias (__localtime_r, localtime_r)
 
 

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

Summary of changes:
 ChangeLog        |   32 ++++++++++++++++++++++++++++++++
 include/time.h   |   38 ++++++++++++++++++++++++++++++++++++++
 time/ctime.c     |   19 +++++++++++++++++--
 time/ctime_r.c   |   19 +++++++++++++++++--
 time/gmtime.c    |   36 +++++++++++++++++++++++++++++++++---
 time/localtime.c |   17 ++++++++++++++++-
 6 files changed, 153 insertions(+), 8 deletions(-)


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



More information about the Glibc-cvs mailing list