Re: [RFC][PATCH] A generic boolean (version 6)

From: ricknu-0
Date: Wed Jul 26 2006 - 23:21:23 EST


Citerar Arnd Bergmann <arnd.bergmann@xxxxxxxxxx>:

> On Wednesday 26 July 2006 22:28, ricknu-0@xxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/