From: Ruediger Meier <sweet_f_a@gmx.de>
To: kerolasa@gmail.com
Cc: J William Piggott <elseifthen@gmx.com>,
"util-linux" <util-linux@vger.kernel.org>
Subject: Re: [PATCH] hwclock: remove UTC-0 localization hack
Date: Tue, 12 Jul 2016 16:23:04 +0200 [thread overview]
Message-ID: <201607121623.04891.sweet_f_a@gmx.de> (raw)
In-Reply-To: <CAG27Bk2oLozR-Va_vcnNS9faDZKi5Q1tC+y2F6Ws9Ye7fGu_tw@mail.gmail.com>
On Tuesday 12 July 2016, Sami Kerola wrote:
> On 11 July 2016 at 21:23, J William Piggott <elseifthen@gmx.com>
wrote:
> > We use mktime(3) for portability.
> >
> > http://www.gnu.org/software/libc/manual/html_mono/libc.html#index-t
> >imegm
> >
> > Portability note: mktime is essentially universally available.
> > timegm is rather rare. For the most portable conversion from a UTC
> > broken-down time to a simple time, set the TZ environment variable
> > to UTC, call mktime, then set TZ back.
>
> I don't think hwclock(8) is portable. It has ioctl(2) calls, and
> such.
But there are non-gnu libc's for Linux.
cu,
Rudi
next prev parent reply other threads:[~2016-07-12 14:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-10 20:02 [PATCH] hwclock: remove UTC-0 localization hack Sami Kerola
2016-07-11 20:23 ` J William Piggott
2016-07-12 11:56 ` Sami Kerola
2016-07-12 14:23 ` Ruediger Meier [this message]
2016-07-12 20:03 ` Sami Kerola
2016-07-12 21:38 ` Ruediger Meier
2016-07-12 21:42 ` Sami Kerola
2016-07-14 10:01 ` Karel Zak
2016-07-14 22:37 ` Sami Kerola
2016-07-15 18:46 ` J William Piggott
2016-07-27 16:07 ` Sami Kerola
2016-07-28 19:49 ` J William Piggott
2016-08-01 11:26 ` Karel Zak
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=201607121623.04891.sweet_f_a@gmx.de \
--to=sweet_f_a@gmx.de \
--cc=elseifthen@gmx.com \
--cc=kerolasa@gmail.com \
--cc=util-linux@vger.kernel.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox