From owner-freebsd-threads@FreeBSD.ORG Mon May 24 13:38:01 2010 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37FD0106564A for ; Mon, 24 May 2010 13:38:01 +0000 (UTC) (envelope-from chris@cvine.freeserve.co.uk) Received: from smtp6.freeserve.com (smtp5.freeserve.com [193.252.22.151]) by mx1.freebsd.org (Postfix) with ESMTP id EBBB28FC12 for ; Mon, 24 May 2010 13:38:00 +0000 (UTC) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3513.me.freeserve.com (SMTP Server) with ESMTP id 57E5E700074B for ; Mon, 24 May 2010 15:37:59 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3513.me.freeserve.com (SMTP Server) with ESMTP id 4B3227000752 for ; Mon, 24 May 2010 15:37:59 +0200 (CEST) Received: from boulder.homenet (unknown [91.106.62.39]) by mwinf3513.me.freeserve.com (SMTP Server) with ESMTP id 1BF37700074B for ; Mon, 24 May 2010 15:37:59 +0200 (CEST) X-ME-UUID: 20100524133759114.1BF37700074B@mwinf3513.me.freeserve.com Received: from boulder.homenet (IDENT:1000@localhost [127.0.0.1]) by boulder.homenet (8.14.3/8.14.3) with ESMTP id o4ODbxHW016472 for ; Mon, 24 May 2010 14:38:00 +0100 Date: Mon, 24 May 2010 14:37:59 +0100 From: Chris Vine To: freebsd-threads@freebsd.org Message-ID: <20100524143759.28f8c9b5@boulder.homenet> In-Reply-To: <20100524140513.6475cb2c@boulder.homenet> References: <20100524140513.6475cb2c@boulder.homenet> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Monotonic clocks X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2010 13:38:01 -0000 On Mon, 24 May 2010 14:05:13 +0100 Chris Vine wrote: > I am the upstream maintainer of efax-gtk and I am told recent versions > of the program will not compile on the FreeBSD port of debian, because > FreeBSD does not appear to provide pthread_condattr_setclock() to set > a monotonic clock on condition variables. > > The program configuration script calls up sysconf() to determine > whether the POSIX advanced realtime option (_SC_MONOTONIC_CLOCK) is > provided, and FreeBSD's sysconf() indicates that it is. Is anything > else needed to enable monotonic clocks on BSD, or is sysconf() > incorrectly advertising the implementation of monotonic clocks in > BSD's libc? Ah, on looking up the SUS it looks as if I have to check _SC_CLOCK_SELECTION as well (although it appears rather pointless to have a monotonic clock if you can't actually select it). Chris