[9dfc02f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-linux-libc-headers" role="wrap">
|
---|
[9dfc02f] | 7 | <title>Linux-Libc-Headers-&linux-libc-headers-version;</title>
|
---|
| 8 | <?dbhtml filename="linux-libc-headers.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-linux-libc-headers">
|
---|
| 11 | <primary sortas="a-Linux-Libc-Headers">Linux-Libc-Headers</primary>
|
---|
[a001133] | 12 | </indexterm>
|
---|
[9dfc02f] | 13 |
|
---|
[a001133] | 14 | <sect2 role="package"><title/>
|
---|
[9dfc02f] | 15 |
|
---|
[a001133] | 16 | <segmentedlist>
|
---|
| 17 | <segtitle>&buildtime;</segtitle>
|
---|
| 18 | <segtitle>&diskspace;</segtitle>
|
---|
| 19 | <seglistitem><seg>0.1 SBU</seg><seg>22 MB</seg></seglistitem>
|
---|
| 20 | </segmentedlist>
|
---|
[9dfc02f] | 21 |
|
---|
[a001133] | 22 | </sect2>
|
---|
| 23 |
|
---|
| 24 | <sect2 role="installation">
|
---|
[9dfc02f] | 25 | <title>Installation of Linux-Libc-Headers</title>
|
---|
| 26 |
|
---|
| 27 | <para>For years it has been common practice to use so-called <quote>raw</quote>
|
---|
[ef57e3b] | 28 | kernel headers (straight from a kernel tarball) in <filename class="directory">/usr/include</filename>, but over the
|
---|
[9dfc02f] | 29 | last few years, the kernel developers have taken a strong stance that such
|
---|
| 30 | things should not be done. Thus was born the linux-libc-headers project,
|
---|
| 31 | designed to maintain an API stable version of the Linux headers.</para>
|
---|
| 32 |
|
---|
| 33 | <para>Install the header files:</para>
|
---|
| 34 |
|
---|
| 35 | <screen><userinput>cp -R include/asm-i386 /usr/include/asm
|
---|
| 36 | cp -R include/linux /usr/include</userinput></screen>
|
---|
| 37 |
|
---|
| 38 | <para>Assure that all the headers are owned by root:</para>
|
---|
| 39 |
|
---|
| 40 | <screen><userinput>chown -R root:root /usr/include/{asm,linux}</userinput></screen>
|
---|
| 41 |
|
---|
| 42 | <para>And make sure all the users can read the headers:</para>
|
---|
| 43 |
|
---|
| 44 | <screen><userinput>find /usr/include/{asm,linux} -type d -exec chmod 755 {} \;
|
---|
| 45 | find /usr/include/{asm,linux} -type f -exec chmod 644 {} \;</userinput></screen>
|
---|
| 46 |
|
---|
| 47 | </sect2>
|
---|
| 48 |
|
---|
[ef57e3b] | 49 |
|
---|
| 50 | <sect2 id="contents-linux-libc-headers" role="content"><title>Contents of Linux-Libc-Headers</title>
|
---|
| 51 |
|
---|
| 52 | <segmentedlist>
|
---|
| 53 | <segtitle>Installed headers</segtitle>
|
---|
| 54 | <seglistitem><seg>/usr/include/{asm,linux}/*.h</seg></seglistitem>
|
---|
| 55 | </segmentedlist>
|
---|
| 56 |
|
---|
| 57 | <variablelist><title>Short description</title>
|
---|
| 58 |
|
---|
| 59 | <varlistentry id="linux-libc-headers">
|
---|
| 60 | <term><filename class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
|
---|
| 61 | <listitem>
|
---|
| 62 | <indexterm zone="ch-system-linux-libc-headers linux-libc-headers"><primary sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary></indexterm>
|
---|
| 63 | <para>This files are the Linux headers API.</para>
|
---|
| 64 | </listitem>
|
---|
| 65 | </varlistentry>
|
---|
| 66 | </variablelist>
|
---|
| 67 |
|
---|
| 68 | </sect2>
|
---|
| 69 |
|
---|
[9dfc02f] | 70 | </sect1>
|
---|