Subject: rdate to 64bit machines bad
To: NetBSD current-users mailing list <current-users@netbsd.org>
From: Julian Coleman <jdc@coris.demon.co.uk>
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?

J

-- 
                    My other computer also runs NetBSD
                          http://www.netbsd.org/