linux-libc-headers.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-linux-libc-headers" role="wrap">
  8. <?dbhtml filename="linux-libc-headers.html"?>
  9. <title>Linux-Libc-Headers-&linux-libc-headers-version;</title>
  10. <indexterm zone="ch-system-linux-libc-headers">
  11. <primary sortas="a-Linux-Libc-Headers">Linux-Libc-Headers</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <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>
  21. <seg>0.1 SBU</seg>
  22. <seg>26.9 MB</seg>
  23. </seglistitem>
  24. </segmentedlist>
  25. <segmentedlist>
  26. <segtitle>&dependencies;</segtitle>
  27. <seglistitem>
  28. <seg>Coreutils and Findutils</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Linux-Libc-Headers</title>
  34. <para>For years it has been common practice to use <quote>raw</quote>
  35. kernel headers (straight from a kernel tarball) in <filename
  36. class="directory">/usr/include</filename>, but over the last few
  37. years, the kernel developers have taken a strong stance that this
  38. should not be done. This gave birth to the Linux-Libc-Headers Project,
  39. which was designed to maintain an API stable version of the Linux
  40. headers.</para>
  41. <para>Install the header files:</para>
  42. <screen><userinput>install -dv /usr/include/asm
  43. cp -Rv include/asm-i386/* /usr/include/asm
  44. cp -Rv include/linux /usr/include</userinput></screen>
  45. <para>Ensure that all the headers are owned by root:</para>
  46. <screen><userinput>chown -Rv root:root /usr/include/{asm,linux}</userinput></screen>
  47. <para>Make sure the users can read the headers:</para>
  48. <screen><userinput>find /usr/include/{asm,linux} -type d -exec chmod -v 755 {} \;
  49. find /usr/include/{asm,linux} -type f -exec chmod -v 644 {} \;</userinput></screen>
  50. </sect2>
  51. <sect2 id="contents-linux-libc-headers" role="content">
  52. <title>Contents of Linux-Libc-Headers</title>
  53. <segmentedlist>
  54. <segtitle>Installed headers</segtitle>
  55. <seglistitem>
  56. <seg>/usr/include/{asm,linux}/*.h</seg>
  57. </seglistitem>
  58. </segmentedlist>
  59. <variablelist>
  60. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  61. <?dbfo list-presentation="list"?>
  62. <?dbhtml list-presentation="table"?>
  63. <varlistentry id="linux-libc-headers">
  64. <term><filename class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
  65. <listitem>
  66. <para>The Linux API headers</para>
  67. <indexterm zone="ch-system-linux-libc-headers linux-libc-headers">
  68. <primary sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
  69. </indexterm>
  70. </listitem>
  71. </varlistentry>
  72. </variablelist>
  73. </sect2>
  74. </sect1>