From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 29 08:12:10 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0F52D16F for ; Mon, 29 Oct 2012 08:12:10 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp2.one.com (csmtp2.one.com [91.198.169.22]) by mx1.freebsd.org (Postfix) with ESMTP id BB8B58FC08 for ; Mon, 29 Oct 2012 08:12:09 +0000 (UTC) Received: from [192.168.1.47] (unknown [176.222.238.90]) by csmtp2.one.com (Postfix) with ESMTPA id 12574307C419; Mon, 29 Oct 2012 08:12:02 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: opensolaris B_TRUE and B_FALSE From: Erik Cederstrand In-Reply-To: <1351466692.1123.346.camel@revolution.hippie.lan> Date: Mon, 29 Oct 2012 09:12:02 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <560EA79C-502B-418C-8BF1-A1BC28E05FD1@cederstrand.dk> <1351466692.1123.346.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1499) Cc: FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 08:12:10 -0000 Hello Ian, Den 29/10/2012 kl. 00.24 skrev Ian Lepore = : > Look further up in sys/cddl/compat/opensolaris/sys/types.h, they're = also > defined (as macros rather than enum) in the KERNEL case. They're also > defined (as enum) in sys/gnu/fs/xfs/xfs_types.h. (Once again, = SlickEdit > pays for itself by answering with one right-click a question that = would > have been a pain to use grep for.) The code in the report is /sbin/zpool, so I assume it's not KERNEL code. = As I wrote in my email, I can see B_TRUE and B_FALSE are defined as = boolean_t in sys/cddl/compat/opensolaris/sys/types.h But I can't see = that boolean_t is defined anywhere in the included headers as long as = KERNEL is not defined. As far as I can see, sys/gnu/fs/xfs/xfs_types.h = isn't referenced directly or indirectly in any of the headers included = in zpool_main.c. Erik=