[PATCH] Define a fixed elementary logic type

From: Georgette Boole
Date: Fri Apr 01 2011 - 11:44:28 EST


Unfortunately, my father's elementary logic type is incomplete. This patch
introduces the correct type with a plan to transition the kernel over to
it and to deprecate the "bool" type in the v3.0 timeframe.

Signed-off-by: Georgette Boole <georgette.boole@xxxxxxxxxxxxxx>
---
diff --git a/include/linux/types.h b/include/linux/types.h
index 176da8c..80d9b0f 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -36,6 +36,14 @@ typedef __kernel_mqd_t mqd_t;

typedef _Bool bool;

+enum _Wool {
+ w_false = 0,
+ w_true = 1,
+ w_maybe = 1 / 2,
+};
+
+typedef enum _Wool wool;
+
typedef __kernel_uid32_t uid_t;
typedef __kernel_gid32_t gid_t;
typedef __kernel_uid16_t uid16_t;
--
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/