linux-libc-headers.xml 2.9 KB

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