This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 0/6] y2038: Convert settimeofday to be Y2038 safe
- From: Lukasz Majewski <lukma at denx dot de>
- To: Joseph Myers <joseph at codesourcery dot com>, Paul Eggert <eggert at cs dot ucla dot edu>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Cc: Alistair Francis <alistair23 at gmail dot com>, Alistair Francis <alistair dot francis at wdc dot com>, GNU C Library <libc-alpha at sourceware dot org>, Siddhesh Poyarekar <siddhesh at gotplt dot org>, Florian Weimer <fweimer at redhat dot com>, Florian Weimer <fw at deneb dot enyo dot de>, Zack Weinberg <zackw at panix dot com>, Carlos O'Donell <carlos at redhat dot com>, Andreas Schwab <schwab at suse dot de>, Lukasz Majewski <lukma at denx dot de>
- Date: Sat, 18 Jan 2020 08:20:41 +0100
- Subject: [PATCH 0/6] y2038: Convert settimeofday to be Y2038 safe
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