From owner-freebsd-arch@FreeBSD.ORG Tue Nov 29 18:09:28 2011 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BC291065672 for ; Tue, 29 Nov 2011 18:09:28 +0000 (UTC) (envelope-from mdf356@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id D24588FC0A for ; Tue, 29 Nov 2011 18:09:27 +0000 (UTC) Received: by qyg36 with SMTP id 36so5991029qyg.13 for ; Tue, 29 Nov 2011 10:09:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=FiTRPUOcn8ewWLReftHws0Bo11GLcN02A9ZQybgjPak=; b=lybh6NL4bO/588yeHCr9z43iW4SUtcDXr3eyw2Pf4RwW+KRvoE7vXLLRrAQP9aFWth MyOuIz7TnSGcf0Wn+WkfqmLqlHCtth96eG9dTeV74NozWeUfl57qDmUqajoBtiquI3u2 ceSmyPGNwiShk1ht87c64WnG+l4N8OK9kGdxg= MIME-Version: 1.0 Received: by 10.68.30.193 with SMTP id u1mr64601338pbh.93.1322590166986; Tue, 29 Nov 2011 10:09:26 -0800 (PST) Sender: mdf356@gmail.com Received: by 10.68.56.97 with HTTP; Tue, 29 Nov 2011 10:09:26 -0800 (PST) Date: Tue, 29 Nov 2011 10:09:26 -0800 X-Google-Sender-Auth: 4fM7Zh9CJLuFbx2-1d58_jmDOUY Message-ID: From: mdf@FreeBSD.org To: FreeBSD Arch Content-Type: text/plain; charset=ISO-8859-1 Cc: Zack Kirsch Subject: Use of bool / stdbool.h in kernel X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2011 18:09:28 -0000 At $WORK we have a hack in one of the *.mk files to allow including stdbool.h in the kernel and we use it extensively. This is not allowed by style(9), as far as I can tell, because the file is in include/stdbool.h and those files are not allowed to be included in kernel sources. What I want to check on is, would it be acceptable to move stdbool.h from include/stdbool.h to sys/sys/stdbool.h (i.e. like errno.h) and then include it in the kernel as ? That is, is the objection / non-use because of where the file is located in the repository, or is there some other reason? Note that the pre-C99 boolean_t and TRUE/FALSE are spread over the kernel, mostly in sys/vm where I assume they come from old AT&T sources. Thanks, matthew