Re: [RFC] Splitting out kernel<=>userspace ABI headers

From: Bill Davidsen
Date: Wed Sep 14 2005 - 08:40:52 EST


H. Peter Anvin wrote:
Followup to: <20050902235833.GA28238@xxxxxxxxxxxx>
By author: Erik Andersen <andersen@xxxxxxxxxxxx>
In newsgroup: linux.dev.kernel

<uClibc maintainer hat on>
That would be wonderful.
</off>

It would be especially nice if everything targeting user space
were to use only all the nice standard ISO C99 types as defined
in include/stdint.h such as uint32_t and friends...



Absolutely not. This would be a POSIX namespace violation; they
*must* use double-underscore types.

Could you explain why you think it would be a violation to use POSIX types instead of defining our own? That's what the types are for, to avoid having everyone define some slightly conflicting types.

The kernel predates C99, sort of, and it would be a massive but valuable task to figure out where a type is really, for instance, 32 bits rather than "size of default int" in length, etc, and use POSIX types where they are correct. Fewer things to maintain, and would make it clear when something is 32 bits by default and when it really must be 32 bits.

--
-bill davidsen (davidsen@xxxxxxx)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/