glibc.xml 33 KB

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