From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 29 20:25:23 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 38BC5F0A; Mon, 29 Oct 2012 20:25:23 +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 E79178FC08; Mon, 29 Oct 2012 20:25:22 +0000 (UTC) Received: from [192.168.1.47] (unknown [176.222.238.90]) by csmtp2.one.com (Postfix) with ESMTPA id AB3423083082; Mon, 29 Oct 2012 20:25:20 +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: <508E5AB4.7060209@FreeBSD.org> Date: Mon, 29 Oct 2012 21:25:22 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <197D04E2-E9CD-44A4-B08B-88F7A56E835D@cederstrand.dk> References: <560EA79C-502B-418C-8BF1-A1BC28E05FD1@cederstrand.dk> <1351466692.1123.346.camel@revolution.hippie.lan> <508E5AB4.7060209@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.1499) Cc: Ian Lepore , 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 20:25:23 -0000 Den 29/10/2012 kl. 11.30 skrev Dimitry Andric : > On 2012-10-29 09:12, Erik Cederstrand wrote: >>=20 >> 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. >=20 > In sys/cddl/compat/opensolaris/sys/types.h, there is: >=20 > typedef enum { B_FALSE, B_TRUE } boolean_t; >=20 > This line defines the boolean_t type. Maybe the type itself is never > used, but only the enum values. Sort of like a an anonymous enum in = C++. Ok, so I expected B_FALSE to be defined as 0 explicitly somewhere, = completely missing the point of enums. Embarrassing. Thanks for being = easy on me :-) Erik=