From owner-freebsd-x11@FreeBSD.ORG Fri Feb 29 05:28:59 2008 Return-Path: Delivered-To: freebsd-x11@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64F05106566B; Fri, 29 Feb 2008 05:28:59 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (ns2.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id 25B258FC22; Fri, 29 Feb 2008 05:28:59 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m1T5SlBk017754; Thu, 28 Feb 2008 22:28:47 -0700 (MST) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m1T5SbXW004957; Thu, 28 Feb 2008 22:28:37 -0700 (MST) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m1T5SbBq004954; Thu, 28 Feb 2008 22:28:37 -0700 (MST) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18375.38917.136960.524370@gromit.timing.com> Date: Thu, 28 Feb 2008 22:28:37 -0700 From: John E Hein To: Jung-uk Kim In-Reply-To: <200802281714.43057.jkim@FreeBSD.org> References: <47C320DB.70004@delphij.net> <200802281607.30178.jkim@FreeBSD.org> <18375.10353.816420.456552@gromit.timing.com> <200802281714.43057.jkim@FreeBSD.org> X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: Thomas Mueller , freebsd-x11@FreeBSD.org, 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: Fri, 29 Feb 2008 05:28:59 -0000 Jung-uk Kim wrote at 17:14 -0500 on Feb 28, 2008: > On Thursday 28 February 2008 04:32 pm, John E Hein wrote: > > 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.' I guess it would be neighborly for someone to submit a PR to the linux folks to fix their time.h, too ;)