lkml.org 
[lkml]   [2004]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [ANNOUNCE] linux-libc-headers 2.6.3.0
Måns Rullgård wrote:

> Excuse my ignorance, but why can't the headers from the kernel still
> be used. They seem to be working fine here.

For current kernels, the "official" method is to have cleaned up copies
of the kernel headers shipped with glibc and placed in
/usr/include/linux and /usr/include/asm. The "real" headers will often
work, but not always,

To complicate things, if you add new stuff to the kernel (new ioctl
commands, etc.) then your app needs to either link against the "real"
headers, or else duplicate the definitions.

Its kind of a mess.

In an ideal world there would be clean "userspace" headers shipped with
the kernel, and the kernel would then use those headers plus the
kernel-only stuff.

Chris



--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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