glibc.xml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-glibc" role="wrap">
  8. <?dbhtml filename="glibc.html"?>
  9. <title>Glibc-&glibc-version;</title>
  10. <indexterm zone="ch-system-glibc">
  11. <primary sortas="a-Glibc">Glibc</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The Glibc package contains the main C library. This library provides
  16. the basic routines for allocating memory, searching directories, opening and
  17. closing files, reading and writing files, string handling, pattern matching,
  18. arithmetic, and so on.</para>
  19. <segmentedlist>
  20. <segtitle>&buildtime;</segtitle>
  21. <segtitle>&diskspace;</segtitle>
  22. <seglistitem>
  23. <seg>16.7 SBU</seg>
  24. <seg>500 MB</seg>
  25. </seglistitem>
  26. </segmentedlist>
  27. </sect2>
  28. <sect2 role="installation">
  29. <title>Installation of Glibc</title>
  30. <note>
  31. <para>Some packages outside of LFS suggest installing GNU libiconv in
  32. order to translate data from one encoding to another. The project's
  33. home page (<ulink url="http://www.gnu.org/software/libiconv/"/>) says
  34. <quote>This library provides an <function>iconv()</function>
  35. implementation, for use on systems which don't have one, or whose
  36. implementation cannot convert from/to Unicode.</quote> Glibc provides
  37. an <function>iconv()</function> implementation and can convert from/to
  38. Unicode, therefore libiconv is not required on an LFS system.</para>
  39. </note>
  40. <para>The Glibc build system is self-contained and will install
  41. perfectly, even though the compiler specs file and linker are still
  42. pointing at <filename class="directory">/tools</filename>. The specs
  43. and linker cannot be adjusted before the Glibc install because the
  44. Glibc autoconf tests would give false results and defeat the goal
  45. of achieving a clean build.</para>
  46. <para>The glibc-libidn tarball adds support for internationalized domain
  47. names (IDN) to Glibc. Many programs that support IDN require the full
  48. <filename class="libraryfile">libidn</filename> library (see
  49. <ulink url="&blfs-root;view/svn/general/libidn.html"/>), not this add-on.
  50. Unpack the tarball from within the Glibc source directory:</para>
  51. <screen><userinput>tar -xf ../glibc-libidn-&glibc-version;.tar.bz2</userinput></screen>
  52. <para>Apply the following patch to fix build errors in packages that include
  53. <filename class="headerfile">linux/types.h</filename> after <filename
  54. class="headerfile">sys/kd.h</filename>:</para>
  55. <screen><userinput>patch -Np1 -i ../&glibc-linux_types-patch;</userinput></screen>
  56. <para>In the vi_VN.TCVN locale, <command>bash</command> enters an infinite loop
  57. at startup. It is unknown whether this is a <command>bash</command> bug or a
  58. Glibc problem. Disable installation of this locale in order to avoid the
  59. problem:</para>
  60. <screen><userinput>sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED</userinput></screen>
  61. <para>When running <command>make install</command>, a script called
  62. <filename>test-installation.pl</filename> performs a small sanity test on
  63. our newly installed Glibc. However, because our toolchain still points to
  64. the <filename class="directory">/tools</filename> directory, the sanity
  65. test would be carried out against the wrong Glibc. We can force the script
  66. to check the Glibc we have just installed with the following:</para>
  67. <screen><userinput>sed -i \
  68. 's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|' \
  69. scripts/test-installation.pl</userinput></screen>
  70. <para>The Glibc documentation recommends building Glibc outside of the source
  71. directory in a dedicated build directory:</para>
  72. <screen><userinput>mkdir -v ../glibc-build
  73. cd ../glibc-build</userinput></screen>
  74. <para>Prepare Glibc for compilation:</para>
  75. <screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
  76. --disable-profile --enable-add-ons \
  77. --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>
  78. <variablelist>
  79. <title>The meaning of the new configure options:</title>
  80. <varlistentry>
  81. <term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
  82. <listitem>
  83. <para>This changes the location of the <command>pt_chown</command>
  84. program from its default of <filename
  85. class="directory">/usr/libexec</filename> to <filename
  86. class="directory">/usr/lib/glibc</filename>.</para>
  87. </listitem>
  88. </varlistentry>
  89. </variablelist>
  90. <para>Compile the package:</para>
  91. <screen><userinput>make</userinput></screen>
  92. <important>
  93. <para>In this section, the test suite for Glibc is considered critical.
  94. Do not skip it under any circumstance.</para>
  95. </important>
  96. <para>Test the results:</para>
  97. <screen><userinput>make -k check &gt;glibc-check-log 2&gt;&amp;1
  98. grep Error glibc-check-log</userinput></screen>
  99. <para>On at least i686 you can expect to see failures in the
  100. <emphasis>test-double </emphasis> and <emphasis>test-idouble</emphasis>
  101. math tests with gcc-&gcc-version;, as well as an expected (ignored)
  102. failure in <emphasis> posix/annexc</emphasis>. These two failures in
  103. the math tests appear to be harmless.</para>
  104. <para>The Glibc test suite is highly dependent on certain functions of
  105. the host system, in particular the kernel. In certain circumstances,
  106. some failures are unavoidable. This is a list of the most common
  107. issues:</para>
  108. <itemizedlist>
  109. <listitem>
  110. <para>The <emphasis>math</emphasis> tests sometimes fail in other
  111. tests when running on systems where the CPU is not a relatively
  112. new genuine Intel or authentic AMD. Certain optimization settings
  113. are also known to be a factor here.</para>
  114. </listitem>
  115. <listitem>
  116. <para>The <emphasis>gettext</emphasis> test sometimes fails due to
  117. host system issues. The exact reasons are not yet clear.</para>
  118. </listitem>
  119. <listitem>
  120. <para>If you have mounted the LFS partition with the
  121. <parameter>noatime</parameter> option, the <emphasis>atime</emphasis>
  122. test will fail. As mentioned in <xref linkend="space-mounting"/>, do not
  123. use the <parameter>noatime</parameter> option while building LFS.</para>
  124. </listitem>
  125. <listitem>
  126. <para>When running on older and slower hardware, some tests
  127. can fail because of test timeouts being exceeded.</para>
  128. </listitem>
  129. </itemizedlist>
  130. <para>Though it is a harmless message, the install stage of Glibc will
  131. complain about the absence of <filename>/etc/ld.so.conf</filename>.
  132. Prevent this warning with:</para>
  133. <screen><userinput>touch /etc/ld.so.conf</userinput></screen>
  134. <para>Install the package:</para>
  135. <screen><userinput>make install</userinput></screen>
  136. <para>The locales that can make the system respond in a different language
  137. were not installed by the above command. None of the locales are required,
  138. but, if some of them are misssing, testuites of the future packages would
  139. skip important testcases.</para>
  140. <para>Individual locales can be installed using the
  141. <command>localedef</command> program. E.g., the first
  142. <command>localedef</command> command below combines the
  143. <filename>/usr/share/i18n/locales/de_DE</filename>
  144. charset-independent locale definition with the
  145. <filename>/usr/share/i18n/charmaps/ISO-8859-1.gz</filename>
  146. charmap definition and appends the result to the
  147. <filename>/usr/lib/locale/locale-archive</filename> file.
  148. The following instructions will install the minimum set of
  149. locales necessary for the optimal coverage of tests:</para>
  150. <screen role="nodump"><userinput>mkdir -pv /usr/lib/locale
  151. localedef -i de_DE -f ISO-8859-1 de_DE
  152. localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
  153. localedef -i en_HK -f ISO-8859-1 en_HK
  154. localedef -i en_PH -f ISO-8859-1 en_PH
  155. localedef -i en_US -f ISO-8859-1 en_US
  156. localedef -i en_US -f UTF-8 en_US.UTF-8
  157. localedef -i es_MX -f ISO-8859-1 es_MX
  158. localedef -i fa_IR -f UTF-8 fa_IR
  159. localedef -i fr_FR -f ISO-8859-1 fr_FR
  160. localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
  161. localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
  162. localedef -i it_IT -f ISO-8859-1 it_IT
  163. localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
  164. <para>In addition, install the locale for your own country, language and
  165. character set.</para>
  166. <para>Alternatively, install all locales listed in the
  167. <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
  168. (it includes every locale listed above and many more) at once with the
  169. following time-consuming command:</para>
  170. <screen><userinput>make localedata/install-locales</userinput></screen>
  171. <para>Then use the <command>localedef</command> command to create and
  172. install locales not listed in the
  173. <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
  174. in the unlikely case if you need them.</para>
  175. <!-- The Live CD patches the localedata/SUPPORTED file instead of
  176. running localedef, the results are equivalent -->
  177. </sect2>
  178. <sect2 id="conf-glibc" role="configuration">
  179. <title>Configuring Glibc</title>
  180. <indexterm zone="conf-glibc">
  181. <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
  182. </indexterm>
  183. <indexterm zone="conf-glibc">
  184. <primary sortas="e-/etc/localtime">/etc/localtime</primary>
  185. </indexterm>
  186. <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
  187. because, although Glibc provides defaults when this file is missing or corrupt,
  188. the Glibc defaults do not work well in a networked environment. The time zone
  189. also needs to be configured.</para>
  190. <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
  191. following:</para>
  192. <screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
  193. <literal># Begin /etc/nsswitch.conf
  194. passwd: files
  195. group: files
  196. shadow: files
  197. hosts: files dns
  198. networks: files
  199. protocols: files
  200. services: files
  201. ethers: files
  202. rpc: files
  203. # End /etc/nsswitch.conf</literal>
  204. EOF</userinput></screen>
  205. <para>To determine the local time zone, run the following script:</para>
  206. <screen role="nodump"><userinput>tzselect</userinput></screen>
  207. <para>After answering a few questions about the location, the script will
  208. output the name of the time zone (e.g., <emphasis>EST5EDT</emphasis> or
  209. <emphasis>Canada/Eastern</emphasis>). Then create the
  210. <filename>/etc/localtime</filename> file by running:</para>
  211. <screen><userinput>cp -v --remove-destination /usr/share/zoneinfo/<replaceable>&lt;xxx&gt;</replaceable> \
  212. /etc/localtime</userinput></screen>
  213. <para>Replace <replaceable>&lt;xxx&gt;</replaceable> with the name of the time zone
  214. that <command>tzselect</command> provided (e.g., Canada/Eastern).</para>
  215. <variablelist>
  216. <title>The meaning of the cp option:</title>
  217. <varlistentry>
  218. <term><parameter>--remove-destination</parameter></term>
  219. <listitem>
  220. <para>This is needed to force removal of the already existing symbolic
  221. link. The reason for copying the file instead of using a symlink is to
  222. cover the situation where <filename class="directory">/usr</filename>
  223. is on a separate partition. This could be important when booted into
  224. single user mode.</para>
  225. </listitem>
  226. </varlistentry>
  227. </variablelist>
  228. </sect2>
  229. <sect2 id="conf-ld" role="configuration">
  230. <title>Configuring the Dynamic Loader</title>
  231. <indexterm zone="conf-ld">
  232. <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
  233. </indexterm>
  234. <para>By default, the dynamic loader (<filename
  235. class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
  236. <filename class="directory">/lib</filename> and <filename
  237. class="directory">/usr/lib</filename> for dynamic libraries that are
  238. needed by programs as they are run. However, if there are libraries in
  239. directories other than <filename class="directory">/lib</filename> and
  240. <filename class="directory">/usr/lib</filename>, these need to be added
  241. to the <filename>/etc/ld.so.conf</filename> file in order for the
  242. dynamic loader to find them. Two directories that are commonly known
  243. to contain additional libraries are <filename
  244. class="directory">/usr/local/lib</filename> and <filename
  245. class="directory">/opt/lib</filename>, so add those directories to the
  246. dynamic loader's search path.</para>
  247. <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
  248. following:</para>
  249. <screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
  250. <literal># Begin /etc/ld.so.conf
  251. /usr/local/lib
  252. /opt/lib
  253. # End /etc/ld.so.conf</literal>
  254. EOF</userinput></screen>
  255. </sect2>
  256. <sect2 id="contents-glibc" role="content">
  257. <title>Contents of Glibc</title>
  258. <segmentedlist>
  259. <segtitle>Installed programs</segtitle>
  260. <segtitle>Installed libraries</segtitle>
  261. <seglistitem>
  262. <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
  263. ldd, lddlibc4, locale, localedef, mtrace, nscd, nscd_nischeck,
  264. pcprofiledump, pt_chown, rpcgen, rpcinfo, sln, sprof, tzselect, xtrace,
  265. zdump, and zic</seg>
  266. <seg>ld.so, libBrokenLocale.{a,so}, libSegFault.so, libanl.{a,so},
  267. libbsd-compat.a, libc.{a,so}, libcidn.so, libcrypt.{a,so}, libdl.{a,so},
  268. libg.a, libieee.a, libm.{a,so}, libmcheck.a, libmemusage.so, libnsl.a,
  269. libnss_compat.so, libnss_dns.so, libnss_files.so, libnss_hesiod.so,
  270. libnss_nis.so, libnss_nisplus.so, libpcprofile.so, libpthread.{a,so},
  271. libresolv.{a,so}, librpcsvc.a, librt.{a,so}, libthread_db.so, and
  272. libutil.{a,so}</seg>
  273. </seglistitem>
  274. </segmentedlist>
  275. <variablelist>
  276. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  277. <?dbfo list-presentation="list"?>
  278. <?dbhtml list-presentation="table"?>
  279. <varlistentry id="catchsegv">
  280. <term><command>catchsegv</command></term>
  281. <listitem>
  282. <para>Can be used to create a stack trace when a program
  283. terminates with a segmentation fault</para>
  284. <indexterm zone="ch-system-glibc catchsegv">
  285. <primary sortas="b-catchsegv">catchsegv</primary>
  286. </indexterm>
  287. </listitem>
  288. </varlistentry>
  289. <varlistentry id="gencat">
  290. <term><command>gencat</command></term>
  291. <listitem>
  292. <para>Generates message catalogues</para>
  293. <indexterm zone="ch-system-glibc gencat">
  294. <primary sortas="b-gencat">gencat</primary>
  295. </indexterm>
  296. </listitem>
  297. </varlistentry>
  298. <varlistentry id="getconf">
  299. <term><command>getconf</command></term>
  300. <listitem>
  301. <para>Displays the system configuration values for file system
  302. specific variables</para>
  303. <indexterm zone="ch-system-glibc getconf">
  304. <primary sortas="b-getconf">getconf</primary>
  305. </indexterm>
  306. </listitem>
  307. </varlistentry>
  308. <varlistentry id="getent">
  309. <term><command>getent</command></term>
  310. <listitem>
  311. <para>Gets entries from an administrative database</para>
  312. <indexterm zone="ch-system-glibc getent">
  313. <primary sortas="b-getent">getent</primary>
  314. </indexterm>
  315. </listitem>
  316. </varlistentry>
  317. <varlistentry id="iconv">
  318. <term><command>iconv</command></term>
  319. <listitem>
  320. <para>Performs character set conversion</para>
  321. <indexterm zone="ch-system-glibc iconv">
  322. <primary sortas="b-iconv">iconv</primary>
  323. </indexterm>
  324. </listitem>
  325. </varlistentry>
  326. <varlistentry id="iconvconfig">
  327. <term><command>iconvconfig</command></term>
  328. <listitem>
  329. <para>Creates fastloading <command>iconv</command> module configuration
  330. files</para>
  331. <indexterm zone="ch-system-glibc iconvconfig">
  332. <primary sortas="b-iconvconfig">iconvconfig</primary>
  333. </indexterm>
  334. </listitem>
  335. </varlistentry>
  336. <varlistentry id="ldconfig">
  337. <term><command>ldconfig</command></term>
  338. <listitem>
  339. <para>Configures the dynamic linker runtime bindings</para>
  340. <indexterm zone="ch-system-glibc ldconfig">
  341. <primary sortas="b-ldconfig">ldconfig</primary>
  342. </indexterm>
  343. </listitem>
  344. </varlistentry>
  345. <varlistentry id="ldd">
  346. <term><command>ldd</command></term>
  347. <listitem>
  348. <para>Reports which shared libraries are required
  349. by each given program or shared library</para>
  350. <indexterm zone="ch-system-glibc ldd">
  351. <primary sortas="b-ldd">ldd</primary>
  352. </indexterm>
  353. </listitem>
  354. </varlistentry>
  355. <varlistentry id="lddlibc4">
  356. <term><command>lddlibc4</command></term>
  357. <listitem>
  358. <para>Assists <command>ldd</command> with object files</para>
  359. <indexterm zone="ch-system-glibc lddlibc4">
  360. <primary sortas="b-lddlibc4">lddlibc4</primary>
  361. </indexterm>
  362. </listitem>
  363. </varlistentry>
  364. <varlistentry id="locale">
  365. <term><command>locale</command></term>
  366. <listitem>
  367. <para>Prints various information about the current locale</para>
  368. <indexterm zone="ch-system-glibc locale">
  369. <primary sortas="b-locale">locale</primary>
  370. </indexterm>
  371. </listitem>
  372. </varlistentry>
  373. <varlistentry id="localedef">
  374. <term><command>localedef</command></term>
  375. <listitem>
  376. <para>Compiles locale specifications</para>
  377. <indexterm zone="ch-system-glibc localedef">
  378. <primary sortas="b-localedef">localedef</primary>
  379. </indexterm>
  380. </listitem>
  381. </varlistentry>
  382. <varlistentry id="mtrace">
  383. <term><command>mtrace</command></term>
  384. <listitem>
  385. <para>Reads and interprets a memory trace file and displays a summary
  386. in human-readable format</para>
  387. <indexterm zone="ch-system-glibc mtrace">
  388. <primary sortas="b-mtrace">mtrace</primary>
  389. </indexterm>
  390. </listitem>
  391. </varlistentry>
  392. <varlistentry id="nscd">
  393. <term><command>nscd</command></term>
  394. <listitem>
  395. <para>A daemon that provides a cache for the most common name
  396. service requests</para>
  397. <indexterm zone="ch-system-glibc nscd">
  398. <primary sortas="b-nscd">nscd</primary>
  399. </indexterm>
  400. </listitem>
  401. </varlistentry>
  402. <varlistentry id="nscd_nischeck">
  403. <term><command>nscd_nischeck</command></term>
  404. <listitem>
  405. <para>Checks whether or not secure mode is necessary for NIS+
  406. lookup</para>
  407. <indexterm zone="ch-system-glibc nscd_nischeck">
  408. <primary sortas="b-nscd_nischeck">nscd_nischeck</primary>
  409. </indexterm>
  410. </listitem>
  411. </varlistentry>
  412. <varlistentry id="pcprofiledump">
  413. <term><command>pcprofiledump</command></term>
  414. <listitem>
  415. <para>Dumps information generated by PC profiling</para>
  416. <indexterm zone="ch-system-glibc pcprofiledump">
  417. <primary sortas="b-pcprofiledump">pcprofiledump</primary>
  418. </indexterm>
  419. </listitem>
  420. </varlistentry>
  421. <varlistentry id="pt_chown">
  422. <term><command>pt_chown</command></term>
  423. <listitem>
  424. <para>A helper program for <command>grantpt</command> to set the owner,
  425. group and access permissions of a slave pseudo terminal</para>
  426. <indexterm zone="ch-system-glibc pt_chown">
  427. <primary sortas="b-pt_chown">pt_chown</primary>
  428. </indexterm>
  429. </listitem>
  430. </varlistentry>
  431. <varlistentry id="rpcgen">
  432. <term><command>rpcgen</command></term>
  433. <listitem>
  434. <para>Generates C code to implement the Remote Procecure Call (RPC)
  435. protocol</para>
  436. <indexterm zone="ch-system-glibc rpcgen">
  437. <primary sortas="b-rpcgen">rpcgen</primary>
  438. </indexterm>
  439. </listitem>
  440. </varlistentry>
  441. <varlistentry id="rpcinfo">
  442. <term><command>rpcinfo</command></term>
  443. <listitem>
  444. <para>Makes an RPC call to an RPC server</para>
  445. <indexterm zone="ch-system-glibc rpcinfo">
  446. <primary sortas="b-rpcinfo">rpcinfo</primary>
  447. </indexterm>
  448. </listitem>
  449. </varlistentry>
  450. <varlistentry id="sln">
  451. <term><command>sln</command></term>
  452. <listitem>
  453. <para>A statically linked <command>ln</command> program</para>
  454. <indexterm zone="ch-system-glibc sln">
  455. <primary sortas="b-sln">sln</primary>
  456. </indexterm>
  457. </listitem>
  458. </varlistentry>
  459. <varlistentry id="sprof">
  460. <term><command>sprof</command></term>
  461. <listitem>
  462. <para>Reads and displays shared object profiling data</para>
  463. <indexterm zone="ch-system-glibc sprof">
  464. <primary sortas="b-sprof">sprof</primary>
  465. </indexterm>
  466. </listitem>
  467. </varlistentry>
  468. <varlistentry id="tzselect">
  469. <term><command>tzselect</command></term>
  470. <listitem>
  471. <para>Asks the user about the location of the system and reports
  472. the corresponding time zone description</para>
  473. <indexterm zone="ch-system-glibc tzselect">
  474. <primary sortas="b-tzselect">tzselect</primary>
  475. </indexterm>
  476. </listitem>
  477. </varlistentry>
  478. <varlistentry id="xtrace">
  479. <term><command>xtrace</command></term>
  480. <listitem>
  481. <para>Traces the execution of a program by printing the currently
  482. executed function</para>
  483. <indexterm zone="ch-system-glibc xtrace">
  484. <primary sortas="b-xtrace">xtrace</primary>
  485. </indexterm>
  486. </listitem>
  487. </varlistentry>
  488. <varlistentry id="zdump">
  489. <term><command>zdump</command></term>
  490. <listitem>
  491. <para>The time zone dumper</para>
  492. <indexterm zone="ch-system-glibc zdump">
  493. <primary sortas="b-zdump">zdump</primary>
  494. </indexterm>
  495. </listitem>
  496. </varlistentry>
  497. <varlistentry id="zic">
  498. <term><command>zic</command></term>
  499. <listitem>
  500. <para>The time zone compiler</para>
  501. <indexterm zone="ch-system-glibc zic">
  502. <primary sortas="b-zic">zic</primary>
  503. </indexterm>
  504. </listitem>
  505. </varlistentry>
  506. <varlistentry id="ld.so">
  507. <term><filename class="libraryfile">ld.so</filename></term>
  508. <listitem>
  509. <para>The helper program for shared library executables</para>
  510. <indexterm zone="ch-system-glibc ld.so">
  511. <primary sortas="c-ld.so">ld.so</primary>
  512. </indexterm>
  513. </listitem>
  514. </varlistentry>
  515. <varlistentry id="libBrokenLocale">
  516. <term><filename class="libraryfile">libBrokenLocale</filename></term>
  517. <listitem>
  518. <para>Used internally by Glibc as a gross hack to get broken programs
  519. (e.g., some Motif applications) running. See comments in
  520. <filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename>
  521. for more information</para>
  522. <indexterm zone="ch-system-glibc libBrokenLocale">
  523. <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
  524. </indexterm>
  525. </listitem>
  526. </varlistentry>
  527. <varlistentry id="libSegFault">
  528. <term><filename class="libraryfile">libSegFault</filename></term>
  529. <listitem>
  530. <para>The segmentation fault signal handler, used by
  531. <command>catchsegv</command></para>
  532. <indexterm zone="ch-system-glibc libSegFault">
  533. <primary sortas="c-libSegFault">libSegFault</primary>
  534. </indexterm>
  535. </listitem>
  536. </varlistentry>
  537. <varlistentry id="libanl">
  538. <term><filename class="libraryfile">libanl</filename></term>
  539. <listitem>
  540. <para>An asynchronous name lookup library</para>
  541. <indexterm zone="ch-system-glibc libanl">
  542. <primary sortas="c-libanl">libanl</primary>
  543. </indexterm>
  544. </listitem>
  545. </varlistentry>
  546. <varlistentry id="libbsd-compat">
  547. <term><filename class="libraryfile">libbsd-compat</filename></term>
  548. <listitem>
  549. <para>Provides the portability needed in order to run certain Berkey
  550. Software Distribution (BSD) programs under Linux</para>
  551. <indexterm zone="ch-system-glibc libbsd-compat">
  552. <primary sortas="c-libbsd-compat">libbsd-compat</primary>
  553. </indexterm>
  554. </listitem>
  555. </varlistentry>
  556. <varlistentry id="libc">
  557. <term><filename class="libraryfile">libc</filename></term>
  558. <listitem>
  559. <para>The main C library</para>
  560. <indexterm zone="ch-system-glibc libc">
  561. <primary sortas="c-libc">libc</primary>
  562. </indexterm>
  563. </listitem>
  564. </varlistentry>
  565. <varlistentry id="libcidn">
  566. <term><filename class="libraryfile">libcidn</filename></term>
  567. <listitem>
  568. <para>Used internally by Glibc for handling internationalized domain
  569. names in the <function>getaddrinfo()</function> function</para>
  570. <indexterm zone="ch-system-glibc libcrypt">
  571. <primary sortas="c-libcrypt">libcrypt</primary>
  572. </indexterm>
  573. </listitem>
  574. </varlistentry>
  575. <varlistentry id="libcrypt">
  576. <term><filename class="libraryfile">libcrypt</filename></term>
  577. <listitem>
  578. <para>The cryptography library</para>
  579. <indexterm zone="ch-system-glibc libcrypt">
  580. <primary sortas="c-libcrypt">libcrypt</primary>
  581. </indexterm>
  582. </listitem>
  583. </varlistentry>
  584. <varlistentry id="libdl">
  585. <term><filename class="libraryfile">libdl</filename></term>
  586. <listitem>
  587. <para>The dynamic linking interface library</para>
  588. <indexterm zone="ch-system-glibc libdl">
  589. <primary sortas="c-libdl">libdl</primary>
  590. </indexterm>
  591. </listitem>
  592. </varlistentry>
  593. <varlistentry id="libg">
  594. <term><filename class="libraryfile">libg</filename></term>
  595. <listitem>
  596. <para>Dummy library containing no functions. Previously was a runtime
  597. library for <command>g++</command></para>
  598. <indexterm zone="ch-system-glibc libg">
  599. <primary sortas="c-libg">libg</primary>
  600. </indexterm>
  601. </listitem>
  602. </varlistentry>
  603. <varlistentry id="libieee">
  604. <term><filename class="libraryfile">libieee</filename></term>
  605. <listitem>
  606. <para>Linking in this module forces error handling rules for math
  607. functions as defined by the Institute of Electrical and Electronic
  608. Engineers (IEEE). The default is POSIX.1 error handling</para>
  609. <indexterm zone="ch-system-glibc libieee">
  610. <primary sortas="c-libieee">libieee</primary>
  611. </indexterm>
  612. </listitem>
  613. </varlistentry>
  614. <varlistentry id="libm">
  615. <term><filename class="libraryfile">libm</filename></term>
  616. <listitem>
  617. <para>The mathematical library</para>
  618. <indexterm zone="ch-system-glibc libm">
  619. <primary sortas="c-libm">libm</primary>
  620. </indexterm>
  621. </listitem>
  622. </varlistentry>
  623. <varlistentry id="libmcheck">
  624. <term><filename class="libraryfile">libmcheck</filename></term>
  625. <listitem>
  626. <para>Turns on memory allocation checking when linked to</para>
  627. <indexterm zone="ch-system-glibc libmcheck">
  628. <primary sortas="c-libmcheck">libmcheck</primary>
  629. </indexterm>
  630. </listitem>
  631. </varlistentry>
  632. <varlistentry id="libmemusage">
  633. <term><filename class="libraryfile">libmemusage</filename></term>
  634. <listitem>
  635. <para>Used by <command>memusage</command> to help collect
  636. information about the memory usage of a program</para>
  637. <indexterm zone="ch-system-glibc libmemusage">
  638. <primary sortas="c-libmemusage">libmemusage</primary>
  639. </indexterm>
  640. </listitem>
  641. </varlistentry>
  642. <varlistentry id="libnsl">
  643. <term><filename class="libraryfile">libnsl</filename></term>
  644. <listitem>
  645. <para>The network services library</para>
  646. <indexterm zone="ch-system-glibc libnsl">
  647. <primary sortas="c-libnsl">libnsl</primary>
  648. </indexterm>
  649. </listitem>
  650. </varlistentry>
  651. <varlistentry id="libnss">
  652. <term><filename class="libraryfile">libnss</filename></term>
  653. <listitem>
  654. <para>The Name Service Switch libraries, containing functions for
  655. resolving host names, user names, group names, aliases, services,
  656. protocols, etc.</para>
  657. <indexterm zone="ch-system-glibc libnss">
  658. <primary sortas="c-libnss">libnss</primary>
  659. </indexterm>
  660. </listitem>
  661. </varlistentry>
  662. <varlistentry id="libpcprofile">
  663. <term><filename class="libraryfile">libpcprofile</filename></term>
  664. <listitem>
  665. <para>Contains profiling functions used to track the amount of CPU
  666. time spent in specific source code lines</para>
  667. <indexterm zone="ch-system-glibc libpcprofile">
  668. <primary sortas="c-libpcprofile">libpcprofile</primary>
  669. </indexterm>
  670. </listitem>
  671. </varlistentry>
  672. <varlistentry id="libpthread">
  673. <term><filename class="libraryfile">libpthread</filename></term>
  674. <listitem>
  675. <para>The POSIX threads library</para>
  676. <indexterm zone="ch-system-glibc libpthread">
  677. <primary sortas="c-libpthread">libpthread</primary>
  678. </indexterm>
  679. </listitem>
  680. </varlistentry>
  681. <varlistentry id="libresolv">
  682. <term><filename class="libraryfile">libresolv</filename></term>
  683. <listitem>
  684. <para>Contains functions for creating, sending, and interpreting
  685. packets to the Internet domain name servers</para>
  686. <indexterm zone="ch-system-glibc libresolv">
  687. <primary sortas="c-libresolv">libresolv</primary>
  688. </indexterm>
  689. </listitem>
  690. </varlistentry>
  691. <varlistentry id="librpcsvc">
  692. <term><filename class="libraryfile">librpcsvc</filename></term>
  693. <listitem>
  694. <para>Contains functions providing miscellaneous RPC services</para>
  695. <indexterm zone="ch-system-glibc librpcsvc">
  696. <primary sortas="c-librpcsvc">librpcsvc</primary>
  697. </indexterm>
  698. </listitem>
  699. </varlistentry>
  700. <varlistentry id="librt">
  701. <term><filename class="libraryfile">librt</filename></term>
  702. <listitem>
  703. <para>Contains functions providing most of the interfaces specified
  704. by the POSIX.1b Realtime Extension</para>
  705. <indexterm zone="ch-system-glibc librt">
  706. <primary sortas="c-librt">librt</primary>
  707. </indexterm>
  708. </listitem>
  709. </varlistentry>
  710. <varlistentry id="libthread_db">
  711. <term><filename class="libraryfile">libthread_db</filename></term>
  712. <listitem>
  713. <para>Contains functions useful for building debuggers for
  714. multi-threaded programs</para>
  715. <indexterm zone="ch-system-glibc libthread_db">
  716. <primary sortas="c-libthread_db">libthread_db</primary>
  717. </indexterm>
  718. </listitem>
  719. </varlistentry>
  720. <varlistentry id="libutil">
  721. <term><filename class="libraryfile">libutil</filename></term>
  722. <listitem>
  723. <para>Contains code for <quote>standard</quote> functions used in
  724. many different Unix utilities</para>
  725. <indexterm zone="ch-system-glibc libutil">
  726. <primary sortas="c-libutil">libutil</primary>
  727. </indexterm>
  728. </listitem>
  729. </varlistentry>
  730. </variablelist>
  731. </sect2>
  732. </sect1>