Linus time is running out

As is well known, Linux time (seconds since Jan 1st 1970) will exceed the limits of a 32-bit int early in 2038. What is the official fix to this?

AFAICS, 64-bit versions of Linux have already moved to a long int (64 bits), and you might think that 2038 is still far enough away not to start worrying yet.

But for sure, embedded systems are being built today that may well still be running when the time comes. Moreover, small embedded systems tend to use the smallest ARM processor that will fill the requirements of the application, which will ususally be a 32-bit architecture.

So what can people writing embedded systems today do to ensure that things carry on past the deadline? It will not suffice to redefine time_t, since there are lots of routines in libc that still expect the present definition.

Charles H. Lindsey ---------At Home, doing my own thing------------------------ 
Tel: +44 161 436 6131            Web: 
 Click to see the full signature
Reply to
Charles Lindsey
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.