glibc.xml 33 KB

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