| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
There is no reason why <stdbool.h> needs an include guard. It is already
protected by __bool_true_false_are_defined.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
typedef bool. Due to macro expansion it seemed better to use a
typedef for kernel consumers (specifically ofed won't compile
without more changes if a define is used).
- <stdbool.h> should also not re-define bool/true/false if they are
defined by <sys/types.h>. It would probably be a programming error
to define _KERNEL for user-space code, but downstream consumers
like Isilon have already been including <stdbool.h> in kernel
sources, and this protects that usage.
- sizeof(_Bool) is not necessarily the same as sizeof(int), so kernel
modules should be rebuild with this change. Bump __FreeBSD_version.
MFC after: 2 weeks
Sponsored by: Isilon Systems, LLC
|
|
|
|
|
|
|
|
| |
C source so don't declare one when using the GCC-compatibility (defaulting
to GCC 2.95.0) of ICC.
Submitted by: netchild
MFC after: 1 week
|
|
|
|
|
|
| |
define it.
Suggested by: tjr
|
|
|
|
| |
Submitted by: Ed Hall <edhall@yahoo-inc.com>
|
|
|
|
| |
Submitted by: bde, long ago
|
|
|
|
|
|
|
|
| |
- whitespace: incorrect usage of tab or space
- removal of comments which served either no purpose or were
misleading
Submitted by: bde [a while ago]
|
|
|
|
|
|
| |
PR: 22936
Submitted by: Donald J. Maddox <Donald.J.Maddox@cae88-102-101.sc.rr.com>
bde
|
|
It defines the boolean values.
|