Re: [RFC 0/2] ABI for clock_gettime_ns
From: Andy Lutomirski
Date: Sat Dec 24 2011 - 00:59:46 EST
On Thu, Dec 22, 2011 at 4:03 AM, Richard Cochran
> On Wed, Dec 14, 2011 at 11:07:46AM -0800, john stultz wrote:
>> Maybe I'm still not understanding, but that seems more limited then what
>> is being proposed, at least in my mind. clock_gettime_ns() would still
>> take a clockid, so having a CLOCK_TAI would be a potential change in the
> POSIX got the clock_gettime interface wrong, because you cannot tell
> the time with it. The POSIX interface will return the same time value
> for two consecutive seconds, due to leap seconds.
> IMHO, new interfaces should correct this mistake. So, a new interface
> providing UTC should also tell the user about leap seconds.
I agree. Hence the extra padding that can be used to fix this, once
the fix is available in core code.
I've written the patch and it's not as big an improvement as I hoped.
I'll play with it a bit and send it out soon.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/