Messages in this thread | | | Date | Mon, 30 Nov 2009 11:40:22 -0600 | From | "Chris Friesen" <> | Subject | Re: using kernel headers in libc headers |
| |
On 11/30/2009 11:01 AM, H. Peter Anvin wrote:
> A better way is to factor out subsets; if <linux/sched.h> has too many > things, we can break out the POSIX parts into <linux/sched_posix.h> or > (certainly better if we have more than one of these) > <linux/sched/posix.h> which can also be included by <linux/sched.h>. > > glibc can then choose to include or not include <linux/sched/posix.h> > depending on its configuration. The configuration macros remain a glibc > internal detail.
Yes, absolutely. Personally I find it much easier to open a separate header file than to read code that is littered with #ifdefs.
Chris
| |