lkml.org 
[lkml]   [1996]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: linux headers and tcpdump programs
Note that /usr/include/linux is available to user-space programs, but
/usr/include/net does *not* point at /usr/src/linux/include/net.
Instead it comes from some other mysterious place.

Also note that that almost none of /usr/src/linux/include/net has
user-visible stuff (there's one bridging structure returned by an
ioctl), and it has lots of internal kernel declarations not protected
by __KERNEL__.

My conclusion is that /usr/src/linux/include/linux is the right
place for things visible from userland, and /usr/src/linux/include/net
is the right place for networking things NOT visible from userland.

I'm planning to clean up the headers in 2.1:

include guards on all files
proper nested #include on all files
document which directories in include/* are exported to user space
move internal kernel stuff from include/linux to new include/kernel
proper use of __KERNEL__ everywhere

Ideas and comments welcomed. Especially welcomed are one-liners from
experienced kernel hackers saying whether this will be useful or if I'm
just wasting my time.

Michael Chastain
mec@duracef.shout.net


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.030 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site