glibc.xml 25 KB

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