From: Laurent Bercot <ska-dietlibc@skarnet.org>
To: musl@lists.openwall.com
Subject: Re: [PATCHv2] Add support for leap seconds in zoneinfo files
Date: Fri, 06 Dec 2013 10:48:23 +0000 [thread overview]
Message-ID: <52A1AB77.3060100@skarnet.org> (raw)
In-Reply-To: <20131206053146.GC1685@port70.net>
> - musl should not have configuration options that change
> the behaviour of an api (otherwise maintaining the code
> becomes much harder) so making leapseconds a libc build
> time config option does not work
Also, that would break musl's policy of "compile once, run
everywhere". Leap second usage should be a system-wide setting,
not a binary-wide setting.
> - hardcoding leapsecond tables into libc does not work either
> requires recompilations and restarts
Of course. Leap second tables should be read either from the
timezone files, as glibc does, or from a separate file.
> - if the clock source is a kernel level setting then the
> information should come from the kernel (eg in the aux
> vector or /proc)
> - if the clock source setting is an external setting (eg the
> configured time server uses GPS or TAI time scale) then the
> admin should provide the information through the filesystem,
musl shouldn't try to autodetect settings from the kernel. The
admin should be the authoritative source of information.
> but an update is still an operational hazard, and we need
> to invent a file format and provide tools to get it from the
> distributed tzdata files
That's the easy part. I'm already doing that for skalibs. I'm
willing to provide the format and the tools.
> - during the life-time of a process adding leapseconds may
> cause problems so the data should be cached at startup or
> on demand at the first gmtime call, but then there might be
> problems across processes if they don't have the same cached
> leapsecond list
Again, leap second announcements are a rare event and there's
plenty of time for admins to restart their processes. I don't
think that's something musl should care about.
--
Laurent
next prev parent reply other threads:[~2013-12-06 10:48 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-26 18:53 [PATCH] " Laurent Bercot
2013-11-26 18:59 ` Laurent Bercot
2013-11-26 23:32 ` Rich Felker
2013-11-27 1:06 ` Rich Felker
2013-11-27 4:10 ` Laurent Bercot
2013-11-27 4:25 ` Rich Felker
2013-11-27 5:53 ` Laurent Bercot
2013-11-27 18:43 ` Szabolcs Nagy
2013-11-27 20:33 ` Laurent Bercot
2013-12-05 1:13 ` [PATCHv2] " Laurent Bercot
2013-12-05 5:18 ` Szabolcs Nagy
2013-12-05 8:58 ` Laurent Bercot
2013-12-05 14:21 ` Szabolcs Nagy
2013-12-05 14:43 ` Rich Felker
2013-12-05 16:31 ` Laurent Bercot
2013-12-05 16:40 ` Rich Felker
2013-12-06 0:36 ` Laurent Bercot
2013-12-06 0:45 ` Rich Felker
2013-12-06 1:15 ` Laurent Bercot
2013-12-06 5:31 ` Szabolcs Nagy
2013-12-06 10:48 ` Laurent Bercot [this message]
2013-12-06 11:38 ` Raphael Cohn
2013-12-06 23:29 ` Laurent Bercot
2013-12-07 2:31 ` Rich Felker
2013-12-07 4:02 ` Szabolcs Nagy
2013-12-07 8:52 ` Laurent Bercot
2013-12-06 6:29 ` Rich Felker
2013-12-06 10:37 ` Laurent Bercot
2013-12-06 12:50 ` Rich Felker
2013-12-06 13:27 ` Szabolcs Nagy
2013-12-06 15:48 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52A1AB77.3060100@skarnet.org \
--to=ska-dietlibc@skarnet.org \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).