Re: just how "sanitized" are the sanitized headers?

From: Alexey Dobriyan
Date: Thu Nov 30 2006 - 03:26:36 EST


On 11/30/06, Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> wrote:
i noticed that, when i generate the sanitized headers with "make
headers_install", there are still a number of headers files that are
installed with variations on "#ifdef __KERNEL__".

i always thought the fundamental property of sanitized headers was
to be compatible with glibc

You were wrong.

and have no traces of "KERNEL" content
left.

That's correct.

so what's the purpose of leaving some header files with that
preprocessor content?

When you see __KERNEL__ in sanitized headers, it's either due to
a) unifdef bug, or
b) header being listed in header-y when it should be listed in unifdef-y
-
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/