[bf8c11f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-linux-libc-headers" role="wrap">
|
---|
| 9 | <?dbhtml filename="linux-libc-headers.html"?>
|
---|
| 10 |
|
---|
[fe18e4eb] | 11 | <title>Linux-Libc-Headers-&linux-libc-headers-version;</title>
|
---|
[bf8c11f] | 12 |
|
---|
| 13 | <indexterm zone="ch-system-linux-libc-headers">
|
---|
| 14 | <primary sortas="a-Linux-Libc-Headers">Linux-Libc-Headers</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Linux-Libc-Headers package contains the
|
---|
| 21 | <quote>sanitized</quote> kernel headers.</para>
|
---|
| 22 |
|
---|
| 23 | <segmentedlist>
|
---|
| 24 | <segtitle>&dependencies;</segtitle>
|
---|
| 25 |
|
---|
| 26 | <seglistitem>
|
---|
[0636f6c] | 27 | <seg>Coreutils and Findutils</seg>
|
---|
[bf8c11f] | 28 | </seglistitem>
|
---|
| 29 | </segmentedlist>
|
---|
| 30 |
|
---|
| 31 | </sect2>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="installation">
|
---|
| 34 | <title>Installation of Linux-Libc-Headers</title>
|
---|
| 35 |
|
---|
| 36 | <para os="a">For years it has been common practice to use <quote>raw</quote>
|
---|
| 37 | kernel headers (straight from a kernel tarball) in <filename
|
---|
| 38 | class="directory">/usr/include</filename>, but over the last few
|
---|
| 39 | years, the kernel developers have taken a strong stance that this
|
---|
| 40 | should not be done. This gave birth to the Linux-Libc-Headers Project,
|
---|
| 41 | which was designed to maintain an API stable version of the Linux
|
---|
| 42 | headers.</para>
|
---|
| 43 |
|
---|
| 44 | <para os="b">Install the header files:</para>
|
---|
| 45 |
|
---|
[7e72be6] | 46 | <screen><userinput>install -dv /usr/include/{asm,linux,mtd,scsi}
|
---|
[dfac829] | 47 | cp -av include/asm-i386/* /usr/include/asm
|
---|
| 48 | cp -av include/linux/* /usr/include/linux
|
---|
| 49 | cp -av include/mtd/* /usr/include/mtd
|
---|
| 50 | cp -av include/scsi/* /usr/include/scsi</userinput></screen>
|
---|
[bf8c11f] | 51 |
|
---|
| 52 | <para os="c">Ensure that all the headers are owned by
|
---|
| 53 | <systemitem class="username">root</systemitem>:</para>
|
---|
| 54 |
|
---|
[dd9906e] | 55 | <screen os="d"><userinput>chown -Rv root:root /usr/include/{asm,linux,mtd,scsi}</userinput></screen>
|
---|
[bf8c11f] | 56 |
|
---|
| 57 | <para os="e">Make sure the users can read the headers:</para>
|
---|
| 58 |
|
---|
[dd9906e] | 59 | <screen os="f"><userinput>find /usr/include/{asm,linux,mtd,scsi} -type d -exec chmod -v 755 {} \;
|
---|
| 60 | find /usr/include/{asm,linux,mtd,scsi} -type f -exec chmod -v 644 {} \;</userinput></screen>
|
---|
[bf8c11f] | 61 |
|
---|
| 62 | </sect2>
|
---|
| 63 |
|
---|
| 64 | <sect2 id="contents-linux-libc-headers" role="content">
|
---|
| 65 | <title>Contents of Linux-Libc-Headers</title>
|
---|
| 66 |
|
---|
| 67 | <segmentedlist>
|
---|
| 68 | <segtitle>Installed headers</segtitle>
|
---|
| 69 |
|
---|
| 70 | <seglistitem>
|
---|
| 71 | <seg>/usr/include/{asm,linux}/*.h</seg>
|
---|
| 72 | </seglistitem>
|
---|
| 73 | </segmentedlist>
|
---|
| 74 |
|
---|
| 75 | <variablelist>
|
---|
| 76 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 77 | <?dbfo list-presentation="list"?>
|
---|
| 78 | <?dbhtml list-presentation="table"?>
|
---|
| 79 |
|
---|
| 80 | <varlistentry id="linux-libc-headers">
|
---|
| 81 | <term><filename
|
---|
| 82 | class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
|
---|
| 83 | <listitem>
|
---|
| 84 | <para>The Linux API headers</para>
|
---|
| 85 | <indexterm zone="ch-system-linux-libc-headers linux-libc-headers">
|
---|
| 86 | <primary
|
---|
| 87 | sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
|
---|
| 88 | </indexterm>
|
---|
| 89 | </listitem>
|
---|
| 90 | </varlistentry>
|
---|
| 91 |
|
---|
| 92 | </variablelist>
|
---|
| 93 |
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | </sect1>
|
---|