glibc.xml 32 KB

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