cnhnln 发表于 2004-7-16 12:10:15

内核头文件/usr/include/linux(asm)

7.1.3 内核头文件

绝大多数“普通”程序不需要内核头文件,事实上如果直接引用它们会出错。这些程序应该引用那些编译glibc所用的头文件,它们位于Debian系统的/usr/include/linux和/usr/include/asm目录下。

故不要在/usr/src/linux目录中创建指向/usr/include/linux和/usr/include/asm的链接,一些过时的文档曾建议创建它们。

如果某些内核类应用程序需要特定的内核头文件,可修改Makefile(s),使其包含指向“特定内核头文件目录/include/linux”和“特定内核头文件目录/include/asm”的路径。

http://www.debian.org/doc/manuals/reference/ch-kernel.zh-cn.html

cnhnln 发表于 2006-8-8 19:03:24

http://www.linuxfromscratch.org/lfs/view/development/chapter05/linux-libc-headers.html
For years it has been common practice to use “raw” kernel headers (straight from a kernel tarball) in /usr/include, but over the last few years, the kernel developers have taken a strong stance that this should not be done. This gave birth to the Linux-Libc-Headers Project, which was designed to maintain an Application Programming Interface (API) stable version of the Linux headers.
多年来的公共惯例是使用 /usr/include 目录下"原始的"内核头文件(直接来自于内核源码包),但是近年来,内核开发者强烈要求不要这样做,因此诞生了 Linux-Libc-Headers 项目,其目标是维护一个API(应用程序编程接口)版本稳定的 Linux 头文件。

http://freshmeat.net/projects/linux-libc-headers/

iorifreedom 发表于 2006-8-9 13:22:14

哦,是的
页: [1]
查看完整版本: 内核头文件/usr/include/linux(asm)