On Wed, 2008-09-03 at 13:45 -0400, Bob Keyes wrote:
> On Wed, 3 Sep 2008, Sven-Ola Tuecke wrote:
[...]
> > mmh. CLOCK_MONOTONIC is not supported by uclibc AFAIK.
> >
> 
> Are you sure? See: 
> http://www.nabble.com/sysconf(_SC_MONOTONIC_CLOCK)--problem-td17807017.html

If I read
http://www.uclibc.org/cgi-bin/viewcvs.cgi/trunk/uClibc/libc/sysdeps/linux/common/clock_gettime.c?rev=16821&view=markup
correct, it depends if the Linux kernel (which the uClibc is compiled
against) has a clock_gettime() syscall (and then the syscall is used) or
not (and then just CLOCK_REALTIME is simulated via gettimeofday()).

> It appears to have been added.
> 
> Also, I did a grep on the source tree and 'monotonic' does appear in some 
> header files. I don't claim to be knowledgable about clock programming, 
> but this may indicate that checking uclibc support is worthwhile.

And current the current Linux kernel has it (in kernel/posix-timers.c).
But I couldn't find out when it was added.
Hmm, what kernel versions actually interesting?

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services




