From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73588 invoked by alias); 30 Jul 2018 05:38:28 -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 73563 invoked by uid 89); 30 Jul 2018 05:38:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.2 required=5.0 tests=BAYES_40,GIT_PATCH_2,GIT_PATCH_3,KAM_COUK,SPF_PASS autolearn=ham version=3.3.2 spammy=albert, Albert, Hx-languages-length:835, United X-HELO: imap1.codethink.co.uk Message-ID: <1532929095.21552.67.camel@codethink.co.uk> Subject: Re: [PATCH v2 1/2] Y2038: Add 64-bit time for all architectures From: Ben Hutchings To: "Albert ARIBAUD (3ADEV)" , libc-alpha@sourceware.org Date: Mon, 30 Jul 2018 05:38:00 -0000 In-Reply-To: <20180614135116.8767-2-albert.aribaud@3adev.fr> References: <20180614135116.8767-1-albert.aribaud@3adev.fr> <20180614135116.8767-2-albert.aribaud@3adev.fr> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SW-Source: 2018-07/txt/msg01025.txt.bz2 On Thu, 2018-06-14 at 15:51 +0200, Albert ARIBAUD (3ADEV) wrote: > * Add macro __TIMESIZE equal to the bit size of time_t. >   It equals the architecture __WORDSIZE except for x32 >   where it equals 64. > > * Add type __time64_t which is always 64-bit. On 64-bit >   architectures and on x32, it is #defined as time_t. >   On other architectures, it has its own type. [...] > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/x86/bits/timesizes.h [...] > +/* Both x86-64 and x32 use 64-bit time.  */ > +#define __TIME64_T_TYPE __TIME_T_TYPE [...] But won't this file be used for regular 32-bit x86 (i386/i686) as well? Ben. -- Ben Hutchings, Software Developer   Codethink Ltd https://www.codethink.co.uk/ Dale House, 35 Dale Street Manchester, M1 2HF, United Kingdom