From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 8 16:26:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F1F016A41F for ; Sat, 8 Oct 2005 16:26:13 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from hydra.bec.de (www.ostsee-abc.de [62.206.222.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9E6043D45 for ; Sat, 8 Oct 2005 16:26:12 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (storm.stura.uni-rostock.de [139.30.252.72]) by hydra.bec.de (Postfix) with ESMTP id ECE8235707 for ; Sat, 8 Oct 2005 18:26:10 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1000) id D9E882A26; Sat, 8 Oct 2005 18:25:58 +0200 (CEST) Date: Sat, 8 Oct 2005 18:25:58 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20051008162558.GB21450@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <1128644542.1273.36.camel@klamath.syndrom23.de> <20051007162846.GB12691@odin.ac.hmc.edu> <1128709063.1022.9.camel@klamath.syndrom23.de> <20051007205422.GW72352@cirb503493.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051007205422.GW72352@cirb503493.alcatel.com.au> User-Agent: Mutt/1.5.10i Subject: Re: struct timeval: why is tv_sec long? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Oct 2005 16:26:13 -0000 On Sat, Oct 08, 2005 at 06:54:22AM +1000, Peter Jeremy wrote: > On Fri, 2005-Oct-07 20:17:43 +0200, Andreas Kohn wrote: > >As SUSv2 wants tv_sec to be time_t[1], would it be possible to change > >this to time_t on all but alpha? I guess alpha will not receive a switch > >to long anymore[2]. > > tv_sec and time_t are int on Alpha for compatability with Tru64. Since > the Alpha is now a dead architecture and no longer a tier-1 FreeBSD > platform, it's unlikely anyone will expend the effort to change them. If that is the only reason, make it use time_t and add a fake field on Alpha before or after it (not sure of the byte order) to keep the alignment. Joerg