glibc.xml 25 KB

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