3 ms·
Haven’t libcs started to move towards 64-bit time_t? I think musl just rolled it out by default.
by saagarjha 6y ago
Haven’t libcs started to move towards 64-bit time_t? I think musl just rolled it out by default.
- bonzini 6y agoMany 32-bit embedded systems aren't able to update their libc.
- goodcanadian 6y agoSure, but what percentage of those systems will be alive in 18 years? I'm sure it is non-zero, but it is also probably small. Regardless, those systems can't be updated, so they will have the problem either way. That says nothing about whether new systems should be given 64 bit time stamps.
- throwaway09223 6y agoSystems which can't update their libc or other system software have already broken in various ways. For example, in 2007 the Energy Policy Act of 2005 changed the date when DST begins and ends. Any system unable to update its libc data files since about 13-15 years ago will display the incorrect time. I have a cheap $10 radio clock which I've had for two decades. It always displays the wrong time for a few weeks around the DST change. Any system which needs to display the correct time needs to have a mechanism for updates. The time_t wraparound is a bit deeper and more serious, granted.
- bonzini 6y agoDisplaying the time is not always needed; _tracking_ the time (storing it into a variable) is pretty much unavoidable.
- arnd 6y agomusl has completed the move with version 1.2, and embedded distros are moving to that. glibc time64 support is still work in progress, as I wrote in the article