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