[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disallow direct inclussion of <linux/*.h>

From: Jeroen Dekkers
Subject: Re: disallow direct inclussion of <linux/*.h>
Date: Sat, 4 Oct 2003 19:50:20 +0200
User-agent: Mutt/1.5.4i

On Sat, Oct 04, 2003 at 07:43:01PM +0200, Farid Hajji wrote:
> > > I think we should disallow direct inclusion of <linux/*.h> in Glibc, any
> > > comments?
> > There don't exist any <linux/*.h> headers in glibc, they come from
> > Linux.
> Perhaps glibc should provide its own <linux/*.h> wrappers which
> would spew out warnings, but still #include the real linux headers
> (I assume something from /usr/src/linux/include/*.h or whatever)
> anyway?

This is just too much of a burden for little gain. Everybody who uses
<linux/*> headers in general applications doesn't know what he is
doing. They will just #define USE_LINUX or whatever to get rid of the
warning/error. The real solution here is teaching people to do the
right thing, not putting silly things in glibc which don't solve the
problem at all.

Jeroen Dekkers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]