DragonFly kernel List (threaded) for 2008-04
DragonFly BSD
DragonFly kernel List (threaded) for 2008-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Testing monotonic clock


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 2 Apr 2008 09:45:09 -0700 (PDT)

: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@backplane.com>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]