<linux/types.h> or <asm/types.h> ?

Mike Frysinger vapier@gentoo.org
Sat Sep 29 10:25:00 GMT 2007


On Saturday 29 September 2007, Metuki Sabhe wrote:
> I need to use types like __u8 in my Linux application
> (which should work on many architectures).
>
> Should I use <linux/types.h> or <asm/types.h> ?
>
> What's the difference actually ? why hold two files with
> similar declarations ?

this isnt a glibc question as neither of those headers are provided by glibc

a proper application should never use types like __u8 which means they should 
never pull in linux/types.h or asm/types.h

there's a reason *standard* types like uint8_t exist
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20070929/eeeff44c/attachment.sig>


More information about the Libc-alpha mailing list