Re: kernel header separation

From: Erik Andersen
Date: Fri Sep 05 2003 - 16:18:03 EST


On Fri Sep 05, 2003 at 03:41:54PM +0100, Matthew Wilcox wrote:
> On Tue, Sep 02, 2003 at 07:49:09PM -0600, Erik Andersen wrote:
> > Header files intended for use by users should probably drop
> > linux/types.h just include <stdint.h>,,, Then convert the
> > types over to ISO C99 types.
>
> stdint.h is a userspace header. I suppose we could clone it for the
> kernel, but I don't see any need to.
>
> > s/__u8/uint8_t/g
> > s/__u16/uint16_t/g
> > s/__u32/uint32_t/g
> > s/__u64/uint64_t/g
>
> i think all these _t types are ugly ;-(

They may be ugly, but they are standardized and have very
precise meanings defined by ISO C99, which is a very good
thing for code interoperability...

-Erik

--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
-
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/