Re: [PATCH] Warn userspace about including an empty linux/tty.h.

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

 



On Thu, 19 Jul 2007, Andrew Morton wrote:

> On Thu, 19 Jul 2007 07:23:46 -0400 (EDT)
> "Robert P. J. Day" <[email protected]> wrote:
>
> >
> > Signed-off-by: Robert P. J. Day <[email protected]>
> >
> > ---
> >
> >   what subsystem would something like this belong to?
> >
> >
> > diff --git a/include/linux/tty.h b/include/linux/tty.h
> > index 691a174..fd67da8 100644
> > --- a/include/linux/tty.h
> > +++ b/include/linux/tty.h
> > @@ -5,6 +5,10 @@
> >   * 'tty.h' defines some structures used by tty_io.c and some defines.
> >   */
> >
> > +#ifndef __KERNEL__
> > +#warning "Please don't include this file from userspace, it's empty."
> > +#endif
> > +
>
> this seems pointless?

it was one of the suggestions that was made.  the other was just to
stop exporting tty.h to userspace entirely, but that might break
something in userspace.  i really had no strong opinion either way.

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux