Re: [ANNOUNCE] linux-libc-headers 2.6.3.0

From: Chris Friesen
Date: Mon Mar 01 2004 - 09:46:22 EST


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@xxxxxxxxxxxxxxxxxx

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