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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	22 Jul 2006 11:55:02 +0200
From:	larsbj@...lik.net (Lars Gullik Bjønnes)
To:	linux-kernel@...r.kernel.org
Subject:  Re: [RFC][PATCH] A generic boolean (version 3)

ricknu-0@...dent.ltu.se writes:

| --- a/include/asm-i386/types.h
| +++ b/include/asm-i386/types.h
| @@ -1,6 +1,13 @@
|  #ifndef _I386_TYPES_H
|  #define _I386_TYPES_H
|  
| +#if __GNUC__ >= 3
| +typedef _Bool bool;
| +#else
| +#warning You compiler doesn't seem to support boolean types, will set 'bool' as
| an 'unsigned int'
| +typedef unsigned int bool;
| +#endif
| +

What does C99 say about sizeof(_Bool)?

At least with gcc 4 it is 1. Can that pose a problem? gcc < 3 giving a
different size for bool?

-- 
	Lgb

-
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