Xorg vs gettimeofday() and clock_gettime()

John E Hein jhein at timing.com
Thu Feb 28 21:48:53 UTC 2008


Jung-uk Kim wrote at 16:07 -0500 on Feb 28, 2008:
 > So this test was introduced in the following commit:
 > 
 > http://lists.freedesktop.org/archives/xorg-commit/2006-November/009390.html
 > 
 > Google found me this:
 > 
 > http://www.opengroup.org/austin/mailarchives/ag-review/msg00489.html
 > 
 > 'The recently-approved 1003.1j-2000 adds CLOCK_MONOTONIC to the list.'
 > 
 > I think 1003.1b-1993 added clock_gettime(2) and configure.ac tests 
 > bogus spec.

I suspect the autoconf test was probably written against the linux time.h which
specifies _POSIX_C_SOURCE 199309 for all the CLOCK_* constants.

Your quote seems to indicate that is wrong (which makes sense to me
since I don't recall the CLOCK_* values around back to 1993).  But I
have not done the work to dig into the spec.

If someone verifies that to be the case, please submit a PR to xorg
to fix their autoconf check.


More information about the freebsd-x11 mailing list