Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Oct 2005 18:25:58 +0200
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: struct timeval: why is tv_sec long?
Message-ID:  <20051008162558.GB21450@britannica.bec.de>
In-Reply-To: <20051007205422.GW72352@cirb503493.alcatel.com.au>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051008162558.GB21450>