From owner-freebsd-x11@FreeBSD.ORG Thu Feb 28 22:14:52 2008 Return-Path: Delivered-To: freebsd-x11@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 0C0981065672; Thu, 28 Feb 2008 22:14:52 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-x11@FreeBSD.org Date: Thu, 28 Feb 2008 17:14:35 -0500 User-Agent: KMail/1.6.2 References: <47C320DB.70004@delphij.net> <200802281607.30178.jkim@FreeBSD.org> <18375.10353.816420.456552@gromit.timing.com> In-Reply-To: <18375.10353.816420.456552@gromit.timing.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200802281714.43057.jkim@FreeBSD.org> Cc: Thomas Mueller , delphij@delphij.net Subject: Re: Xorg vs gettimeofday() and clock_gettime() X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2008 22:14:52 -0000 On Thursday 28 February 2008 04:32 pm, John E Hein wrote: > 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. I found it from SUSv3: http://www.opengroup.org/onlinepubs/009695399/basedefs/time.h.html 'The manifest constant CLOCK_MONOTONIC and the clock_nanosleep() function are added for alignment with IEEE Std 1003.1j-2000.' Jung-uk Kim