Why 'linux/fs.h' cannot be included? I *can*...
Hello Eric :)
Quoted 4 lines
Quoted 2 lines
This header can be included or not? It works for me, with headers
from 2.4.17, so, is it just for backwards compatibility?Policy. It is for forwards compatibility. The general policy on kernel headers is that if it breaks you get to keep the pieces.
That is: I can include it if I just want the definition of a few
ioctl's, but if in a future version all that is changed or even dissapears is completely my problem.
Given the number of user-space apps that needs ioctl definitions
and things like those (that are supposed not to change easily), those definitions should go in user-includable headers... IMHO.
Fortunately, we have some of them in libc headers now.
Thanks,
Ra�l
Quoted 11 lines · DervishD
Hello Eric :)
Quoted 4 lines
Quoted 2 lines
This header can be included or not? It works for me, with headers
from 2.4.17, so, is it just for backwards compatibility?Policy. It is for forwards compatibility. The general policy on kernel headers is that if it breaks you get to keep the pieces.
That is: I can include it if I just want the definition of a few
ioctl's, but if in a future version all that is changed or even dissapears is completely my problem.
Quoted 5 lines
Given the number of user-space apps that needs ioctl definitions
and things like those (that are supposed not to change easily), those definitions should go in user-includable headers... IMHO.Fortunately, we have some of them in libc headers now.
The policy is, never ever include kernel headers from userspace.
Your libc should provide a "sanitized" version of the kernel headers, which is completely separate from any kernel sources.
dietlibc does this... it's completely independent of kernel header changes.
RedHat will be doing this with glibc in the future.
So, any problems should be reported to your libc maintainer :)
Jeff
Quoted 6 lines
Your libc should provide a "sanitized" version of the kernel headers, which is completely separate from any kernel sources.
dietlibc does this... it's completely independent of kernel header changes.
RedHat will be doing this with glibc in the future.
We already do. Red Hat shipped since about 7.0 has a seperate set of kernel based headers that glibc uses for its own internal use, and the set in the kernel sources.
Alan
Quoted 10 lines · Alan Cox
Quoted 6 lines
Your libc should provide a "sanitized" version of the kernel headers, which is completely separate from any kernel sources.
dietlibc does this... it's completely independent of kernel header changes.
RedHat will be doing this with glibc in the future.
We already do. Red Hat shipped since about 7.0 has a seperate set of kernel based headers that glibc uses for its own internal use, and the set in the kernel sources.
To clarify, Arjan said the headers were going to be further sanitized, and less just simple copies of selected kernel headers... <cheer>
That's what I wanted to say, but -ENOCAFFEINE :)
Jeff