Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problems with registers save/restore on context switch?


On Tue, Dec 17, 2013 at 11:18:51PM +0400, Valery Ushakov wrote:

> Attached program converts time_t t = 1; with gmtime_r(3) in a loop and
> checks tm_year of the result, expecting 70.  Sometimes (rarely) it
> will see bogus results.
> The two most frequent bad times are
>     2038-01-19T03:14:08 (t =  0x80000000)
> and 1901-12-13T20:45:53 (t = -0x7fffffff)

I'm not familiar with modern PPC variants and our calling convention,
but you shoud make explicit whether this is 32 or 64bit time_t,
especially whether kernel and userland agree.


Home | Main Index | Thread Index | Old Index