From owner-freebsd-standards@FreeBSD.ORG Mon Nov 8 05:31:37 2010 Return-Path: Delivered-To: standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D2A51065679 for ; Mon, 8 Nov 2010 05:31:37 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id C97458FC0C for ; Mon, 8 Nov 2010 05:31:36 +0000 (UTC) Received: by wyb34 with SMTP id 34so3049016wyb.13 for ; Sun, 07 Nov 2010 21:31:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=Mi4XOokHsNWcm0f7/jWIGObDYStv0UTHlZRvWNJueq0=; b=QZ81XgF8ZcScMZHQ9Tyrs2+tgZsduSjoxzTfI2t7Rt78T8yOq2ubXOYpZfydxA5Bom SPbqx5uS2sj/ZUGSVWokR5jikoD7KivNj7TFAXkrQLQms7EAl51/2b5ldFiWG7RjtXJx pmQp3C7AmuFWi3NoVSRQ5QacPMA5o82qd4IT8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=Q1u2JyZw2IZzNZe2nhCV23LvCH+wRDgVhOQo0RTWsIhLCcDeyjmMCEOwT1xr2X2J9j FScUcnXXB9WyAAcJ7+AjGUiYwboyhlA0j8rGNr3WcBvHlehibMyTDaGMQjw1UH3v9I3S yHnoPoOytN1eHHYAe2pSMhmmLSCn+xYgG4Apw= MIME-Version: 1.0 Received: by 10.216.7.210 with SMTP id 60mr3861699wep.30.1289192705094; Sun, 07 Nov 2010 21:05:05 -0800 (PST) Sender: yanegomi@gmail.com Received: by 10.216.198.27 with HTTP; Sun, 7 Nov 2010 21:05:05 -0800 (PST) Date: Sun, 7 Nov 2010 21:05:05 -0800 X-Google-Sender-Auth: xLOyDj-oQ5ONB1LpnjWxylC-6Dk Message-ID: From: Garrett Cooper To: standards@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Question about non-__BSD_VISIBLE guarded CLOCK_* constants X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2010 05:31:37 -0000 None of the following constants in time.h are guarded by __BSD_VISIBLE, __FreeBSD__, etc, even though other sections of the file are blocked off that way (and the comments suggest that they're FreeBSD-specific). I was wondering why that's the case... #define CLOCK_UPTIME 5 /* FreeBSD-specific. */ #define CLOCK_UPTIME_PRECISE 7 /* FreeBSD-specific. */ #define CLOCK_UPTIME_FAST 8 /* FreeBSD-specific. */ #define CLOCK_REALTIME_PRECISE 9 /* FreeBSD-specific. */ #define CLOCK_REALTIME_FAST 10 /* FreeBSD-specific. */ #define CLOCK_MONOTONIC_PRECISE 11 /* FreeBSD-specific. */ #define CLOCK_MONOTONIC_FAST 12 /* FreeBSD-specific. */ #define CLOCK_SECOND 13 /* FreeBSD-specific. */ Also, they're blocked off by #if !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112 , which doesn't seem to make sense, given that it's an "advanced realtime" feature, according to POSIX 2008. Thanks! -Garrett