Date: Tue, 30 Mar 2004 12:03:19 -0700 (MST) From: RJ45 <rj45@slacknet.com> To: John-Mark Gurney <gurney_j@efn.org> Cc: freebsd-sparc64@freebsd.org Subject: Re: problem with dates Message-ID: <Pine.LNX.4.21.0403301203060.22664-100000@slacknet.slacknet.com> In-Reply-To: <20040330180520.GT567@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I think you are right this is also happening to me with OpenBSD on sparc64 thanks Rick On Tue, 30 Mar 2004, John-Mark Gurney wrote: > RJ45 wrote this message on Tue, Mar 30, 2004 at 10:39 -0700: > > even if this si the current time: > > > > Tue Mar 30 19:39:04 CEST 2004 > > > > anyone got this problem? > > thanks > > Looks like the code is broken in that it assumes that time_t is an int, > and passes a pointer to a time_t to another function that casts it to > an integer... This would turn up this problem since time_t's are now > 64bits, and int's are 32bits, and since sparc64 is a big endian platform, > the first 32bits of a 64bit time_t are usually zero... > > Tell the author of the program that his code is broken. > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0403301203060.22664-100000>