linux-libc-headers.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-system-linux-libc-headers" role="wrap">
  9. <title>Linux-Libc-Headers-&linux-libc-headers-version;</title>
  10. <?dbhtml filename="linux-libc-headers.html"?>
  11. <indexterm zone="ch-system-linux-libc-headers">
  12. <primary sortas="a-Linux-Libc-Headers">Linux-Libc-Headers</primary>
  13. </indexterm>
  14. <sect2 role="package"><title/>
  15. <para>The Linux-Libc-Headers package contains the
  16. <quote>sanitized</quote> kernel headers.</para>
  17. <segmentedlist>
  18. <segtitle>&buildtime;</segtitle>
  19. <segtitle>&diskspace;</segtitle>
  20. <seglistitem><seg>0.1 SBU</seg><seg>26.9 MB</seg></seglistitem>
  21. </segmentedlist>
  22. <segmentedlist>
  23. <segtitle>&dependencies;</segtitle>
  24. <seglistitem><seg>Coreutils</seg></seglistitem>
  25. </segmentedlist>
  26. </sect2>
  27. <sect2 role="installation">
  28. <title>Installation of Linux-Libc-Headers</title>
  29. <para>For years it has been common practice to use <quote>raw</quote>
  30. kernel headers (straight from a kernel tarball) in <filename
  31. class="directory">/usr/include</filename>, but over the last few
  32. years, the kernel developers have taken a strong stance that this
  33. should not be done. This gave birth to the Linux-Libc-Headers Project,
  34. which was designed to maintain an API stable version of the Linux
  35. headers.</para>
  36. <para>Install the header files:</para>
  37. <screen><userinput>cp -R include/asm-i386 /usr/include/asm
  38. cp -R include/linux /usr/include</userinput></screen>
  39. <para>Ensure that all the headers are owned by root:</para>
  40. <screen><userinput>chown -R root:root /usr/include/{asm,linux}</userinput></screen>
  41. <para>Make sure the users can read the headers:</para>
  42. <screen><userinput>find /usr/include/{asm,linux} -type d -exec chmod 755 {} \;
  43. find /usr/include/{asm,linux} -type f -exec chmod 644 {} \;</userinput></screen>
  44. </sect2>
  45. <sect2 id="contents-linux-libc-headers" role="content"><title>Contents of Linux-Libc-Headers</title>
  46. <segmentedlist>
  47. <segtitle>Installed headers</segtitle>
  48. <seglistitem><seg>/usr/include/{asm,linux}/*.h</seg></seglistitem>
  49. </segmentedlist>
  50. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  51. <?dbfo list-presentation="list"?>
  52. <?dbhtml list-presentation="table"?>
  53. <varlistentry id="linux-libc-headers">
  54. <term><filename class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
  55. <listitem>
  56. <para>The Linux headers API</para>
  57. <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>
  58. </listitem>
  59. </varlistentry>
  60. </variablelist>
  61. </sect2>
  62. </sect1>