News for hackers. Stuff that matters.
Re:Typedefs & Linus by willv on Thursday October 14, 2010 @04:12AM (#1790213)
regards something specific Linus said:

"We should also have some format for printing out "u32/u64" etc, but that's another issue and has the problem that gcc won't understand them, so adding new formats is _hard_ from a maintenance standpoint. "

do they not use inttypes.h for that?

http://linux.die.net/man/3/priu32

Re:Typedefs & Linus by mgedmin on Thursday October 14, 2010 @07:10AM (#1790502)
I understood that to refer to printf-style format specifiers that printk() uses. GCC can do type-checking for those: http://www.ohse.de/uwe/articles/gcc-attributes.html#func-for... -- but not if you invent your own % codes.
Re:Typedefs & Linus by mfukar on Thursday October 14, 2010 @05:31AM (#1790356)
Linux is the implementation; if anything, it should provide a inttypes.h.
Re:Typedefs & Linus by Locke1689 on Thursday October 14, 2010 @07:06AM (#1790492)
Well, no. inttypes.h is defined in the ANSI specification and is provided by glibc. If it were unistd.h you would be right.
Re:Typedefs & Linus by cdavid on Thursday October 14, 2010 @07:38AM (#1790544)
I doubt the kernel can use anything that is defined in the glibc...
Re:Typedefs & Linus by adbge on Thursday October 14, 2010 @09:45AM (#1790831)
You're correct. The kernel does not include a C standard library.
Re:Typedefs & Linus by Locke1689 on Thursday October 14, 2010 @03:27PM (#1792233)
Agreed... what's your point?