source: BOOK/final-system/x86/linux-libc-headers.xml@ de1878b7

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since de1878b7 was 3f8be484, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 3.4 KB
Line 
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 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-system-linux-libc-headers" role="wrap">
11 <?dbhtml filename="linux-libc-headers.html"?>
12
13 <title>Linux-Libc-Headers-&linux-libc-headers-x86-version;</title>
14
15 <indexterm zone="ch-system-linux-libc-headers">
16 <primary sortas="a-Linux-Libc-Headers">Linux-Libc-Headers</primary>
17 </indexterm>
18
19 <sect2 role="package">
20 <title/>
21
22 <para>The Linux-Libc-Headers package contains the
23 <quote>sanitized</quote> kernel headers.</para>
24
25 <segmentedlist>
26 <segtitle>&buildtime;</segtitle>
27 <segtitle>&diskspace;</segtitle>
28
29 <seglistitem>
30 <seg>Not checked yet</seg>
31 <seg>Not checked yet</seg>
32 </seglistitem>
33 </segmentedlist>
34
35 <segmentedlist>
36 <segtitle>&dependencies;</segtitle>
37
38 <seglistitem>
39 <seg>Coreutils</seg>
40 </seglistitem>
41 </segmentedlist>
42
43 </sect2>
44
45 <sect2 role="installation">
46 <title>Installation of Linux-Libc-Headers</title>
47
48 <para os="a">For years it has been common practice to use <quote>raw</quote>
49 kernel headers (straight from a kernel tarball) in <filename
50 class="directory">/usr/include</filename>, but over the last few
51 years, the kernel developers have taken a strong stance that this
52 should not be done. This gave birth to the Linux-Libc-Headers Project,
53 which was designed to maintain an API stable version of the Linux
54 headers.</para>
55
56 <para os="b">Install the header files:</para>
57
58<screen><userinput>cp -R include/asm-i386 /usr/include/asm
59cp -R include/linux /usr/include
60cp -R include/mtd /usr/include
61cp -R include/sound /usr/include
62cp -R include/scsi /usr/include</userinput></screen>
63
64 <para os="c">Ensure that all the headers are owned by
65 <systemitem class="username">root</systemitem>:</para>
66
67<screen os="d"><userinput>chown -R root:root /usr/include/{asm,linux,mtd,sound,scsi}</userinput></screen>
68
69 <para os="e">Make sure the users can read the headers:</para>
70
71<screen os="f"><userinput>find /usr/include/{asm,linux,mtd,sound,scsi} -type d -exec chmod 755 {} \;
72find /usr/include/{asm,linux,mtd,sound,scsi} -type f -exec chmod 644 {} \;</userinput></screen>
73
74 </sect2>
75
76 <sect2 id="contents-linux-libc-headers" role="content">
77 <title>Contents of Linux-Libc-Headers</title>
78
79 <segmentedlist>
80 <segtitle>Installed headers</segtitle>
81
82 <seglistitem>
83 <seg>/usr/include/{asm,linux}/*.h</seg>
84 </seglistitem>
85 </segmentedlist>
86
87 <variablelist>
88 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
89 <?dbfo list-presentation="list"?>
90 <?dbhtml list-presentation="table"?>
91
92 <varlistentry id="linux-libc-headers">
93 <term><filename
94 class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
95 <listitem>
96 <para>The Linux API headers</para>
97 <indexterm zone="ch-system-linux-libc-headers linux-libc-headers">
98 <primary
99 sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
100 </indexterm>
101 </listitem>
102 </varlistentry>
103
104 </variablelist>
105
106 </sect2>
107
108</sect1>
Note: See TracBrowser for help on using the repository browser.