source: chapter06/linux-libc-headers.xml@ a9fde34e

Last change on this file since a9fde34e was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.4 KB
Line 
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<title>Linux-Libc-Headers-&linux-libc-headers-version;</title>
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"><title/>
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<title>Installation of Linux-Libc-Headers</title>
27
28<para>For years it has been common practice to use so-called <quote>raw</quote>
29kernel headers (straight from a kernel tarball) in <filename class="directory">/usr/include</filename>, but over the
30last few years, the kernel developers have taken a strong stance that such
31things should not be done. Thus was born the linux-libc-headers project,
32designed 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
37cp -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 {} \;
46find /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"><title>Contents of Linux-Libc-Headers</title>
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>
Note: See TracBrowser for help on using the repository browser.