tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kernel v. userland #includes for standard types

On Sat, Jun 04, 2011 at 01:09:19PM -0500, David Young wrote:
> Is there a good reason that we are not using <stdbool.h> and <stdint.h>
> in the kernel, instead of <sys/stdint.h> and <sys/types.h>?  It seems
> to me that we could cut simplify by using the same headers for the same
> definitions everywhere.

The kernel is a standalone environment as defined by the C standard. As
such there is little reason to expect stdbool.h and stdint.h to provide
the "normal" behavior. Compare malloc(3) and malloc(9)...


Home | Main Index | Thread Index | Old Index