glibc.xml 34 KB

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