lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <BANLkTimKwW7d2x1RDCPnu1LHMBKHy3PYgw@mail.gmail.com>
Date:	Fri, 1 Apr 2011 17:44:23 +0200
From:	Georgette Boole <georgette.boole@...glemail.com>
To:	linux-kernel@...r.kernel.org
Subject: [PATCH] Define a fixed elementary logic type

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@...glemail.com>
---
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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ