From owner-freebsd-sparc64@FreeBSD.ORG Tue Jan 6 01:17:28 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6739E16A4CE for ; Tue, 6 Jan 2004 01:17:28 -0800 (PST) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id D01BE43D1F for ; Tue, 6 Jan 2004 01:17:25 -0800 (PST) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])i069HLL06387; Tue, 6 Jan 2004 10:17:22 +0100 (MET) Date: Tue, 6 Jan 2004 10:17:21 +0100 (CET) From: Harti Brandt To: Garance A Drosihn In-Reply-To: Message-ID: <20040106095942.O66232@beagle.fokus.fraunhofer.de> References: <200312212239.38557.craig@xfoil.gank.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-sparc64@freebsd.org Subject: Re: Gearing up for 64-bit time_t on sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: harti@freebsd.org List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 09:17:28 -0000 On Mon, 5 Jan 2004, Garance A Drosihn wrote: GAD>In the thread on GAD> Re: An experiment: 64-bit time_t on IA-32 (5.2-RC) GAD>David O'Brien wrote: GAD>>On Mon, Dec 22, 2003, Garance A Drosihn wrote: GAD>> > Note that there it is likely we will switch sparc64 to a GAD>>> 64-bit time_t before 5.3 is released. We talked about making GAD>>> that change sometime in January, once we would be sure that GAD>>> 5.2-release was settled. GAD>> GAD>>On Tue, Dec 23, 2003, Harti Brandt wrote: GAD>> > time_t is a long on Solaris and hence 64bit (when compiling GAD>> > in 64-bit mode). Compatibility (with Solaris and Posix) GAD>> > requires time_t to be 64-bit and tv_sec to be a time_t. GAD>> > I'm running with a 64-bit time_t for two months now GAD>> > without problems. GAD>> GAD>>Before the tree starts to get disruptive and unstable on the GAD>>push to 5.3; maybe this is a good time to make the switch to GAD>>64-bit time_t for sparc64. GAD> GAD>I think this is a good idea. I just finished a clean install of GAD>5.2-RC2 on my ultra-10, and I'm building a few of my favorite GAD>ports on that. I'll then duplicate that install to alternate GAD>partitions, and see what happens when updating that to a 64-bit GAD>time_t. GAD> GAD>So, all I need to change is the line: GAD> typedef __int32_t __time_t; GAD> GAD>in /usr/src/sys/sparc64/include/_types.h GAD>and the line: GAD> long tv_sec; /* seconds (XXX should be time_t) */ GAD> GAD>in /usr/src/sys/sys/_timeval.h GAD> GAD>Most the other definitions of tv_sec that I found are GAD>already using time_t. Btw, I noticed: GAD>sys/netinet/ip_fw.h: GAD> u_int32_t timestamp; /* tv_sec of last match*/ GAD>sys/netinet6/ip6_fw.h: GAD> long timestamp; /* timestamp (tv_sec) of last match */ GAD> GAD>but I haven't looked at the code to see how much we care about GAD>those two references. GAD> GAD>Anything else, Harti? That's just what I did. The real problem is the upgrade procedure and whether we will force people to recompile everything (and not provide a compatibility library). Providing a compat library would require a library version bump, correct? We are already at 5 so we can't do this. Given that there is no stable, we can argument that's how current is and go with that (and that's the reason for doing the change now). The only problem with the upgrade procedure I had was with tic, that for some reason got into an endless loop when running on the wrong kernel. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org