This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]