All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manuel Reimer <Manuel.Spam-Xv0xCBoRcaZkYx7DZD8BGw@public.gmane.org>
To: linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: adjtime vs. adjtimex
Date: Sat, 05 Oct 2013 21:43:38 +0200	[thread overview]
Message-ID: <l2pq4d$2fv$1@ger.gmane.org> (raw)

Hello,

I don't know if I'm on the right list. Please point me to a better list 
if I'm wrong.

What I want to do is to adjust time *once a day* only, but I would 
prefer to not let the system time jump.

So I have the choice between adjtime and adjtimex.

I would prefer adjtimex, as it enables "11 minute mode" for the hardware 
clock.

I tried to set an offset with adjtimex and set the clock to status 
"TIME_OK". My problem is, that this status seems to get lost as soon as 
my program exits.

If I use "adjtime", then my offset is stored but I can't set the clock 
to "TIME_OK", so I have to handle hwclock on my own.

Is it possible to use "adjtimex" in a "fire and forget" manner? Is it 
possible to set an offset and time status to "OK" and keep this status 
even if my process exits?

Thanks in advance.

Greetings,

Manuel

                 reply	other threads:[~2013-10-05 19:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='l2pq4d$2fv$1@ger.gmane.org' \
    --to=manuel.spam-xv0xcborcazkyx7dzd8bgw@public.gmane.org \
    --cc=linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.