glibc.xml 27 KB

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