From: karish@pangea.Stanford.EDU (Chuck Karish)
Subject: Re: gmtime(): Doesn't account for leap seconds?!
Date: 1996/04/24 [thread overview]
Message-ID: <4lm50c$e3i@nntp.Stanford.EDU> (raw)
In-Reply-To: 4lltpp$een@jik.israel.net
In article <4lltpp$een@jik.israel.net>,
Jonathan Kamens <jik@annex-1-slip-jik.cam.ov.com> wrote:
>LINUX isn't "POSIX-complaint", per se, since only one Linux distribution
>(Linux-FT) has been tested for compliance, and that distribution made numerous
>changes to standard Linux software in order to obtain compliance. It's
>entirely possible that they ripped out the leap second support in order to
>pass the POSIX tests. Or that they didn't try to obtain full POSIX
>compliance, and therefore weren't tested in this particular way. Or that the
>POSIX tests missed this one :-).
A version of Linux has been certified to conform to FIPS 151-2. It's
not necessary to speculate about what might have been tested, because
the source code of the NIST POSIX test suite tells the story.
A system that corrects for leap seconds in gmtime() will definitely
fail the NIST test.
>Also, a Linux system without a file recording leap seconds *will* handle time
>in a POSIX-compliant way, since if no leap seconds are defined, time will
>behave as POSIX requires. It's just that if some goes ahead and adds leap
>seconds to the configuration of the system, it will no longer be
>POSIX-complaint. Therefore, it wouldn't surprise me at all if Linux-FT passed
>the compliance tests simply by not configuring leap seconds, but leaving the
>funcionality in so that their users can configure them in (and thereby "break"
>POSIX compliance) if they desire.
The right way to handle this is to provide a separate set of
functions for use in those programs where leap seconds make a
difference.
--
Chuck Karish karish@mindcraft.com
(415) 323-9000 x117 karish@pangea.stanford.edu
next prev parent reply other threads:[~1996-04-24 4:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-22 4:00 gmtime(): Doesn't account for leap seconds?! Edward J Sabol
1996-04-23 4:00 ` Jonathan Kamens
1996-04-24 4:00 ` Lawrence Kirby
1996-04-24 4:00 ` Chuck Karish
1996-04-25 4:00 ` Mark Brader
1996-04-24 4:00 ` Jonathan Kamens
1996-04-24 4:00 ` Chuck Karish [this message]
1996-04-25 4:00 ` Bill Marcum
1996-04-24 4:00 ` P.Bennett
1996-04-25 4:00 ` When do leap seconds occur? (was: Re: gmtime(): Doesn't account for leap seconds?!) Jonathan Kamens
1996-04-24 4:00 ` gmtime(): Doesn't account for leap seconds?! Chuck Karish
1996-04-25 4:00 ` Geoff Clare
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox