This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 0/2] Y2038 support batch 1 - __time64_t and __tz_convert
- From: Albert ARIBAUD <albert dot aribaud at 3adev dot fr>
- To: libc-alpha at sourceware dot org
- Date: Wed, 13 Jun 2018 09:58:58 +0200
- Subject: Re: [PATCH 0/2] Y2038 support batch 1 - __time64_t and __tz_convert
- References: <20180613070019.4639-1-albert.aribaud@3adev.fr>
Added note (will be part of cover letter for all future Y2038 patch
posts):
All Y2038 patches are tested functionally using an ad hoc framework
published at https://github.com/3adev/y2038 which runs tests using times
below, at and beyond the Y2038 limit. The tests are run on ARM
architecture.
These patches have also been tested using build-many-glibcs.py, always
for x86_64, aarch64, arm and powerpc compilers, and regularly for all
compilers, and found to give the same results as those of the current
glibc master above which the patches were created.
On Wed, 13 Jun 2018 09:00:17 +0200, "Albert ARIBAUD (3ADEV)"
<albert.aribaud@3adev.fr> wrote :
> This is the first batch of Y2038 support patches.
>
> The first patch provides __time64_t, the 64-bit counterpart of time_t,
> to be used in 64-bit-time implementations of public APIs related to time.
>
> The second makes __tz_convert compatible with 64-bit time. This implies
> creating 64-bit-time versions of its callers and turning their original
> (32-bit-time) versions into wrappers.
>
> Albert ARIBAUD (3ADEV) (2):
> Y2038: add type __time64_t
> Y2038: make __tz_convert compatible with 64-bit-time
>
> bits/typesizes.h | 1 +
> include/time.h | 29 +++++++++++---
> posix/bits/types.h | 3 +-
> sysdeps/mach/hurd/bits/typesizes.h | 1 +
> .../unix/sysv/linux/alpha/bits/typesizes.h | 1 +
> .../unix/sysv/linux/generic/bits/typesizes.h | 1 +
> sysdeps/unix/sysv/linux/s390/bits/typesizes.h | 1 +
> .../unix/sysv/linux/sparc/bits/typesizes.h | 1 +
> sysdeps/unix/sysv/linux/x86/bits/typesizes.h | 1 +
> time/Versions | 5 +++
> time/ctime.c | 21 ++++++++--
> time/ctime_r.c | 21 ++++++++--
> time/gmtime.c | 38 ++++++++++++++++---
> time/localtime.c | 36 ++++++++++++++++--
> time/offtime.c | 12 +++---
> time/tzfile.c | 14 ++-----
> time/tzset.c | 30 ++++++---------
> 17 files changed, 160 insertions(+), 56 deletions(-)
>
Cordialement,
Albert ARIBAUD
3ADEV