This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 1/2] Y2038: Add 64-bit time for all architectures


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]