6.7. Linux-Libc-Headers-2.6.12.0

The Linux-Libc-Headers package contains the “sanitized” kernel headers.

Approximate build time: less than 0.1 SBU
Required disk space: 27 MB

6.7.1. Installation of Linux-Libc-Headers

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 API stable version of the Linux headers.

Add a userspace header and syscall support for the inotify feature available in newer Linux kernels:

patch -Np1 -i ../linux-libc-headers-2.6.12.0-inotify-3.patch

Install the header files:

install -dv /usr/include/asm
cp -Rv include/asm-i386/* /usr/include/asm
cp -Rv include/linux /usr/include

Ensure that all the headers are owned by root:

chown -Rv root:root /usr/include/{asm,linux}

Make sure the users can read the headers:

find /usr/include/{asm,linux} -type d -exec chmod -v 755 {} \;
find /usr/include/{asm,linux} -type f -exec chmod -v 644 {} \;

6.7.2. Contents of Linux-Libc-Headers

Installed headers: /usr/include/{asm,linux}/*.h

Short Descriptions

/usr/include/{asm,linux}/*.h

The Linux API headers