cvs commit: src/lib/libc/sys clock_gettime.2

Matthew Dillon dillon at apollo.backplane.com
Mon Apr 30 18:54:44 PDT 2007


:Hasso Tepper wrote:
:> Although defined in sys/time.h we don't have CLOCK_VIRTUAL and
:> CLOCK_PROF implemented yet. But we have CLOCK_MONOTONIC.
:
:Actually we should at least comment out CLOCK_VIRTUAL and CLOCK_PROF
:from sys/time.h as well, no? It has potential to cause only problems
:for 3rd party software - define exists (configure check succeeds),
:but feature isn't really implemented.
:
:
:-- 
:Hasso

    I don't remember if I tried doing that before or not.  My presumption
    is that not having those defines can cause programs to also believe
    that CLOCK_MONOTONIC doesn't exist.  It might be easier to just allow
    the system call to return an error and hope the program does the right
    thing.

					-Matt
					Matthew Dillon 
					<dillon at backplane.com>





More information about the Commits mailing list