Re: SPAM[RBL] Re: C99 types VS Linus types

From: Bernardo Innocenti (
Date: Sun Jul 06 2003 - 12:37:26 EST

On Sunday 06 July 2003 14:23, Philippe Elie wrote:

> alpha user space .h define uint64_t as unsigned long,
> include/asm-alpha/types.h defines it as unsigned long long.

 Why is that? Isn't uint64_t supposed to be _always_ a 64bit
unsigned integer? Either the kernel or the user space might
be doing the wrong thing...

 I've Cc'd the Alpha mantainer to make him aware of this

> Using a different definition (if it's possible) will be
> confusing. Using the same definition as user space means
> than code like:
> uint64 t u;
> printk("%lu", u);
> will not compile on alpha. This problem is solved in C99
> by using PRI_xxx format specifier macro, I'm not a great
> fan of this idea.

 This is ugly, but there is no way around it. No matter what
typedefs you're using, C99 or not, printf size specifiers are
always bound to plain C types, whose size varies from
platform to platform.

> surely vim allow to define your own set of type ?

 Yeah, but not if you're lazy ;-)

  // Bernardo Innocenti - Develer S.r.l., R&D dept.

Please don't send Word attachments -

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:27 EST