[PATCH] rtems: Fix sp2038 test.

Sebastian Huber sebastian.huber at embedded-brains.de
Sun Apr 27 12:23:26 UTC 2014


On 04/27/2014 10:17 AM, Chris Johns wrote:
> Avoid using newlib's gmtime_r call which fails with a max signed int.
> Add an RTEMS specific version for 1/1/1988 to 31/12/2100.
>
> Update sp2038 to test every day from 1/1/1988 to 31/12/2100. Only days
> need be tested as the code splits the seconds based on days.

This doesn't solve the problem with the year 2038 problem for the UNIX 
32-bit time.  I don't think we should duplicate the time code and 
instead use the one from Newlib.  We should change time_t to 64-bit instead.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list