⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linux-libc-headers.html

📁 CLFS(Cross-Compiled Linux From Scratch)的文档 Version CLFS-SVN-20060417
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">  <head>    <meta http-equiv="Content-Type" content=    "application/xhtml+xml; charset=iso-8859-1" />    <title>      10.5.&nbsp;Linux-Libc-Headers-2.6.12.0    </title>    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />    <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" />    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=    "text/css" media="print" />  </head>  <body id="lfs" class="CLFS-SVN-20060417-MIPS">    <div class="navheader">      <div class="headertitles">        <h4>          Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS        </h4>        <h3>          Chapter&nbsp;10.&nbsp;Installing Basic System Software        </h3>      </div>      <ul class="headerlinks">        <li class="prev">          <a accesskey="p" href="temp-perl.html" title=          "Temporary Perl-5.8.8">Prev</a>          <p>            Temporary Perl-5.8.8          </p>        </li>        <li class="next">          <a accesskey="n" href="glibc.html" title="Glibc-2.4">Next</a>          <p>            Glibc-2.4          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS">          Home</a>        </li>      </ul>    </div>    <div class="wrap" lang="en" xml:lang="en">      <div class="titlepage">        <h1 class="sect1">          10.5. Linux-Libc-Headers-2.6.12.0        </h1>      </div>      <div class="package" lang="en" xml:lang="en">        <p>          The Linux-Libc-Headers package contains the &ldquo;<span class=          "quote">sanitized</span>&rdquo; kernel headers.        </p>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installation depends              on:</span></strong> <span class="seg">Coreutils and              Findutils</span>            </div>          </div>        </div>      </div>      <div class="installation" lang="en" xml:lang="en">        <div class="titlepage">          <h2 class="sect2">            10.5.1. Installation of Linux-Libc-Headers          </h2>        </div>        <p>          For years it has been common practice to use &ldquo;<span class=          "quote">raw</span>&rdquo; kernel headers (straight from a kernel          tarball) in <tt class="filename">/usr/include</tt>, but over the          last few years, the kernel developers have taken a strong stance          that this should not be done. This gave birth to the          Linux-Libc-Headers Project, which was designed to maintain an API          stable version of the Linux headers.        </p>        <p>          Install the header files:        </p>        <p>          The following patch adds NPTL support:        </p>        <pre class="userinput"><kbd class="command">patch -Np1 -i ../linux-libc-headers-2.6.12.0-mips_tls-1.patch</kbd></pre>        <p>          The following patch fixes a compile issue with sysklogd:        </p>        <pre class="userinput"><kbd class="command">patch -Np1 -i ../linux-libc-headers-2.6.12.0-mips_atomic_fix-1.patch</kbd></pre>        <p>          Install the header files:        </p>        <pre class="userinput"><kbd class="command">install -dv /usr/include/{asm,linux,mtd,scsi}cp -av include/asm-mips/* /usr/include/asmcp -av include/linux/* /usr/include/linuxcp -av include/mtd/* /usr/include/mtdcp -av include/scsi/* /usr/include/scsi</kbd></pre>        <p>          Ensure that all the headers are owned by <tt class=          "systemitem">root</tt>:        </p>        <pre class="userinput"><kbd class="command">chown -Rv root:root /usr/include/{asm,linux,mtd,scsi}</kbd></pre>        <p>          Make sure the users can read the headers:        </p>        <pre class="userinput"><kbd class="command">find /usr/include/{asm,linux,mtd,scsi} -type d -exec chmod -v 755 {} \;find /usr/include/{asm,linux,mtd,scsi} -type f -exec chmod -v 644 {} \;</kbd></pre>      </div>      <div class="content" lang="en" xml:lang="en">        <div class="titlepage">          <a id="contents-linux-libc-headers" name=          "contents-linux-libc-headers"></a>          <h2 class="sect2">            10.5.2. Contents of Linux-Libc-Headers          </h2>        </div>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installed              headers:</span></strong> <span class=              "seg">/usr/include/{asm,linux}/*.h</span>            </div>          </div>        </div>        <div class="variablelist">          <h3>            <a id="id3661557" name="id3661557"></a>Short Descriptions          </h3>          <table border="0">            <col align="left" valign="top" />            <tbody>              <tr>                <td>                  <a id="linux-libc-headers" name=                  "linux-libc-headers"></a><span class="term"><tt class=                  "filename">/usr/include/{asm,linux}/*.h</tt></span>                </td>                <td>                  <p>                    The Linux API headers                  </p>                </td>              </tr>            </tbody>          </table>        </div>      </div>    </div>    <div class="navfooter">      <ul>        <li class="prev">          <a accesskey="p" href="temp-perl.html" title=          "Temporary Perl-5.8.8">Prev</a>          <p>            Temporary Perl-5.8.8          </p>        </li>        <li class="next">          <a accesskey="n" href="glibc.html" title="Glibc-2.4">Next</a>          <p>            Glibc-2.4          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS">          Home</a>.        </li>      </ul>    </div>  </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -