Am 15/11/2017 um 21:13 schrieb waddlesplash:
What about real_time_clock() ?Ah, right. From looking around, it seems real_time_clock() is just
used to set time_t ... and it does appear that BeOS used a uint32 here
as well (and that function is of course more used.)
So would using "unsigned time_t" be OK here? I think that solves the
ABI problem as well as the return value problem.
It looks like overflow is not handled for real_time_clock_usecs and
friends either, so this is not exactly a new problem. I wonder what
the right thing to do is? (I doubt anyone will be running an unpatched
Haiku in 292 billion years, so I also wonder just how much of a
practical problem this is.)