Subject: rdate to 64bit machines bad
To: NetBSD current-users mailing list <>
From: Julian Coleman <>
List: current-users
Date: 09/19/2001 15:19:03
Grabbed the time using rdate from an Ultrasparc1 yesterday.  Hmm, February 7
2036.  Looking at usr.sbin/inetd/inetd.c, machtime(), machtime_stream() and
machtime_dg() use a long to store the time value and send this straight out
on the wire.  On the Ultrasparc, this is 8 bytes.  The other machine was
only expecting 4.

So, should the machtime..() calls use time_t (and be consistent with rdate.c)
and cast the return from gettimeofday(), or should gettimeofday() return 
something else (int, time_t, u_int32_t)?  Should time_t be a u_int32_t?


                    My other computer also runs NetBSD