From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17493 invoked by alias); 16 Jun 2018 17:13:40 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 17479 invoked by uid 89); 16 Jun 2018 17:13:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=beyond, sk:arm-lin, minimal, configurations X-HELO: smtp2-g21.free.fr From: "Albert ARIBAUD (3ADEV)" To: libc-alpha@sourceware.org Cc: "Albert ARIBAUD (3ADEV)" Subject: [PATCH v3 0/2] Y2038 support batch 1 - __time64_t and __tz_convert Date: Sat, 16 Jun 2018 17:13:00 -0000 Message-Id: <20180616171331.25224-1-albert.aribaud@3adev.fr> X-SW-Source: 2018-06/txt/msg00460.txt.bz2 This is the first batch of Y2038 support patches. The first patch introduces __TIMESIZE (which is the bit size of time_t at glibc build time, and equals __WORDSIZE except for x32 where __WORDSIZE is 32 but __TIMESIZE is 64) and __time64_t, the 64-bit counterpart of time_t, to be used in 64-bit-time implementations of public APIs related to time. Note that __time64_t replaces internal_time_t previously introduced. The second patch makes __tz_convert compatible with 64-bit time. This implies creating 64-bit-time versions of its callers and turning their original versions into wrappers if they were 32-bit-time. These patches are functionally tested as part of the whole Y2038 patch series using the ad hoc framework at https://github.com/3adev/y2038 which runs tests using times below, at and beyond the Y2038 limit. These patches were also run through build-many-glibcs.py to ensure that existing glibc configurations are not broken. The minimal configuration set is x86_64-linux-gnu, aarch64-linux-gnu, powerpc-linux-gnu, and arm-linux-gnueabi. Albert ARIBAUD (3ADEV) (2): Y2038: Add 64-bit time for all architectures Y2038: make __tz_convert compatible with 64-bit-time bits/timesize.h | 23 ++++++++++++ bits/timesizes.h | 37 ++++++++++++++++++++ include/time.h | 54 +++++++++++++++++++++++------ posix/bits/types.h | 8 +++++ stdlib/Makefile | 2 +- sysdeps/x86_64/x32/bits/timesize.h | 21 +++++++++++ sysdeps/x86_64/x32/bits/timesizes.h | 32 +++++++++++++++++ time/ctime.c | 18 ++++++++-- time/ctime_r.c | 20 +++++++++-- time/gmtime.c | 40 ++++++++++++++++++--- time/localtime.c | 37 +++++++++++++++++--- time/offtime.c | 12 +++---- time/tzfile.c | 32 +++++++---------- time/tzset.c | 30 +++++++--------- 14 files changed, 297 insertions(+), 69 deletions(-) create mode 100644 bits/timesize.h create mode 100644 bits/timesizes.h create mode 100644 sysdeps/x86_64/x32/bits/timesize.h create mode 100644 sysdeps/x86_64/x32/bits/timesizes.h -- 2.17.1