<linux/types.h> or <asm/types.h> ?
Mike Frysinger
vapier@gentoo.org
Sat Sep 29 11:01:00 GMT 2007
On Saturday 29 September 2007, Metuki Sabhe wrote:
> 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 ?
a grep of /usr/include/ or reading the POSIX standard would tell you the
answer: stdint.h
-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/00a6699a/attachment.sig>
More information about the Libc-alpha
mailing list