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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8779a20 was 7dfa1a8, checked in by Jim Gifford <clfs@…>, 19 years ago

r665@server (orig r663): manuel | 2005-11-08 14:33:14 -0800
Removing SBUs and DUs. Chapter final-system, round 3.

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