Messages in this thread Patch in this message |  | | Date | Thu, 27 Jul 2006 05:22:25 +0200 | | From | ricknu-0@student ... | | Subject | Re: [RFC][PATCH] A generic boolean (version 6) |
| |
Citerar Arnd Bergmann <arnd.bergmann@de.ibm.com>:
> 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
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |