Setting the hardware clock from code.

Greetings,

Does anyone know how to save the time to the clock hardware in code? That
is, I’m looking for code that will do the equivalent of rtc -s hw.

]{ristoph

The source for rtc for QNX4 is available on QNX ftp site.
Maybe it’s in RTP CVS repository.

“]{ristoph” <news2@kristoph.net> wrote in message
news:9e0fkt$am$1@inn.qnx.com

Greetings,

Does anyone know how to save the time to the clock hardware in code? That
is, I’m looking for code that will do the equivalent of rtc -s hw.

]{ristoph

The source for rtc for QNX4 is available on QNX ftp site.
Maybe it’s in RTP CVS repository.

Sadly, it is not.

Please can anyone help me out.

]{ristoph

“]{ristoph” <news2@kristoph.net> wrote in message
news:9einsj$bvd$1@inn.qnx.com

The source for rtc for QNX4 is available on QNX ftp site.

ftp://ftp.qnx.com/usr/free/qnx4/os/utils/rtc/rtc.tgz

It’s for QNX4, but you shouldn’t have any problem extracting
the portion that writes into the hardware.

Maybe it’s in RTP CVS repository.

Sadly, it is not.

Please can anyone help me out.

]{ristoph
\

“Mario Charest” <mcharest@antispam_zinformatic.com> wrote in message
news:9eiukf$g0e$1@inn.qnx.com

“]{ristoph” <> news2@kristoph.net> > wrote in message
news:9einsj$bvd$> 1@inn.qnx.com> …
The source for rtc for QNX4 is available on QNX ftp site.

ftp://ftp.qnx.com/usr/free/qnx4/os/utils/rtc/rtc.tgz

Woops that’s the binary, source is at:

ftp://ftp.qnx.com/usr/free/qnx4/os/samples/misc/rtc_src.tgz

It’s for QNX4, but you shouldn’t have any problem extracting
the portion that writes into the hardware.

Maybe it’s in RTP CVS repository.

Sadly, it is not.

Please can anyone help me out.

]{ristoph


\

Hi,

There is a knowledge base entry that discusses this issue for QNX 4
which should work for QNX 6 as well. The address is
http://qdn.qnx.com/support/bok/solution.qnx?9667

Regards,

Barry


]{ristoph <news2@kristoph.net> wrote:

The source for rtc for QNX4 is available on QNX ftp site.
Maybe it’s in RTP CVS repository.

Sadly, it is not.

Please can anyone help me out.

]{ristoph

“Operating System for Tech Supp” <os@qnx.com> wrote in message
news:9ej1hs$91u$1@nntp.qnx.com

Hi,

There is a knowledge base entry that discusses this issue for QNX 4
which should work for QNX 6 as well. The address is
http://qdn.qnx.com/support/bok/solution.qnx?9667

This is what Christoph doesn’t want to do, as mention in his first post :wink:

Regards,

Barry


]{ristoph <> news2@kristoph.net> > wrote:
The source for rtc for QNX4 is available on QNX ftp site.
Maybe it’s in RTP CVS repository.

Sadly, it is not.

Please can anyone help me out.

]{ristoph
\