Je suis allé voir le standard et il faut se rendre à l'évidence : « Implementations in which time_t is a 32-bit signed integer (many historical implementations) fail in the year 2038. IEEE Std 1003.1-2001 does not address this problem. However, the use of the time_t type is mandated in order to ease the eventual fix. »
Même si je ne m'amuserais pas à passer une implémentation 32 bits à 64 pour les raisons que tu donnes, utiliser du 32 bits explicitement est une erreur.
(The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition)
[^] # Re: Haine anti pulseaudio/systemd sur DLFP
Posté par calandoa . En réponse au journal Linus pas content. Évalué à 2.
Je suis allé voir le standard et il faut se rendre à l'évidence :
« Implementations in which
time_tis a 32-bit signed integer (many historical implementations) fail in the year 2038. IEEE Std 1003.1-2001 does not address this problem. However, the use of thetime_ttype is mandated in order to ease the eventual fix. »Même si je ne m'amuserais pas à passer une implémentation 32 bits à 64 pour les raisons que tu donnes, utiliser du 32 bits explicitement est une erreur.
(The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition)