1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE section [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
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>
|
---|
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>
|
---|
13 | </indexterm>
|
---|
14 |
|
---|
15 | <section role="package"><info><title/></info>
|
---|
16 |
|
---|
17 | <segmentedlist>
|
---|
18 | <segtitle>&buildtime;</segtitle>
|
---|
19 | <segtitle>&diskspace;</segtitle>
|
---|
20 | <seglistitem><seg>0.1 SBU</seg><seg>22 MB</seg></seglistitem>
|
---|
21 | </segmentedlist>
|
---|
22 |
|
---|
23 | </section>
|
---|
24 |
|
---|
25 | <section role="installation">
|
---|
26 | <info><title>Installation of Linux-Libc-Headers</title></info>
|
---|
27 |
|
---|
28 | <para>For years it has been common practice to use so-called <quote>raw</quote>
|
---|
29 | kernel headers (straight from a kernel tarball) in <filename class="directory">/usr/include</filename>, but over the
|
---|
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 |
|
---|
48 | </section>
|
---|
49 |
|
---|
50 |
|
---|
51 | <section xml:id="contents-linux-libc-headers" role="content"><info><title>Contents of Linux-Libc-Headers</title></info>
|
---|
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 |
|
---|
60 | <varlistentry xml:id="linux-libc-headers">
|
---|
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 |
|
---|
69 | </section>
|
---|
70 |
|
---|
71 | </section>
|
---|