Alan Corey <[email protected]> wrote:

> Can adjfreq() adjust the frequency of the real time clock that runs when 
> the computer is turned off or is it just the clock within the operating 
> system?

The latter.

> I just ported chu by William Rossi and I'm wondering if adjfreq might be a 
> workaround for not having Linux's Timex.

If all you need to do is set the frequency, sure.
See the FreeBSD port for openntpd which does the reverse and replaces
adjfreq() with ntp_adjtime().

> There's a writeup at http://ab1jx.webs.com/toys/chu/index.html

adjtimex() isn't really Linux-specific, although maybe the name is.
It offers access to the kernel PLL for the NTP reference implementation.
The corresponding code was removed from OpenBSD over a license
dispute.

The FreeBSD port is bizarre.  It should just substitute ntp_adjtime()
for adjtimex().

There is nothing wrong with assuming that OSS /dev/dsp defaults to
8 kHz, U8 (not mu-law), mono.  It's documented that way.

-- 
Christian "naddy" Weisgerber                          [email protected]

Reply via email to