Hal Murray wrote:
>  run a program to tell the kernel leap-tonight

$ /sbin/adjtimex -S 17   # STA_PLL|STA_INS

>  run a program to tell the kernel no-leap

$ /sbin/adjtimex -S 65   # STA_PLL|STA_UNSYNC

This, together with some clock stepping so that I didn't need to wait
for actual midnight, was how I tested my clock display program for
leap seconds.  The STA_ constants come from /usr/include/sys/timex.h.

-zefram
_______________________________________________
LEAPSECS mailing list
[email protected]
http://six.pairlist.net/mailman/listinfo/leapsecs

Reply via email to