Search Linux Wireless

Re: [PATCH] wireless.h: improve userland include-ability

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

 



On Wed, Jun 04, 2008 at 11:24:15AM -0400, Pavel Roskin wrote:
> On Wed, 2008-06-04 at 14:52 +0100, David Woodhouse wrote:

> > We've traditionally got away with saying 'caveat emptor' when userspace
> > includes kernel headers -- you _have_ to include the right
> > prerequisites, because the kernel doesn't do it for you.
> 
> That's true, and several programs do it already.  Changing the includes
> would require changes in those programs.  Besides, sys/types.h is still
> included, so it's a half-measure.  If we are going to break things,
> let's go all the way and disable sys/types.h for userspace, and possibly
> some structures that the userspace is not supposed to be using.  But I'm

...which is how it is in 2.6.25.  The change in 2.6.26 broke userland
apps that included both net/if.h and linux/wireless.h.  The intent
here was to correct that error while gaining the primary benefit of
not requiring separate inclusion of linux/types.h.

If commit 2218228392080f0ca2fc2974604e79f57b12c436 had never
occured, then this new patch would simply be similar to
commit c8942f1f0a7e2160ebf2e51ba89e50ee5895a1e7 and commit
a1a61a435b3cc157830b7d42b175151ae5eabdd3 (both of which are
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>), and it is very
similar to commit 80a9492a33dd7d852465625022d56ff76d62174d as well.

> afraid there is still a lot of stuff the userspace should know,
> including IFNAMESIZ.  Alternatively, let's sanitize other headers so
> that they can be mixed with libc headers with no consequences.

Patches welcome.

John
-- 
John W. Linville
linville@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux