DragonFly BSD
DragonFly users List (threaded) for 2006-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Adding _SC_MONOTONIC_CLOCK?


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 4 Sep 2006 15:48:18 -0700 (PDT)

:
:The latest glib2 from pkgsrc fails because we don't define
:_SC_MONOTONIC_CLOCK in unistd.h:
:
:#if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK >= 0
:      if (sysconf (_SC_MONOTONIC_CLOCK) >= 0)
:        posix_clock = CLOCK_MONOTONIC;
:
:According to the NetBSD sysconf manpage, _SC_MONOTONIC_CLOCK
:should return the POSIX version number of the Monotonic Clock
:option, or -1 if it's not available.
:
:Adding that definition seems pretty harmless, right?  Is there
:any reason to avoid adding it?

    It seems reasonable to me.  Our clock_*() functions do
    support CLOCK_MONOTONIC, and it's even actually monotonic!

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



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