32 bit time_t

Achim Gratz Stromeko at Nexgo.DE
Thu Apr 20 07:11:37 UTC 2017


Am 19.04.2017 um 20:38 schrieb Gary E. Miller:
> Gentoo stable on RasPi has 32 bit time_t:
> 
> Checking sizeof long                                            : 4
> Checking sizeof time_t (time.h)                                 : 4

This is a 32bit glibc based system, so this means you didn't ask for a 
64bit time_t, then.  Here's that link again that tells you how glibc 
handles this:

https://sourceware.org/glibc/wiki/Y2038ProofnessDesign

The Linux kernel itself is not Y2038 clean yet, AFAIK.  But that's no 
excuse for applications to skimp there.

-- 
Achim.

(on the road :-)



More information about the devel mailing list