Do you have a question? Post it now! No Registration Necessary
- Charles Lindsey
November 24, 2014, 4:32 pm

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.
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: http://www.cs.man.ac.uk/~chl
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Web: http://www.cs.man.ac.uk/~chl
We've slightly trimmed the long signature. Click to see the full one.
Site Timeline
- » Need JAVA Web Developer in Chicago IL
- — Next thread in » Embedded Linux
-
- » Need Oracle HCM Functional Test Lead
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » What is this module?
- — The site's Newest Thread. Posted in » Electronics Design
-