problem with dates

RJ45 rj45 at slacknet.com
Tue Mar 30 11:03:20 PST 2004


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."
> 



More information about the freebsd-sparc64 mailing list