📄 linux-libc-headers.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=gb2312" />
<title>
5.5. Linux-Libc-Headers-2.6.11.2
</title>
<link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1" />
<link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print" />
</head>
<body id="lfs" class="6.1">
<div class="navheader">
<div class="headertitles">
<h4>
Linux From Scratch - Version 6.1
</h4>
<h3>
Chapter 5. 构建临时编译环境
</h3>
</div>
<ul class="headerlinks">
<li class="prev">
<a accesskey="p" href="gcc-pass1.html" title="GCC-3.4.3 - Pass 1">后退</a>
<p>
GCC-3.4.3 - Pass 1
</p>
</li>
<li class="next">
<a accesskey="n" href="glibc.html" title="Glibc-2.3.4">前进</a>
<p>
Glibc-2.3.4
</p>
</li>
<li class="up">
<a accesskey="u" href="chapter05.html" title="Chapter 5. 构建临时编译环境">上一级</a>.
</li>
<li class="home">
<a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>
</li>
</ul>
</div>
<div class="wrap" lang="zh_cn" xml:lang="zh_cn">
<div class="titlepage">
<h1 class="sect1">
5.5. Linux-Libc-Headers-2.6.11.2
</h1>
</div>
<div class="package" lang="zh_cn" xml:lang="zh_cn">
<p>Linux-Libc-Headers 包含了 “<span class="quote">纯净的</span>” 内核头文件。 </p>
<div class="segmentedlist">
<div class="seglistitem">
<div class="seg">
<strong><span class="segtitle">预计编译时间:</span></strong> <span class="seg">0.1 SBU</span>
</div>
<div class="seg">
<strong><span class="segtitle">所需磁盘空间:</span></strong> <span class="seg">26.9 MB</span>
</div>
</div>
</div>
<div class="segmentedlist">
<div class="seglistitem">
<div class="seg">
<strong><span class="segtitle">安装依赖于:</span></strong> <span class="seg">Coreutils</span>
</div>
</div>
</div>
</div>
<div class="installation" lang="zh_cn" xml:lang="zh_cn">
<div class="titlepage">
<h2 class="sect2">
5.5.1. 安装 Linux-Libc-Headers
</h2>
</div>
<p>
多年来的公共惯例是使用 <tt class="filename">/usr/include</tt> 目录下 “<span class="quote">原始的</span>” 内核头文件(直接来自于内核源码包),但是近年来,内核开发者强烈要求不要这样做,因此诞生了 Linux-Libc-Headers 项目,其目标是维护一个API(应用程序编程接口)版本稳定的 Linux 头文件。
</p>
<p>
安装这些头文件:</p>
<pre class="userinput"><kbd class="command">cp -R include/asm-i386 /tools/include/asm
cp -R include/linux /tools/include</kbd></pre>
<p>
如果您的机器不是 i386 兼容架构的,请相应的调整第一条命令。</p>
</div>
<div class="content" lang="zh_cn" xml:lang="zh_cn">
<p>关于这个软件包的详细资料位于 <a href="../chapter06/linux-libc-headers.html#contents-linux-libc-headers"
title="6.9.2. Contents of Linux-Libc-Headers">Section 6.9.2, “Contents of Linux-Libc-Headers.”</a>
</p>
</div>
</div>
<div class="navfooter">
<ul>
<li class="prev">
<a accesskey="p" href="gcc-pass1.html" title="GCC-3.4.3 - Pass 1">后退</a>
<p>
GCC-3.4.3 - Pass 1
</p>
</li>
<li class="next">
<a accesskey="n" href="glibc.html" title="Glibc-2.3.4">前进</a>
<p>
Glibc-2.3.4
</p>
</li>
<li class="up">
<a accesskey="u" href="chapter05.html" title="Chapter 5. 构建临时编译环境">上一级</a>.
</li>
<li class="home">
<a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>.
</li>
</ul>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -