Grant Edwards <> wrote:

> Well, the return type for time() changed from "int" (or was it long?)
> to "time_t" many years back.  That said, the actual underlying
> representation has never changed on 32-bit Linux systems.  Posix
> requires it to be signed, and on 32-bit Linux systems, it's still
> going to overflow in 2038 -- same as it ever was.

time() did always return a long, in special since it counts only in seconds.

Unfortunately Tru64 from DEC changed that to an int and Linux copied the bug.

FreeBSD was going to make the same mistake, but I warned them and they delayed 
their 64bit kernel until they had tested everything well enough.


--                    (home) Jörg Schilling D-13353 Berlin (work) Blog:

Reply via email to