glibc.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  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. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-glibc" role="wrap">
  7. <title>Glibc-&glibc-version;</title>
  8. <?dbhtml filename="glibc.html"?>
  9. <indexterm zone="ch-system-glibc"><primary sortas="a-Glibc">Glibc</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Glibc package contains the main C library. This library provides
  12. the basic routines for allocating memory, searching directories, opening and
  13. closing files, reading and writing files, string handling, pattern matching,
  14. arithmetic, and so on.</para>
  15. <segmentedlist>
  16. <segtitle>&buildtime;</segtitle>
  17. <segtitle>&diskspace;</segtitle>
  18. <seglistitem><seg>16.7 SBU</seg><seg>500 MB</seg></seglistitem>
  19. </segmentedlist>
  20. <segmentedlist>
  21. <segtitle>&dependencies;</segtitle>
  22. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  23. Gawk, GCC, Gettext, Grep, Make, Perl, Sed, and Texinfo</seg></seglistitem>
  24. </segmentedlist>
  25. </sect2>
  26. <sect2 role="installation">
  27. <title>Installation of Glibc</title>
  28. <note><para>Some packages outside of LFS suggest installing GNU libiconv in
  29. order to translate data from one encoding to another. The project's home page
  30. (<ulink url="http://www.gnu.org/software/libiconv/"/>) says <quote>This library
  31. provides an <function>iconv()</function> implementation, for use on systems
  32. which don't have one, or whose implementation cannot convert from/to Unicode.
  33. </quote> Glibc provides an <function>iconv()</function> implementation and can
  34. convert from/to Unicode, therefore libiconv is not required on an LFS
  35. system.</para></note>
  36. <para>The Glibc build system is self-contained and will install
  37. perfectly, even though the compiler specs file and linker are still
  38. pointing at <filename class="directory">/tools</filename>. The specs
  39. and linker cannot be adjusted before the Glibc install because the
  40. Glibc autoconf tests would give false results and defeat the goal
  41. of achieving a clean build.</para>
  42. <para>The Glibc documentation recommends building Glibc outside of the source
  43. directory in a dedicated build directory:</para>
  44. <screen><userinput>mkdir -v ../glibc-build
  45. cd ../glibc-build</userinput></screen>
  46. <para>Prepare Glibc for compilation:</para>
  47. <screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
  48. --disable-profile --enable-add-ons \
  49. --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>
  50. <para>The meaning of the new configure options:</para>
  51. <variablelist>
  52. <varlistentry>
  53. <term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
  54. <listitem><para>This changes the location of the
  55. <command>pt_chown</command> program from its default of <filename
  56. class="directory">/usr/libexec</filename> to <filename
  57. class="directory">/usr/lib/glibc</filename>.</para></listitem>
  58. </varlistentry>
  59. </variablelist>
  60. <para>Compile the package:</para>
  61. <screen><userinput>make</userinput></screen>
  62. <important><para>In this section, the test suite for Glibc is
  63. considered critical. Do not skip it under any
  64. circumstance.</para></important>
  65. <para>Test the results:</para>
  66. <screen><userinput>make -k check &gt;glibc-check-log 2&gt;&amp;1
  67. grep Error glibc-check-log</userinput></screen>
  68. <para>On at least i686 you can expect to see failures in the <emphasis>test-double
  69. </emphasis> and <emphasis>test-idouble</emphasis> math tests with
  70. gcc-&gcc-version;, as well as an expected (ignored) failure in <emphasis>
  71. posix/annexc</emphasis>. These two failures in the math tests appear to be
  72. harmless.</para>
  73. <para>The Glibc test suite is highly dependent on certain functions of
  74. the host system, in particular the kernel. In certain circumstances,
  75. some failures are unavoidable. This is a list of the most common
  76. issues:</para>
  77. <itemizedlist>
  78. <listitem><para>The <emphasis>math</emphasis> tests sometimes fail in other tests
  79. when running
  80. on systems where the CPU is not a relatively new genuine Intel or authentic AMD.
  81. Certain optimization settings are also known to be a factor here.</para></listitem>
  82. <listitem><para>The <emphasis>gettext</emphasis> test sometimes fails due to
  83. host system issues. The exact reasons are not yet clear.</para></listitem>
  84. <listitem><para>If you have mounted the LFS partition with the
  85. <parameter>noatime</parameter> option, the <emphasis>atime</emphasis> test will
  86. fail. As mentioned in <xref linkend="space-mounting"/>, do not use the
  87. <parameter>noatime</parameter> option while building LFS.</para></listitem>
  88. <listitem><para>When running on older and slower hardware, some tests
  89. can fail because of test timeouts being exceeded.</para></listitem>
  90. </itemizedlist>
  91. <para>Though it is a harmless message, the install stage of Glibc will
  92. complain about the absence of <filename>/etc/ld.so.conf</filename>.
  93. Prevent this warning with:</para>
  94. <screen><userinput>touch /etc/ld.so.conf</userinput></screen>
  95. <para>Install the package:</para>
  96. <screen><userinput>make install</userinput></screen>
  97. <para>The locales that can make the system respond in a different
  98. language were not installed by the above command. Install this
  99. with:</para>
  100. <screen><userinput>make localedata/install-locales</userinput></screen>
  101. <para>To save time, an alternative to running the
  102. previous command (which generates and installs every locale listed in the
  103. glibc-&glibc-version;/localedata/SUPPORTED file) is to install only those
  104. locales that are wanted and needed. This can be achieved by using the
  105. <command>localedef</command> command. Information on this command is located in
  106. the <filename>INSTALL</filename> file in the Glibc source. However, there
  107. are a number of locales that are essential in order for the tests of
  108. future packages to pass, in particular, the
  109. <emphasis>libstdc++</emphasis> tests from GCC. The following
  110. instructions, instead of the <parameter>install-locales</parameter>
  111. target used above, will install the minimum set of locales necessary
  112. for the tests to run successfully:</para>
  113. <screen role="nodump"><userinput>mkdir -pv /usr/lib/locale
  114. localedef -i de_DE -f ISO-8859-1 de_DE
  115. localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
  116. localedef -i en_HK -f ISO-8859-1 en_HK
  117. localedef -i en_PH -f ISO-8859-1 en_PH
  118. localedef -i en_US -f ISO-8859-1 en_US
  119. localedef -i es_MX -f ISO-8859-1 es_MX
  120. localedef -i fa_IR -f UTF-8 fa_IR
  121. localedef -i fr_FR -f ISO-8859-1 fr_FR
  122. localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
  123. localedef -i it_IT -f ISO-8859-1 it_IT
  124. localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
  125. <para>Some locales installed by the <command>make
  126. localedata/install-locales</command> command above are not properly
  127. supported by some applications that are in the LFS and BLFS books.
  128. Because of the various problems that arise due to application
  129. programmers making assumptions that break in such locales, LFS should
  130. not be used in locales that utilize multibyte character sets
  131. (including UTF-8) or right-to-left writing order. Numerous unofficial
  132. and unstable patches are required to fix these problems, and it has
  133. been decided by the LFS developers not to support such complex locales at this
  134. time. This applies to the ja_JP and fa_IR locales as well&mdash;they have been
  135. installed only for GCC and Gettext tests to pass, and the
  136. <command>watch</command> program (part of the Procps package) does not work
  137. properly in them. Various attempts to circumvent these restrictions are
  138. documented in internationalization-related hints.</para>
  139. </sect2>
  140. <sect2 id="conf-glibc" role="configuration"><title>Configuring Glibc</title>
  141. <indexterm zone="conf-glibc"><primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary></indexterm>
  142. <indexterm zone="conf-glibc"><primary sortas="e-/etc/localtime">/etc/localtime</primary></indexterm>
  143. <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
  144. because, although Glibc provides defaults when this file is missing or corrupt,
  145. the Glibc defaults do not work well in a networked environment. The time zone
  146. also needs to be configured.</para>
  147. <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
  148. following:</para>
  149. <screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
  150. <literal># Begin /etc/nsswitch.conf
  151. passwd: files
  152. group: files
  153. shadow: files
  154. hosts: files dns
  155. networks: files
  156. protocols: files
  157. services: files
  158. ethers: files
  159. rpc: files
  160. # End /etc/nsswitch.conf</literal>
  161. EOF</userinput></screen>
  162. <para>To determine the local time zone, run the following script:</para>
  163. <screen role="nodump"><userinput>tzselect</userinput></screen>
  164. <para>After answering a few questions about the location, the script
  165. will output the name of the time zone (e.g.,
  166. <emphasis>EST5EDT</emphasis> or <emphasis>Canada/Eastern</emphasis>).
  167. Then create the <filename>/etc/localtime</filename> file by
  168. running:</para>
  169. <screen><userinput>cp -v --remove-destination /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
  170. /etc/localtime</userinput></screen>
  171. <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone
  172. that <command>tzselect</command> provided (e.g., Canada/Eastern).</para>
  173. <para>The meaning of the cp option:</para>
  174. <variablelist>
  175. <varlistentry>
  176. <term><parameter>--remove-destination</parameter></term>
  177. <listitem><para>This is needed to force removal of the already
  178. existing symbolic link. The reason for copying the file instead of
  179. using a symlink is to cover the situation where <filename
  180. class="directory">/usr</filename> is on a separate partition. This
  181. could be important when booted into single user
  182. mode.</para></listitem>
  183. </varlistentry>
  184. </variablelist>
  185. </sect2>
  186. <sect2 id="conf-ld" role="configuration">
  187. <title>Configuring Dynamic Loader</title>
  188. <indexterm zone="conf-ld"><primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary></indexterm>
  189. <para>By default, the dynamic loader (<filename
  190. class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
  191. <filename class="directory">/lib</filename> and <filename
  192. class="directory">/usr/lib</filename> for dynamic libraries that are
  193. needed by programs as they are run. However, if there are libraries in
  194. directories other than <filename class="directory">/lib</filename> and
  195. <filename class="directory">/usr/lib</filename>, these need to be
  196. added to the <filename>/etc/ld.so.conf</filename> file in order
  197. for the dynamic loader to find them. Two directories that are commonly
  198. known to contain additional libraries are <filename
  199. class="directory">/usr/local/lib</filename> and <filename
  200. class="directory">/opt/lib</filename>, so add those directories to the
  201. dynamic loader's search path.</para>
  202. <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
  203. following:</para>
  204. <screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
  205. <literal># Begin /etc/ld.so.conf
  206. /usr/local/lib
  207. /opt/lib
  208. # End /etc/ld.so.conf</literal>
  209. EOF</userinput></screen>
  210. </sect2>
  211. <sect2 id="contents-glibc" role="content"><title>Contents of Glibc</title>
  212. <segmentedlist>
  213. <segtitle>Installed programs</segtitle>
  214. <segtitle>Installed libraries</segtitle>
  215. <seglistitem><seg>catchsegv, gencat, getconf,
  216. getent, iconv, iconvconfig, ldconfig, ldd, lddlibc4, locale,
  217. localedef, mtrace, nscd, nscd_nischeck, pcprofiledump, pt_chown, rpcgen,
  218. rpcinfo, sln, sprof, tzselect, xtrace, zdump, and zic</seg>
  219. <seg>ld.so, libBrokenLocale.[a,so],
  220. libSegFault.so, libanl.[a,so], libbsd-compat.a, libc.[a,so],
  221. libcrypt.[a,so], libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
  222. libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so, libnss_files.so,
  223. libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so, libpcprofile.so,
  224. libpthread.[a,so], libresolv.[a,so], librpcsvc.a, librt.[a,so],
  225. libthread_db.so, and libutil.[a,so]</seg></seglistitem>
  226. </segmentedlist>
  227. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  228. <?dbfo list-presentation="list"?>
  229. <?dbhtml list-presentation="table"?>
  230. <varlistentry id="catchsegv">
  231. <term><command>catchsegv</command></term>
  232. <listitem>
  233. <para>Can be used to create a stack trace when a program
  234. terminates with a segmentation fault</para>
  235. <indexterm zone="ch-system-glibc catchsegv"><primary sortas="b-catchsegv">catchsegv</primary></indexterm>
  236. </listitem>
  237. </varlistentry>
  238. <varlistentry id="gencat">
  239. <term><command>gencat</command></term>
  240. <listitem>
  241. <para>Generates message catalogues</para>
  242. <indexterm zone="ch-system-glibc gencat"><primary sortas="b-gencat">gencat</primary></indexterm>
  243. </listitem>
  244. </varlistentry>
  245. <varlistentry id="getconf">
  246. <term><command>getconf</command></term>
  247. <listitem>
  248. <para>Displays the system configuration values for file system specific variables</para>
  249. <indexterm zone="ch-system-glibc getconf"><primary sortas="b-getconf">getconf</primary></indexterm>
  250. </listitem>
  251. </varlistentry>
  252. <varlistentry id="getent">
  253. <term><command>getent</command></term>
  254. <listitem>
  255. <para>Gets entries from an administrative database</para>
  256. <indexterm zone="ch-system-glibc getent"><primary sortas="b-getent">getent</primary></indexterm>
  257. </listitem>
  258. </varlistentry>
  259. <varlistentry id="iconv">
  260. <term><command>iconv</command></term>
  261. <listitem>
  262. <para>Performs character set conversion</para>
  263. <indexterm zone="ch-system-glibc iconv"><primary sortas="b-iconv">iconv</primary></indexterm>
  264. </listitem>
  265. </varlistentry>
  266. <varlistentry id="iconvconfig">
  267. <term><command>iconvconfig</command></term>
  268. <listitem>
  269. <para>Creates fastloading <command>iconv</command> module configuration files</para>
  270. <indexterm zone="ch-system-glibc iconvconfig"><primary sortas="b-iconvconfig">iconvconfig</primary></indexterm>
  271. </listitem>
  272. </varlistentry>
  273. <varlistentry id="ldconfig">
  274. <term><command>ldconfig</command></term>
  275. <listitem>
  276. <para>Configures the dynamic linker runtime bindings</para>
  277. <indexterm zone="ch-system-glibc ldconfig"><primary sortas="b-ldconfig">ldconfig</primary></indexterm>
  278. </listitem>
  279. </varlistentry>
  280. <varlistentry id="ldd">
  281. <term><command>ldd</command></term>
  282. <listitem>
  283. <para>Reports which shared libraries are required
  284. by each given program or shared library</para>
  285. <indexterm zone="ch-system-glibc ldd"><primary sortas="b-ldd">ldd</primary></indexterm>
  286. </listitem>
  287. </varlistentry>
  288. <varlistentry id="lddlibc4">
  289. <term><command>lddlibc4</command></term>
  290. <listitem>
  291. <para>Assists <command>ldd</command> with object files</para>
  292. <indexterm zone="ch-system-glibc lddlibc4"><primary sortas="b-lddlibc4">lddlibc4</primary></indexterm>
  293. </listitem>
  294. </varlistentry>
  295. <varlistentry id="locale">
  296. <term><command>locale</command></term>
  297. <listitem>
  298. <para>Tells the compiler to enable or disable the use of POSIX locales
  299. for built-in operations</para>
  300. <indexterm zone="ch-system-glibc locale"><primary sortas="b-locale">locale</primary></indexterm>
  301. </listitem>
  302. </varlistentry>
  303. <varlistentry id="localedef">
  304. <term><command>localedef</command></term>
  305. <listitem>
  306. <para>Compiles locale specifications</para>
  307. <indexterm zone="ch-system-glibc localedef"><primary sortas="b-localedef">localedef</primary></indexterm>
  308. </listitem>
  309. </varlistentry>
  310. <varlistentry id="mtrace">
  311. <term><command>mtrace</command></term>
  312. <listitem>
  313. <para>Reads and interprets a memory trace file and displays a summary in human-readable format</para>
  314. <indexterm zone="ch-system-glibc mtrace"><primary sortas="b-mtrace">mtrace</primary></indexterm>
  315. </listitem>
  316. </varlistentry>
  317. <varlistentry id="nscd">
  318. <term><command>nscd</command></term>
  319. <listitem>
  320. <para>A daemon that provides a cache for the most common name
  321. service requests</para>
  322. <indexterm zone="ch-system-glibc nscd"><primary sortas="b-nscd">nscd</primary></indexterm>
  323. </listitem>
  324. </varlistentry>
  325. <varlistentry id="nscd_nischeck">
  326. <term><command>nscd_nischeck</command></term>
  327. <listitem>
  328. <para>Checks whether or not secure mode is necessary for NIS+ lookup</para>
  329. <indexterm zone="ch-system-glibc nscd_nischeck"><primary sortas="b-nscd_nischeck">nscd_nischeck</primary></indexterm>
  330. </listitem>
  331. </varlistentry>
  332. <varlistentry id="pcprofiledump">
  333. <term><command>pcprofiledump</command></term>
  334. <listitem>
  335. <para>Dumps information generated by PC profiling</para>
  336. <indexterm zone="ch-system-glibc pcprofiledump"><primary sortas="b-pcprofiledump">pcprofiledump</primary></indexterm>
  337. </listitem>
  338. </varlistentry>
  339. <varlistentry id="pt_chown">
  340. <term><command>pt_chown</command></term>
  341. <listitem>
  342. <para>A helper program for <command>grantpt</command> to set
  343. the owner, group and access permissions of a slave pseudo terminal</para>
  344. <indexterm zone="ch-system-glibc pt_chown"><primary sortas="b-pt_chown">pt_chown</primary></indexterm>
  345. </listitem>
  346. </varlistentry>
  347. <varlistentry id="rpcgen">
  348. <term><command>rpcgen</command></term>
  349. <listitem>
  350. <para>Generates C code to implement the Remote Procecure Call (RPC) protocol</para>
  351. <indexterm zone="ch-system-glibc rpcgen"><primary sortas="b-rpcgen">rpcgen</primary></indexterm>
  352. </listitem>
  353. </varlistentry>
  354. <varlistentry id="rpcinfo">
  355. <term><command>rpcinfo</command></term>
  356. <listitem>
  357. <para>Makes an RPC call to an RPC server</para>
  358. <indexterm zone="ch-system-glibc rpcinfo"><primary sortas="b-rpcinfo">rpcinfo</primary></indexterm>
  359. </listitem>
  360. </varlistentry>
  361. <varlistentry id="sln">
  362. <term><command>sln</command></term>
  363. <listitem>
  364. <para>A statically linked <command>ln</command> program</para>
  365. <indexterm zone="ch-system-glibc sln"><primary sortas="b-sln">sln</primary></indexterm>
  366. </listitem>
  367. </varlistentry>
  368. <varlistentry id="sprof">
  369. <term><command>sprof</command></term>
  370. <listitem>
  371. <para>Reads and displays shared object profiling data</para>
  372. <indexterm zone="ch-system-glibc sprof"><primary sortas="b-sprof">sprof</primary></indexterm>
  373. </listitem>
  374. </varlistentry>
  375. <varlistentry id="tzselect">
  376. <term><command>tzselect</command></term>
  377. <listitem>
  378. <para>Asks the user about the location of the
  379. system and reports the corresponding time zone description</para>
  380. <indexterm zone="ch-system-glibc tzselect"><primary sortas="b-tzselect">tzselect</primary></indexterm>
  381. </listitem>
  382. </varlistentry>
  383. <varlistentry id="xtrace">
  384. <term><command>xtrace</command></term>
  385. <listitem>
  386. <para>Traces the execution of a program by
  387. printing the currently executed function</para>
  388. <indexterm zone="ch-system-glibc xtrace"><primary sortas="b-xtrace">xtrace</primary></indexterm>
  389. </listitem>
  390. </varlistentry>
  391. <varlistentry id="zdump">
  392. <term><command>zdump</command></term>
  393. <listitem>
  394. <para>The time zone dumper</para>
  395. <indexterm zone="ch-system-glibc zdump"><primary sortas="b-zdump">zdump</primary></indexterm>
  396. </listitem>
  397. </varlistentry>
  398. <varlistentry id="zic">
  399. <term><command>zic</command></term>
  400. <listitem>
  401. <para>The time zone compiler</para>
  402. <indexterm zone="ch-system-glibc zic"><primary sortas="b-zic">zic</primary></indexterm>
  403. </listitem>
  404. </varlistentry>
  405. <varlistentry id="ld.so">
  406. <term><filename class="libraryfile">ld.so</filename></term>
  407. <listitem>
  408. <para>The helper program for shared library executables</para>
  409. <indexterm zone="ch-system-glibc ld.so"><primary sortas="c-ld.so">ld.so</primary></indexterm>
  410. </listitem>
  411. </varlistentry>
  412. <varlistentry id="libBrokenLocale">
  413. <term><filename class="libraryfile">libBrokenLocale</filename></term>
  414. <listitem>
  415. <para>Used by programs, such as Mozilla, to solve broken locales</para>
  416. <indexterm zone="ch-system-glibc libBrokenLocale"><primary sortas="c-libBrokenLocale">libBrokenLocale</primary></indexterm>
  417. </listitem>
  418. </varlistentry>
  419. <varlistentry id="libSegFault">
  420. <term><filename class="libraryfile">libSegFault</filename></term>
  421. <listitem>
  422. <para>The segmentation fault signal handler</para>
  423. <indexterm zone="ch-system-glibc libSegFault"><primary sortas="c-libSegFault">libSegFault</primary></indexterm>
  424. </listitem>
  425. </varlistentry>
  426. <varlistentry id="libanl">
  427. <term><filename class="libraryfile">libanl</filename></term>
  428. <listitem>
  429. <para>An asynchronous name lookup library</para>
  430. <indexterm zone="ch-system-glibc libanl"><primary sortas="c-libanl">libanl</primary></indexterm>
  431. </listitem>
  432. </varlistentry>
  433. <varlistentry id="libbsd-compat">
  434. <term><filename class="libraryfile">libbsd-compat</filename></term>
  435. <listitem>
  436. <para>Provides the portability needed
  437. in order to run certain Berkey Software Distribution (BSD) programs under Linux</para>
  438. <indexterm zone="ch-system-glibc libbsd-compat"><primary sortas="c-libbsd-compat">libbsd-compat</primary></indexterm>
  439. </listitem>
  440. </varlistentry>
  441. <varlistentry id="libc">
  442. <term><filename class="libraryfile">libc</filename></term>
  443. <listitem>
  444. <para>The main C library</para>
  445. <indexterm zone="ch-system-glibc libc"><primary sortas="c-libc">libc</primary></indexterm>
  446. </listitem>
  447. </varlistentry>
  448. <varlistentry id="libcrypt">
  449. <term><filename class="libraryfile">libcrypt</filename></term>
  450. <listitem>
  451. <para>The cryptography library</para>
  452. <indexterm zone="ch-system-glibc libcrypt"><primary sortas="c-libcrypt">libcrypt</primary></indexterm>
  453. </listitem>
  454. </varlistentry>
  455. <varlistentry id="libdl">
  456. <term><filename class="libraryfile">libdl</filename></term>
  457. <listitem>
  458. <para>The dynamic linking interface library</para>
  459. <indexterm zone="ch-system-glibc libdl"><primary sortas="c-libdl">libdl</primary></indexterm>
  460. </listitem>
  461. </varlistentry>
  462. <varlistentry id="libg">
  463. <term><filename class="libraryfile">libg</filename></term>
  464. <listitem>
  465. <para>A runtime library for <command>g++</command></para>
  466. <indexterm zone="ch-system-glibc libg"><primary sortas="c-libg">libg</primary></indexterm>
  467. </listitem>
  468. </varlistentry>
  469. <varlistentry id="libieee">
  470. <term><filename class="libraryfile">libieee</filename></term>
  471. <listitem>
  472. <para>The Institute of Electrical and Electronic Engineers (IEEE) floating point library</para>
  473. <indexterm zone="ch-system-glibc libieee"><primary sortas="c-libieee">libieee</primary></indexterm>
  474. </listitem>
  475. </varlistentry>
  476. <varlistentry id="libm">
  477. <term><filename class="libraryfile">libm</filename></term>
  478. <listitem>
  479. <para>The mathematical library</para>
  480. <indexterm zone="ch-system-glibc libm"><primary sortas="c-libm">libm</primary></indexterm>
  481. </listitem>
  482. </varlistentry>
  483. <varlistentry id="libmcheck">
  484. <term><filename class="libraryfile">libmcheck</filename></term>
  485. <listitem>
  486. <para>Contains code run at boot</para>
  487. <indexterm zone="ch-system-glibc libmcheck"><primary sortas="c-libmcheck">libmcheck</primary></indexterm>
  488. </listitem>
  489. </varlistentry>
  490. <varlistentry id="libmemusage">
  491. <term><filename class="libraryfile">libmemusage</filename></term>
  492. <listitem>
  493. <para>Used by <command>memusage</command> to help collect
  494. information about the memory usage of a program</para>
  495. <indexterm zone="ch-system-glibc libmemusage"><primary sortas="c-libmemusage">libmemusage</primary></indexterm>
  496. </listitem>
  497. </varlistentry>
  498. <varlistentry id="libnsl">
  499. <term><filename class="libraryfile">libnsl</filename></term>
  500. <listitem>
  501. <para>The network services library</para>
  502. <indexterm zone="ch-system-glibc libnsl"><primary sortas="c-libnsl">libnsl</primary></indexterm>
  503. </listitem>
  504. </varlistentry>
  505. <varlistentry id="libnss">
  506. <term><filename class="libraryfile">libnss</filename></term>
  507. <listitem>
  508. <para>The Name Service Switch libraries,
  509. containing functions for resolving host names, user names, group names,
  510. aliases, services, protocols, etc.</para>
  511. <indexterm zone="ch-system-glibc libnss"><primary sortas="c-libnss">libnss</primary></indexterm>
  512. </listitem>
  513. </varlistentry>
  514. <varlistentry id="libpcprofile">
  515. <term><filename class="libraryfile">libpcprofile</filename></term>
  516. <listitem>
  517. <para>Contains profiling functions used
  518. to track the amount of CPU time spent in specific source code lines</para>
  519. <indexterm zone="ch-system-glibc libpcprofile"><primary sortas="c-libpcprofile">libpcprofile</primary></indexterm>
  520. </listitem>
  521. </varlistentry>
  522. <varlistentry id="libpthread">
  523. <term><filename class="libraryfile">libpthread</filename></term>
  524. <listitem>
  525. <para>The POSIX threads library</para>
  526. <indexterm zone="ch-system-glibc libpthread"><primary sortas="c-libpthread">libpthread</primary></indexterm>
  527. </listitem>
  528. </varlistentry>
  529. <varlistentry id="libresolv">
  530. <term><filename class="libraryfile">libresolv</filename></term>
  531. <listitem>
  532. <para>Contains functions for creating,
  533. sending, and interpreting packets to the Internet domain name servers</para>
  534. <indexterm zone="ch-system-glibc libresolv"><primary sortas="c-libresolv">libresolv</primary></indexterm>
  535. </listitem>
  536. </varlistentry>
  537. <varlistentry id="librpcsvc">
  538. <term><filename class="libraryfile">librpcsvc</filename></term>
  539. <listitem>
  540. <para>Contains functions providing miscellaneous RPC services</para>
  541. <indexterm zone="ch-system-glibc librpcsvc"><primary sortas="c-librpcsvc">librpcsvc</primary></indexterm>
  542. </listitem>
  543. </varlistentry>
  544. <varlistentry id="librt">
  545. <term><filename class="libraryfile">librt</filename></term>
  546. <listitem>
  547. <para>Contains functions providing most of the
  548. interfaces specified by the POSIX.1b Realtime Extension</para>
  549. <indexterm zone="ch-system-glibc librt"><primary sortas="c-librt">librt</primary></indexterm>
  550. </listitem>
  551. </varlistentry>
  552. <varlistentry id="libthread_db">
  553. <term><filename class="libraryfile">libthread_db</filename></term>
  554. <listitem>
  555. <para>Contains functions useful for
  556. building debuggers for multi-threaded programs</para>
  557. <indexterm zone="ch-system-glibc libthread_db"><primary sortas="c-libthread_db">libthread_db</primary></indexterm>
  558. </listitem>
  559. </varlistentry>
  560. <varlistentry id="libutil">
  561. <term><filename class="libraryfile">libutil</filename></term>
  562. <listitem>
  563. <para>Contains code for <quote>standard</quote> functions used in many different Unix utilities</para>
  564. <indexterm zone="ch-system-glibc libutil"><primary sortas="c-libutil">libutil</primary></indexterm>
  565. </listitem>
  566. </varlistentry>
  567. </variablelist>
  568. </sect2>
  569. </sect1>