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

Metuki Sabhe sabhe.metuki@gmail.com
Sat Sep 29 10:35:00 GMT 2007


On 9/29/07, Mike Frysinger <vapier@gentoo.org> wrote:
> 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> ?
> >
> 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

Thank you for this. Can you please tell me which header file declare
these uint8_t types ?

Metuki

> -mike
>
>



More information about the Libc-alpha mailing list