This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Any idea what this is for? (fixincludes for svr4, _KERNEL)
- From: Bruce Korb <bkorb at veritas dot com>
- To: Nathanael Nerode <neroden at twcny dot rr dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 27 Jul 2003 19:10:38 -0700
- Subject: Re: Any idea what this is for? (fixincludes for svr4, _KERNEL)
- Organization: Home
- References: <20030726043251.GA995@twcny.rr.com>
Nathanael Nerode wrote:
>
> The following code is in fixinc.svr4. It wraps entire files with
> #if _KERNEL. What I can't figure out is *WHY*. Is this just obsolete
> cruft, or is there a known reason for it?
Likely, someone analyzed this and determined that only kernel drivers
should be using the stuff and that it impinged on user land stuff.
Kernel drivers should not include stuff from /usr/include; only
stuff from /usr/include/sys. The SVr4/ESMP release cleaned up
lots of this stuff, as I recall. I believe these can utilize a
variation on ``c-fix = wrap''.
> # Conditionalize all of <fs/rfs/rf_cache.h> on _KERNEL being defined.