Testing monotonic clock
Matthew Dillon
dillon at apollo.backplane.com
Wed Apr 2 09:47:42 PDT 2008
:I have a software piece which checks for existance of monotonic clock with
:following testpiece:
:
: if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
: return 0;
: else
: return 1;
:..
:
:It's obvious that someone has to include sys/time.h somewhere, but who and
:where? What's buggy - DragonFly or this test?
:
:--
:Hasso Tepper
I would say that DragonFly is wrong. The opengroup standards page
says that only <time.h> is needed.
-Matt
Matthew Dillon
<dillon at backplane.com>
More information about the Kernel
mailing list