source: chapter06/linux-libc-headers.xml@ 1dc34de7

6.0
Last change on this file since 1dc34de7 was ef13657, checked in by Gerard Beekmans <gerard@…>, 20 years ago

Completed global edits for upcoming 6.0 release

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

  • Property mode set to 100644
File size: 2.5 KB
RevLine 
[9dfc02f]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[a001133]6<sect1 id="ch-system-linux-libc-headers" role="wrap">
[9dfc02f]7<title>Linux-Libc-Headers-&linux-libc-headers-version;</title>
8<?dbhtml filename="linux-libc-headers.html"?>
9
10<indexterm zone="ch-system-linux-libc-headers">
11<primary sortas="a-Linux-Libc-Headers">Linux-Libc-Headers</primary>
[a001133]12</indexterm>
[9dfc02f]13
[a001133]14<sect2 role="package"><title/>
[9dfc02f]15
[a001133]16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>22 MB</seg></seglistitem>
20</segmentedlist>
[9dfc02f]21
[ef13657]22<segmentedlist>
23<segtitle>Linux-Libc-Headers installation depends on</segtitle>
24<seglistitem><seg>Coreutils</seg></seglistitem>
25</segmentedlist>
26
[a001133]27</sect2>
28
29<sect2 role="installation">
[9dfc02f]30<title>Installation of Linux-Libc-Headers</title>
31
[ef13657]32<para>For years it has been common practice to use <quote>raw</quote>
33kernel headers (straight from a kernel tarball) in <filename
34class="directory">/usr/include</filename>, but over the last few
35years, the kernel developers have taken a strong stance that this
36should not be done. This gave birth to the linux-libc-headers project,
37which was designed to maintain an API stable version of the Linux
38headers.</para>
[9dfc02f]39
40<para>Install the header files:</para>
41
42<screen><userinput>cp -R include/asm-i386 /usr/include/asm
43cp -R include/linux /usr/include</userinput></screen>
44
[ef13657]45<para>Ensure that all the headers are owned by root:</para>
[9dfc02f]46
47<screen><userinput>chown -R root:root /usr/include/{asm,linux}</userinput></screen>
48
[ef13657]49<para>Make sure all the users can read the headers:</para>
[9dfc02f]50
51<screen><userinput>find /usr/include/{asm,linux} -type d -exec chmod 755 {} \;
52find /usr/include/{asm,linux} -type f -exec chmod 644 {} \;</userinput></screen>
53
54</sect2>
55
[ef57e3b]56
57<sect2 id="contents-linux-libc-headers" role="content"><title>Contents of Linux-Libc-Headers</title>
58
59<segmentedlist>
60<segtitle>Installed headers</segtitle>
61<seglistitem><seg>/usr/include/{asm,linux}/*.h</seg></seglistitem>
62</segmentedlist>
63
64<variablelist><title>Short description</title>
65
66<varlistentry id="linux-libc-headers">
67<term><filename class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
68<listitem>
69<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>
[ef13657]70<para>the Linux headers API.</para>
[ef57e3b]71</listitem>
72</varlistentry>
73</variablelist>
74
75</sect2>
76
[9dfc02f]77</sect1>
[ef13657]78
Note: See TracBrowser for help on using the repository browser.