glibc.xml 24 KB

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