Gentoo Archives: gentoo-user

From: Joerg Schilling <Joerg.Schilling@××××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Don't miss the 1 500 000 000 Unix second!
Date: Mon, 17 Jul 2017 08:50:11
Message-Id: 596c7a31.Vt6OYbRzzjZI+Je3%Joerg.Schilling@fokus.fraunhofer.de
In Reply to: [gentoo-user] Re: Don't miss the 1 500 000 000 Unix second! by Grant Edwards
1 Grant Edwards <grant.b.edwards@×××××.com> wrote:
2
3 > Well, the return type for time() changed from "int" (or was it long?)
4 > to "time_t" many years back. That said, the actual underlying
5 > representation has never changed on 32-bit Linux systems. Posix
6 > requires it to be signed, and on 32-bit Linux systems, it's still
7 > going to overflow in 2038 -- same as it ever was.
8
9 time() did always return a long, in special since it counts only in seconds.
10
11 Unfortunately Tru64 from DEC changed that to an int and Linux copied the bug.
12
13 FreeBSD was going to make the same mistake, but I warned them and they delayed
14 their 64bit kernel until they had tested everything well enough.
15
16 Jörg
17
18 --
19 EMail:joerg@××××××.net (home) Jörg Schilling D-13353 Berlin
20 joerg.schilling@××××××××××××××××.de (work) Blog: http://schily.blogspot.com/
21 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'