Kernel headers and user space
Posted Dec 4, 2004 0:41 UTC (Sat) by
giraffedata (subscriber, #1954)
Parent article:
Kernel headers and user space
I hate ifdef __KERNEL__. But I hate even more the proposition that a user space program should not include a kernel header file. The C library is itself a user space program, so the rule that a user space program has to go through the C library obviously isn't logical. And the GNU C library is an optional tool, not an official part of the kernel interface (if it were the latter, I would expect to see it packaged with the kernel).
It's common practice in C programming to declare as much of an interface as possible in a header file and have the code at both ends of the interface use the same file to ensure that they agree on the interface. That Linux has never had an identifiable set of interface header files to declare its system call interface seems to me to be a major engineering weakness.
I thought Howell's proposal was a natural.
(
Log in to post comments)