From owner-freebsd-amd64@FreeBSD.ORG Wed Sep 17 07:00:06 2008 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0606A106564A for ; Wed, 17 Sep 2008 07:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E28918FC0A for ; Wed, 17 Sep 2008 07:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m8H705u9023584 for ; Wed, 17 Sep 2008 07:00:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m8H705Sk023583; Wed, 17 Sep 2008 07:00:05 GMT (envelope-from gnats) Date: Wed, 17 Sep 2008 07:00:05 GMT Message-Id: <200809170700.m8H705Sk023583@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: Edwin Groothuis X-Mailman-Approved-At: Wed, 17 Sep 2008 11:22:08 +0000 Cc: Subject: Re: amd64/109584: zdump(8) doesn't work X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Edwin Groothuis List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2008 07:00:06 -0000 The following reply was made to PR amd64/109584; it has been noted by GNATS. From: Edwin Groothuis To: bug-followup@FreeBSD.org, dcrandall@simplestar.com Cc: Subject: Re: amd64/109584: zdump(8) doesn't work Date: Wed, 17 Sep 2008 16:53:17 +1000 Try Index: zdump.c =================================================================== --- zdump.c (revision 183065) +++ zdump.c (working copy) @@ -151,7 +151,9 @@ time_t hibit; struct tm tm; struct tm newtm; + int cpu32; + cpu32 = (sizeof(NULL) == 4); INITIALIZE(cuttime); #if HAVE_GETTEXT - 0 (void) setlocale(LC_MESSAGES, ""); @@ -222,9 +224,16 @@ /* ** Get lowest value of t. */ - t = hibit; - if (t > 0) /* time_t is unsigned */ - t = 0; + if (cpu32) { + t = hibit; + if (t > 0) /* time_t is unsigned */ + t = 0; + } else { + t = -2209024800; /* 1 January 1900 00:00:00 */ + cuttime = 4000000000; + cutoff = "2099"; + } + show(argv[i], t, TRUE); t += SECSPERHOUR * HOURSPERDAY; show(argv[i], t, TRUE); It won't resolve the issue, only mask it for now. The problem is that the time after 2037 is still not shown . -- Edwin Groothuis edwin@freebsd.org http://www.mavetju.org