An experiment: 64-bit time_t on IA-32 (5.2-RC)
Harti Brandt
brandt at fokus.fraunhofer.de
Tue Dec 23 01:10:06 PST 2003
On Mon, 22 Dec 2003, Peter Jeremy wrote:
PJ>On Sun, Dec 21, 2003 at 10:39:38PM -0600, Craig Boston wrote:
PJ>>The initial compile went off without a hitch. This is no doubt due to hard
PJ>>work by the people working on the ia64, amd64, etc. ports where time_t is
PJ>>64-bits by default. A side note, I noticed that the alpha and sparc64 ports
PJ>>seem to be using 32-bit time_t, which surprised me.
PJ>
PJ>Alpha has a 32-bit time_t for compatability with Tru64. There are
PJ>occasional discussions on -alpha regarding the pros and cons of moving
PJ>to 64-bits. I suspect SPARC is 32 bit for Solaris compatability.
time_t is a long on Solaris and hence 64bit (when compiling in 64-bit
mode). Compatibility (with Solaris and Posix) requires time_t to be 64-bit
and tv_sec to be a time_t. I hope we will get this right until 5.3 goes
out. I'm running with a 64-bit time_t for two months now without problems.
harti
--
harti brandt,
http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private
brandt at fokus.fraunhofer.de, harti at freebsd.org
More information about the freebsd-current
mailing list