From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751231AbWG0DXY (ORCPT ); Wed, 26 Jul 2006 23:23:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751260AbWG0DXY (ORCPT ); Wed, 26 Jul 2006 23:23:24 -0400 Received: from gepetto.dc.ltu.se ([130.240.42.40]:26596 "EHLO gepetto.dc.ltu.se") by vger.kernel.org with ESMTP id S1751231AbWG0DXX (ORCPT ); Wed, 26 Jul 2006 23:23:23 -0400 Message-ID: <1153970545.44c8317195470@portal.student.luth.se> Date: Thu, 27 Jul 2006 05:22:25 +0200 From: ricknu-0@student.ltu.se To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, Andrew Morton , Jeff Garzik , Alexey Dobriyan , Vadim Lobanov , Jan Engelhardt , Shorty Porty , Peter Williams , Michael Buesch , Pekka Enberg , Stefan Richter , larsbj@gullik.net, Paul Jackson Subject: Re: [RFC][PATCH] A generic boolean (version 6) References: <1153341500.44be983ca1407@portal.student.luth.se> <1153945705.44c7d069c5e18@portal.student.luth.se> <200607270448.03257.arnd.bergmann@de.ibm.com> In-Reply-To: <200607270448.03257.arnd.bergmann@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 130.240.42.170 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Citerar Arnd Bergmann : > On Wednesday 26 July 2006 22:28, ricknu-0@student.ltu.se wrote: > > Have not found any (real) reason letting the cpp know about false/true. As > I > > said in the last version, the only reason seem to be for the userspace. > Well, as > > there is no program of my knowlage that needs it, they were removed. > > > If we don't expect this to show up in the ABI (which I hope is true), then > the definition should probably be inside of #ifdef __KERNEL__. Right > now, it's inside of (!__KERNEL_STRICT_NAMES), which is not exactly the > same. Thanks What do you think about this?: diff --git a/include/linux/types.h b/include/linux/types.h index 3f23566..406d4ae 100644 --- a/include/linux/types.h +++ b/include/linux/types.h @@ -33,6 +33,8 @@ typedef __kernel_clockid_t clockid_t; typedef __kernel_mqd_t mqd_t; #ifdef __KERNEL__ +typedef _Bool bool; + typedef __kernel_uid32_t uid_t; typedef __kernel_gid32_t gid_t; typedef __kernel_uid16_t uid16_t; > Arnd <>< /Richard