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
RevLine 
[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">
[6a0e6f3]8<title>Linux-Libc-Headers-&linux-libc-headers-version;</title>
[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
[6a0e6f3]15<section role="package"><title/>
[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">
[6a0e6f3]26<title>Installation of Linux-Libc-Headers</title>
[9dfc02f]27
28<para>For years it has been common practice to use so-called <quote>raw</quote>
[ef57e3b]29kernel headers (straight from a kernel tarball) in <filename class="directory">/usr/include</filename>, but over the
[9dfc02f]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
[1fe35e1]48</section>
[9dfc02f]49
[ef57e3b]50
[6a0e6f3]51<section xml:id="contents-linux-libc-headers" role="content"><title>Contents of Linux-Libc-Headers</title>
[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>
Note: See TracBrowser for help on using the repository browser.