public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/6] y2038: Convert settimeofday to be Y2038 safe
@ 2020-01-18  7:34 Lukasz Majewski
  2020-01-18  7:21 ` [PATCH 5/6] y2038: Provide conversion helpers for struct __timeval64 Lukasz Majewski
                   ` (5 more replies)
  0 siblings, 6 replies; 34+ messages in thread
From: Lukasz Majewski @ 2020-01-18  7:34 UTC (permalink / raw)
  To: Joseph Myers, Paul Eggert, Adhemerval Zanella, Samuel Thibault
  Cc: Alistair Francis, Alistair Francis, GNU C Library,
	Siddhesh Poyarekar, Florian Weimer, Florian Weimer,
	Zack Weinberg, Carlos O'Donell, Andreas Schwab,
	Lukasz Majewski

In this patch series the settimeofday undergoes some rework to internally use
__clock_settime64, which now supports 64 bit time (even on machines with
__TIMESIZE != 64).

It is now possible to use settimeofday in Y2038 systems (when proper redirection
is used).

To allow this conversion it was necessary to modify some alpha code and 
# include <sys/time.h> in ./include/time.h

The repository with Y2038 supprt (which uses this work)
https://github.com/lmajewski/y2038_glibc/commits/glibc_settimeofday_64bit_conversion_v1

Lukasz Majewski (6):
  y2038: Use __clock_settime64 in deprecated stime function
  y2038: hurd: Provide __clock_settime64 function
  y2038: Introduce struct __timeval64 - new internal glibc type
  y2038: alpha: Rename valid_timeval_to_timeval64 to
    valid_timeval32_to_timeval
  y2038: Provide conversion helpers for struct __timeval64
  y2038: linux: Provide __settimeofday64 implementation

 include/time.h                                | 59 +++++++++++++++++++
 sysdeps/mach/hurd/clock_settime.c             |  9 +++
 sysdeps/unix/sysv/linux/alpha/osf_adjtime.c   |  4 +-
 sysdeps/unix/sysv/linux/alpha/osf_setitimer.c |  4 +-
 sysdeps/unix/sysv/linux/alpha/osf_utimes.c    |  4 +-
 sysdeps/unix/sysv/linux/alpha/tv32-compat.h   |  2 +-
 time/settimeofday.c                           | 19 ++++--
 time/stime.c                                  |  4 +-
 8 files changed, 92 insertions(+), 13 deletions(-)

-- 
2.20.1

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2020-01-27 22:01 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-18  7:34 [PATCH 0/6] y2038: Convert settimeofday to be Y2038 safe Lukasz Majewski
2020-01-18  7:21 ` [PATCH 5/6] y2038: Provide conversion helpers for struct __timeval64 Lukasz Majewski
2020-01-18 23:47   ` Alistair Francis
2020-01-18  7:21 ` [PATCH 1/6] y2038: Use __clock_settime64 in deprecated stime function Lukasz Majewski
2020-01-20 17:01   ` Adhemerval Zanella
2020-01-20 18:01     ` Lukasz Majewski
2020-01-20 18:26       ` Adhemerval Zanella
2020-01-21 17:16         ` Lukasz Majewski
2020-01-21 17:20           ` Adhemerval Zanella
2020-01-18  7:21 ` [PATCH 4/6] y2038: alpha: Rename valid_timeval_to_timeval64 to valid_timeval32_to_timeval Lukasz Majewski
2020-01-18 23:03   ` Alistair Francis
2020-01-18  7:21 ` [PATCH 6/6] y2038: linux: Provide __settimeofday64 implementation Lukasz Majewski
2020-01-19  1:13   ` Alistair Francis
2020-01-18  7:21 ` [PATCH 2/6] y2038: hurd: Provide __clock_settime64 function Lukasz Majewski
2020-01-20 17:12   ` Adhemerval Zanella
2020-01-20 18:10     ` Lukasz Majewski
2020-01-20 18:29       ` Adhemerval Zanella
2020-01-21 16:46         ` Lukasz Majewski
2020-01-21 17:22           ` Adhemerval Zanella
2020-01-21 17:25             ` Samuel Thibault
2020-01-28  0:36             ` Samuel Thibault
2020-01-18  7:21 ` [PATCH 3/6] y2038: Introduce struct __timeval64 - new internal glibc type Lukasz Majewski
2020-01-18 22:49   ` Alistair Francis
2020-01-19 15:22     ` Arnd Bergmann
2020-01-19 15:39       ` Lukasz Majewski
2020-01-19 21:30         ` Arnd Bergmann
2020-01-20  2:12           ` Lukasz Majewski
2020-01-20 13:01             ` Lukasz Majewski
2020-01-20 13:03               ` Arnd Bergmann
2020-01-20 16:58                 ` Adhemerval Zanella
2020-01-20 19:25                   ` Arnd Bergmann
2020-01-21 16:55                     ` Lukasz Majewski
2020-01-21 17:31                       ` Adhemerval Zanella
2020-01-21 22:02                         ` Lukasz Majewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).