Re: [ntp:questions] C api to ntpd

2013-12-07 Thread Patrik Arlos
On Friday, December 6, 2013 11:53:02 PM UTC+1, David Woolley wrote: On 06/12/13 12:13, Patrik Arlos wrote: [ Very long lines! ] I have a C program that needs to evaluate the system (where it runs) clock synchronization status on a regular interval(every ~60s). On the same system there

Re: [ntp:questions] C api to ntpd

2013-12-07 Thread David Woolley
On 07/12/13 11:54, Patrik Arlos wrote: On Friday, December 6, 2013 11:53:02 PM UTC+1, David Woolley wrote: The program just needs to keep track/detect when the synchronization is lost. Its used to correlate measurements at multiple locations, and the measurements include time. So, as long

Re: [ntp:questions] C api to ntpd

2013-12-07 Thread Harlan Stenn
Patrik Arlos writes: Is there a C api for ntpq? or is the only solution to read the ntpq code, and extract the needed 'bits'? See libntpq. If somebody was to contribute a man page for that I'd add it to the distribution. H ___ questions mailing

[ntp:questions] C api to ntpd

2013-12-06 Thread Patrik Arlos
Hello, I have a C program that needs to evaluate the system (where it runs) clock synchronization status on a regular interval(every ~60s). On the same system there is a ntpd running, that synchronized to other ntp servers. I can write a simple bash script that does this (saving to an

Re: [ntp:questions] C api to ntpd

2013-12-06 Thread David Woolley
On 06/12/13 12:13, Patrik Arlos wrote: [ Very long lines! ] I have a C program that needs to evaluate the system (where it runs) clock synchronization status on a regular interval(every ~60s). On the same system there is a ntpd running, that synchronized to other ntp servers. A system goes