Re: Bug: Status/Summary of slashdot leap-second crash on new years2008-2009

From: David Newall
Date: Wed Jan 07 2009 - 09:10:04 EST


Chris Adams wrote:
> Once upon a time, David Newall <davidn@xxxxxxxxxxxxxxx> said:
>
>> The remaining fly in the ointment, if indeed the NTP client doesn't
>> already do what I've outlined, is that leap seconds aren't reckoned into
>> NTP broadcasts. As intimated, this is correctable using leap second
>> information from zoneinfo.
>>
>
> No it isn't; you are still wrong. Yet again, you are ignoring the
> facts:
>

Curiously strong opinions when I've already demonstrated otherwise. On
my system, and possibly also on yours, a time_t, which is what time()
returns, is the number of seconds since epoch; which, in turn, is the
start of 1970. And on my system, zoneinfo handles leap seconds.

Just saying that I'm wrong is contrary and stubborn since evidence shows
my understanding has been correct from the start. If you're sure I'm
wrong, take my demonstration and find a flaw. Otherwise I little value
in your contribution to this discussion.

> - the standards say that time() returns seconds since the epoch in UTC
> _except_ explicity NOT including leap seconds
>

Don't believe everything you read. For example, the time(2) man page
says what POSIX does, but doesn't actually say that Linux also does the
same. It also says what you paraphrased above, but demonstrably that's
not the case. Man pages often are wrong in some details. Hence RTSL.

> - NTP already has a way to distribute leap second information to trusted
> clients
>

Yesterday, when I scanned the RFC, it was clear that NTP broadcasts do
not factor leap seconds; that every day has 86400 seconds. However if
NTP does have a way of distributing leap seconds, other than the almost
pointless leap-second flag, then that's great. If it doesn't (which
is what I understand), there's no problem anyway (as explained.)

>> However it is now clear that no special kernel support is required for
>> leap-seconds, and any such code that's been incorporated needs to be
>> removed. Removed I say!
>>
>
> And you are wrong.
>

So you say, but you have no code to back you up, whereas I do.
--
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/