From owner-cvs-all@FreeBSD.ORG Tue Dec 27 21:16:31 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F54316A420; Tue, 27 Dec 2005 21:16:31 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id D690943D7E; Tue, 27 Dec 2005 21:16:25 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 79804BC50; Tue, 27 Dec 2005 21:16:19 +0000 (UTC) To: "M. Warner Losh" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 27 Dec 2005 14:00:49 MST." <20051227.140049.73660062.imp@bsdimp.com> Date: Tue, 27 Dec 2005 22:16:18 +0100 Message-ID: <47758.1135718178@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: trhodes@FreeBSD.org, scottl@samsco.org, src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, fullermd@over-yonder.net, linimon@lonesome.com Subject: Re: cvs commit: src/sys/sys _timeval.h src/sys/fs/procfs procfs_status.c src/libexec/bootpd bootpd.c src/sys/dev/acpica/Osd OsdSynch.c src/sys/dev/firewire sbp.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 21:16:31 -0000 In message <20051227.140049.73660062.imp@bsdimp.com>, "M. Warner Losh" writes: >The chances that any of the hardware that's running FreeBSD today will >be in service in 2020, much less 2030 or 2038 is vanishingly small. >How many machines that were built in 1990 are still in service? How >many from 1980? How many from 1970? How many from 1967? More than one would immediately expect I'm afraid, and more often than not, they are in service because they are so hard to replace. >There are good reasons to switch to a 64-bit time_t well in advance of >the 2038 deadline. 30-year mortgage calculations will be the first >class of things to fail. s/will be the/will be amongst the/ >The disruption from going to 64-bit time_t >is big, but mitigated somewhat by symbol versioning that was recently >introduced. This is one of those places where a forward thinking standardization process could be a big win for UNIX. If instead of just extending the width, one redefined the epoch at the same time, it would be possible to make the migration much safer. Imagine if the epoch for 64 bit time_t was set to coincide with Julian Day zero using the rather naiive POSIX math: N [days] * 86400 [seconds/day] Converting from an old time_t to the new one would entail adding an constant offset, no big deal. But if anybody by accident would simply extend the width of a 32bit time_t to 64 bit, it would stick out like a sore thumb by being either way in the past or way in the future, something that could be checked explicitly (or implicitly by the user seeing weird timestamps). But I'm dreaming here, just ignore me. Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.