Messages in this thread | | | Date | Mon, 19 May 2003 10:41:59 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: Recent changes to sysctl.h breaks glibc |
| |
On Mon, 19 May 2003, Sam Ravnborg wrote: > > Within include/linux grep told me that "#ifdef __KERNEL__" was present > in 219 places. So a lot of header files are kept in a shape that allows > them to be included from user-land.
No. They're definitely _not_ "kept in shape".
A number of headers have historical baggage, mainly to support the old libc5 habits, and because removing the ifdef's is something that nobody has felt was worth the pain.
I think the only header file that should be considered truly exported is something like "asm/posix_types.h". For the others, we'll add __KERNEL__ protection on demand if the glibc guys can give good arguments that it helps them do the "copy-and-cleanup" phase.
Linus
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |