glibc.xml 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935
  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-fin-sbu;</seg>
  29. <seg>&glibc-fin-du;</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>Installation of Glibc</title>
  35. <para>Some of the Glibc programs use the non-FHS compliant
  36. <filename class="directory">/var/db</filename> directory to store
  37. their runtime data. Apply the following patch to make such programs
  38. store their runtime data in the FHS-compliant locations:</para>
  39. <screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
  40. <para>The Glibc documentation recommends building Glibc
  41. in a dedicated build directory:</para>
  42. <screen><userinput remap="pre">mkdir -v build
  43. cd build</userinput></screen>
  44. <para>Prepare Glibc for compilation:</para>
  45. <screen><userinput remap="configure">../configure --prefix=/usr \
  46. --disable-werror \
  47. --enable-kernel=&min-kernel; \
  48. --enable-stack-protector=strong \
  49. --with-headers=/usr/include \
  50. libc_cv_slibdir=/lib</userinput></screen>
  51. <variablelist>
  52. <title>The meaning of the configure options:</title>
  53. <varlistentry>
  54. <term><parameter>--disable-werror</parameter></term>
  55. <listitem>
  56. <para>This option disables the -Werror option passed to
  57. GCC. This is necessary for running the test suite.</para>
  58. </listitem>
  59. </varlistentry>
  60. <varlistentry>
  61. <term><parameter>--enable-kernel=&min-kernel;</parameter></term>
  62. <listitem>
  63. <para>This option tells the build system that this glibc may
  64. be used with kernels as old as &min-kernel;. This means generating
  65. workarounds in case a system call introduced in a later version
  66. cannot be used.</para>
  67. </listitem>
  68. </varlistentry>
  69. <varlistentry>
  70. <term><parameter>--enable-stack-protector=strong</parameter></term>
  71. <listitem>
  72. <para>This option increases system security by adding
  73. extra code to check for buffer overflows, such as stack
  74. smashing attacks.</para>
  75. </listitem>
  76. </varlistentry>
  77. <!-- do we need this one? -->
  78. <varlistentry>
  79. <term><parameter>--with-headers=/usr/include</parameter></term>
  80. <listitem>
  81. <para>This option tells the build system where to find the
  82. kernel API headers.</para>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry>
  86. <term><parameter>libc_cv_slibdir=/lib</parameter></term>
  87. <listitem>
  88. <para>This variable sets the correct library for all
  89. systems. We do not want lib64 to be used.</para>
  90. </listitem>
  91. </varlistentry>
  92. </variablelist>
  93. <para>Compile the package:</para>
  94. <screen><userinput remap="make">make</userinput></screen>
  95. <important>
  96. <para>In this section, the test suite for Glibc is considered critical.
  97. Do not skip it under any circumstance.</para>
  98. </important>
  99. <para>Generally a few tests do not pass. The test failures listed below
  100. are usually safe to ignore.</para>
  101. <!-- Use remap="make" here to work around a jhalfs issue. -->
  102. <screen><userinput remap="make">case $(uname -m) in
  103. i?86) ln -sfnv $PWD/elf/ld-linux.so.2 /lib ;;
  104. x86_64) ln -sfnv $PWD/elf/ld-linux-x86-64.so.2 /lib ;;
  105. esac</userinput></screen>
  106. <note><para>The symbolic link above is needed to run the tests at this
  107. stage of building in the chroot environment. It will be overwritten
  108. in the install phase below.</para></note>
  109. <screen><userinput remap="test">make check</userinput></screen>
  110. <para>You may see some test failures. The Glibc test suite is
  111. somewhat dependent on the host system. This is a list of the most common
  112. issues seen for some versions of LFS:</para>
  113. <itemizedlist>
  114. <listitem>
  115. <para><emphasis>io/tst-lchmod</emphasis>
  116. is known to fail in the LFS chroot environment.</para>
  117. </listitem>
  118. <listitem>
  119. <para><emphasis>misc/tst-ttyname</emphasis>
  120. is known to fail in the LFS chroot environment.</para>
  121. </listitem>
  122. <!--
  123. <listitem>
  124. <para><emphasis>inet/tst-idna_name_classify</emphasis>
  125. is known to fail in the LFS chroot environment.</para>
  126. </listitem>
  127. <listitem>
  128. <para><emphasis>posix/tst-getaddrinfo4</emphasis> and
  129. <emphasis>posix/tst-getaddrinfo5</emphasis>
  130. may fail on some architectures.</para>
  131. </listitem>
  132. -->
  133. <listitem>
  134. <para>The <emphasis>nss/tst-nss-files-hosts-multi</emphasis>
  135. test may fail for reasons that have not been determined.</para>
  136. </listitem>
  137. <listitem>
  138. <para>The <emphasis>rt/tst-cputimer{1,2,3}</emphasis> tests depend on
  139. the host system kernel. Kernels 4.14.91&ndash;4.14.96,
  140. 4.19.13&ndash;4.19.18, and 4.20.0&ndash;4.20.5 are known to
  141. cause these tests to fail.
  142. </para>
  143. </listitem>
  144. <listitem>
  145. <para>The math tests sometimes fail when running on
  146. systems where the CPU is not a relatively new Intel or
  147. AMD processor.</para>
  148. </listitem>
  149. </itemizedlist>
  150. <para>Though it is a harmless message, the install stage of Glibc will
  151. complain about the absence of <filename>/etc/ld.so.conf</filename>.
  152. Prevent this warning with:</para>
  153. <screen><userinput remap="install">touch /etc/ld.so.conf</userinput></screen>
  154. <para>Fix the generated Makefile to skip an unneeded sanity check
  155. that fails in the LFS partial environment:
  156. </para>
  157. <screen><userinput remap="install">sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile</userinput></screen>
  158. <para>Install the package:</para>
  159. <screen><userinput remap="install">make install</userinput></screen>
  160. <para>Install the configuration file and runtime directory for
  161. <command>nscd</command>:</para>
  162. <screen><userinput remap="install">cp -v ../nscd/nscd.conf /etc/nscd.conf
  163. mkdir -pv /var/cache/nscd</userinput></screen>
  164. <para revision="systemd">Install the systemd support files for
  165. <command>nscd</command>:</para>
  166. <screen revision="systemd"><userinput remap="install">install -v -Dm644 ../nscd/nscd.tmpfiles /usr/lib/tmpfiles.d/nscd.conf
  167. install -v -Dm644 ../nscd/nscd.service /lib/systemd/system/nscd.service</userinput></screen>
  168. <para>Next, install the locales that can make the system respond in a
  169. different language. None of the locales are required, but if some of them
  170. are missing, the test suites of future packages would skip important
  171. testcases.</para>
  172. <para>Individual locales can be installed using the
  173. <command>localedef</command> program. E.g., the first
  174. <command>localedef</command> command below combines the
  175. <filename>/usr/share/i18n/locales/cs_CZ</filename>
  176. charset-independent locale definition with the
  177. <filename>/usr/share/i18n/charmaps/UTF-8.gz</filename>
  178. charmap definition and appends the result to the
  179. <filename>/usr/lib/locale/locale-archive</filename> file.
  180. The following instructions will install the minimum set of
  181. locales necessary for the optimal coverage of tests:</para>
  182. <screen role="nodump"><userinput remap="locale-test">mkdir -pv /usr/lib/locale
  183. localedef -i POSIX -f UTF-8 C.UTF-8 2> /dev/null || true
  184. localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
  185. localedef -i de_DE -f ISO-8859-1 de_DE
  186. localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
  187. localedef -i de_DE -f UTF-8 de_DE.UTF-8
  188. localedef -i el_GR -f ISO-8859-7 el_GR
  189. localedef -i en_GB -f UTF-8 en_GB.UTF-8
  190. localedef -i en_HK -f ISO-8859-1 en_HK
  191. localedef -i en_PH -f ISO-8859-1 en_PH
  192. localedef -i en_US -f ISO-8859-1 en_US
  193. localedef -i en_US -f UTF-8 en_US.UTF-8
  194. localedef -i es_MX -f ISO-8859-1 es_MX
  195. localedef -i fa_IR -f UTF-8 fa_IR
  196. localedef -i fr_FR -f ISO-8859-1 fr_FR
  197. localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
  198. localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
  199. localedef -i it_IT -f ISO-8859-1 it_IT
  200. localedef -i it_IT -f UTF-8 it_IT.UTF-8
  201. localedef -i ja_JP -f EUC-JP ja_JP
  202. localedef -i ja_JP -f SHIFT_JIS ja_JP.SIJS 2> /dev/null || true
  203. localedef -i ja_JP -f UTF-8 ja_JP.UTF-8
  204. localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R
  205. localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
  206. localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
  207. localedef -i zh_CN -f GB18030 zh_CN.GB18030
  208. localedef -i zh_HK -f BIG5-HKSCS zh_HK.BIG5-HKSCS</userinput></screen>
  209. <para>In addition, install the locale for your own country, language and
  210. character set.</para>
  211. <para>Alternatively, install all locales listed in the
  212. <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
  213. (it includes every locale listed above and many more) at once with the
  214. following time-consuming command:</para>
  215. <screen><userinput remap="locale-full">make localedata/install-locales</userinput></screen>
  216. <para>Then use the <command>localedef</command> command to create and
  217. install locales not listed in the
  218. <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
  219. in the unlikely case you need them.</para>
  220. <note><para>Glibc now uses libidn2 when resolving internationalized
  221. domain names. This is a run time dependency. If this capability
  222. is needed, the instructions for installing libidn2 are in the
  223. <ulink url="&blfs-book;general/libidn2.html">BLFS libidn2 page</ulink>.
  224. </para></note>
  225. </sect2>
  226. <sect2 id="conf-glibc" role="configuration">
  227. <title>Configuring Glibc</title>
  228. <indexterm zone="conf-glibc">
  229. <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
  230. </indexterm>
  231. <indexterm zone="conf-glibc">
  232. <primary sortas="e-/etc/localtime">/etc/localtime</primary>
  233. </indexterm>
  234. <sect3>
  235. <title>Adding nsswitch.conf</title>
  236. <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
  237. because the Glibc defaults do not work well in a networked environment.
  238. </para>
  239. <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
  240. following:</para>
  241. <screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
  242. <literal># Begin /etc/nsswitch.conf
  243. passwd: files
  244. group: files
  245. shadow: files
  246. hosts: files dns
  247. networks: files
  248. protocols: files
  249. services: files
  250. ethers: files
  251. rpc: files
  252. # End /etc/nsswitch.conf</literal>
  253. EOF</userinput></screen>
  254. </sect3>
  255. <sect3>
  256. <title>Adding time zone data</title>
  257. <para>Install and set up the time zone data with the following:</para>
  258. <screen><userinput>tar -xf ../../tzdata&tzdata-version;.tar.gz
  259. ZONEINFO=/usr/share/zoneinfo
  260. mkdir -pv $ZONEINFO/{posix,right}
  261. for tz in etcetera southamerica northamerica europe africa antarctica \
  262. asia australasia backward pacificnew systemv; do
  263. zic -L /dev/null -d $ZONEINFO ${tz}
  264. zic -L /dev/null -d $ZONEINFO/posix ${tz}
  265. zic -L leapseconds -d $ZONEINFO/right ${tz}
  266. done
  267. cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
  268. zic -d $ZONEINFO -p America/New_York
  269. unset ZONEINFO</userinput></screen>
  270. <variablelist>
  271. <title>The meaning of the zic commands:</title>
  272. <varlistentry>
  273. <term><parameter>zic -L /dev/null ...</parameter></term>
  274. <listitem>
  275. <para>This creates posix time zones without any leap seconds. It is
  276. conventional to put these in both
  277. <filename class="directory">zoneinfo</filename> and
  278. <filename class="directory">zoneinfo/posix</filename>. It is
  279. necessary to put the POSIX time zones in
  280. <filename class="directory">zoneinfo</filename>, otherwise various
  281. test-suites will report errors. On an embedded system, where space is
  282. tight and you do not intend to ever update the time zones, you could save
  283. 1.9 MB by not using the <filename class="directory">posix</filename>
  284. directory, but some applications or test-suites might produce some
  285. failures.</para>
  286. </listitem>
  287. </varlistentry>
  288. <varlistentry>
  289. <term><parameter>zic -L leapseconds ...</parameter></term>
  290. <listitem>
  291. <para>This creates right time zones, including leap seconds. On an
  292. embedded system, where space is tight and you do not intend to
  293. ever update the time zones, or care about the correct time, you could
  294. save 1.9MB by omitting the <filename class="directory">right</filename>
  295. directory.</para>
  296. </listitem>
  297. </varlistentry>
  298. <varlistentry>
  299. <term><parameter>zic ... -p ...</parameter></term>
  300. <listitem>
  301. <para>This creates the <filename>posixrules</filename> file. We use
  302. New York because POSIX requires the daylight savings time rules
  303. to be in accordance with US rules.</para>
  304. </listitem>
  305. </varlistentry>
  306. </variablelist>
  307. <para>One way to determine the local time zone is to run the following
  308. script:</para>
  309. <screen role="nodump"><userinput>tzselect</userinput></screen>
  310. <para>After answering a few questions about the location, the script will
  311. output the name of the time zone (e.g.,
  312. <emphasis>America/Edmonton</emphasis>). There are also some other possible
  313. time zones listed in <filename
  314. class='directory'>/usr/share/zoneinfo</filename> such as
  315. <emphasis>Canada/Eastern</emphasis> or <emphasis>EST5EDT</emphasis> that
  316. are not identified by the script but can be used.</para>
  317. <para>Then create the <filename>/etc/localtime</filename> file by
  318. running:</para>
  319. <screen><userinput>ln -sfv /usr/share/zoneinfo/<replaceable>&lt;xxx&gt;</replaceable> /etc/localtime</userinput></screen>
  320. <para>Replace <replaceable>&lt;xxx&gt;</replaceable> with the name of the
  321. time zone selected (e.g., Canada/Eastern).</para>
  322. </sect3>
  323. <sect3 id="conf-ld" role="configuration">
  324. <title>Configuring the Dynamic Loader</title>
  325. <indexterm zone="conf-ld">
  326. <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
  327. </indexterm>
  328. <para>By default, the dynamic loader (<filename
  329. class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
  330. <filename class="directory">/lib</filename> and <filename
  331. class="directory">/usr/lib</filename> for dynamic libraries that are
  332. needed by programs as they are run. However, if there are libraries in
  333. directories other than <filename class="directory">/lib</filename> and
  334. <filename class="directory">/usr/lib</filename>, these need to be added
  335. to the <filename>/etc/ld.so.conf</filename> file in order for the
  336. dynamic loader to find them. Two directories that are commonly known
  337. to contain additional libraries are <filename
  338. class="directory">/usr/local/lib</filename> and <filename
  339. class="directory">/opt/lib</filename>, so add those directories to the
  340. dynamic loader's search path.</para>
  341. <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
  342. following:</para>
  343. <screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
  344. <literal># Begin /etc/ld.so.conf
  345. /usr/local/lib
  346. /opt/lib
  347. </literal>
  348. EOF</userinput></screen>
  349. <para>If desired, the dynamic loader can also search a directory and
  350. include the contents of files found there. Generally the files in
  351. this include directory are one line specifying the desired library path.
  352. To add this capability run the following commands:</para>
  353. <screen role="nodump"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
  354. <literal># Add an include directory
  355. include /etc/ld.so.conf.d/*.conf
  356. </literal>
  357. EOF
  358. mkdir -pv /etc/ld.so.conf.d</userinput></screen>
  359. </sect3>
  360. </sect2>
  361. <sect2 id="contents-glibc" role="content">
  362. <title>Contents of Glibc</title>
  363. <segmentedlist>
  364. <segtitle>Installed programs</segtitle>
  365. <segtitle>Installed libraries</segtitle>
  366. <segtitle>Installed directories</segtitle>
  367. <seglistitem>
  368. <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
  369. ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd,
  370. pcprofiledump, pldd, sln, sotruss, sprof, tzselect, xtrace,
  371. zdump, and zic</seg>
  372. <seg>ld-&glibc-version;.so, libBrokenLocale.{a,so}, libSegFault.so, libanl.{a,so},
  373. libc.{a,so}, libc_nonshared.a,
  374. libcrypt.{a,so}, libdl.{a,so}, libg.a, libm.{a,so},
  375. libmcheck.a, libmemusage.so, libmvec.{a,so}, libnsl.{a,so},
  376. libnss_compat.so, libnss_dns.so, libnss_files.so, libnss_hesiod.so,
  377. libpcprofile.so, libpthread.{a,so},
  378. libpthread_nonshared.a, libresolv.{a,so}, librt.{a,so},
  379. libthread_db.so, and libutil.{a,so}</seg>
  380. <seg>/usr/include/arpa, /usr/include/bits, /usr/include/gnu,
  381. /usr/include/net, /usr/include/netash, /usr/include/netatalk,
  382. /usr/include/netax25, /usr/include/neteconet, /usr/include/netinet,
  383. /usr/include/netipx, /usr/include/netiucv, /usr/include/netpacket,
  384. /usr/include/netrom, /usr/include/netrose, /usr/include/nfs,
  385. /usr/include/protocols, /usr/include/rpc,
  386. /usr/include/sys, /usr/lib/audit, /usr/lib/gconv, /usr/lib/locale,
  387. /usr/libexec/getconf, /usr/share/i18n, /usr/share/zoneinfo,
  388. /var/cache/nscd, and /var/lib/nss_db</seg>
  389. </seglistitem>
  390. </segmentedlist>
  391. <variablelist>
  392. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  393. <?dbfo list-presentation="list"?>
  394. <?dbhtml list-presentation="table"?>
  395. <varlistentry id="catchsegv">
  396. <term><command>catchsegv</command></term>
  397. <listitem>
  398. <para>Can be used to create a stack trace when a program
  399. terminates with a segmentation fault</para>
  400. <indexterm zone="ch-system-glibc catchsegv">
  401. <primary sortas="b-catchsegv">catchsegv</primary>
  402. </indexterm>
  403. </listitem>
  404. </varlistentry>
  405. <varlistentry id="gencat">
  406. <term><command>gencat</command></term>
  407. <listitem>
  408. <para>Generates message catalogues</para>
  409. <indexterm zone="ch-system-glibc gencat">
  410. <primary sortas="b-gencat">gencat</primary>
  411. </indexterm>
  412. </listitem>
  413. </varlistentry>
  414. <varlistentry id="getconf">
  415. <term><command>getconf</command></term>
  416. <listitem>
  417. <para>Displays the system configuration values for file system
  418. specific variables</para>
  419. <indexterm zone="ch-system-glibc getconf">
  420. <primary sortas="b-getconf">getconf</primary>
  421. </indexterm>
  422. </listitem>
  423. </varlistentry>
  424. <varlistentry id="getent">
  425. <term><command>getent</command></term>
  426. <listitem>
  427. <para>Gets entries from an administrative database</para>
  428. <indexterm zone="ch-system-glibc getent">
  429. <primary sortas="b-getent">getent</primary>
  430. </indexterm>
  431. </listitem>
  432. </varlistentry>
  433. <varlistentry id="iconv">
  434. <term><command>iconv</command></term>
  435. <listitem>
  436. <para>Performs character set conversion</para>
  437. <indexterm zone="ch-system-glibc iconv">
  438. <primary sortas="b-iconv">iconv</primary>
  439. </indexterm>
  440. </listitem>
  441. </varlistentry>
  442. <varlistentry id="iconvconfig">
  443. <term><command>iconvconfig</command></term>
  444. <listitem>
  445. <para>Creates fastloading <command>iconv</command> module configuration
  446. files</para>
  447. <indexterm zone="ch-system-glibc iconvconfig">
  448. <primary sortas="b-iconvconfig">iconvconfig</primary>
  449. </indexterm>
  450. </listitem>
  451. </varlistentry>
  452. <varlistentry id="ldconfig">
  453. <term><command>ldconfig</command></term>
  454. <listitem>
  455. <para>Configures the dynamic linker runtime bindings</para>
  456. <indexterm zone="ch-system-glibc ldconfig">
  457. <primary sortas="b-ldconfig">ldconfig</primary>
  458. </indexterm>
  459. </listitem>
  460. </varlistentry>
  461. <varlistentry id="ldd">
  462. <term><command>ldd</command></term>
  463. <listitem>
  464. <para>Reports which shared libraries are required
  465. by each given program or shared library</para>
  466. <indexterm zone="ch-system-glibc ldd">
  467. <primary sortas="b-ldd">ldd</primary>
  468. </indexterm>
  469. </listitem>
  470. </varlistentry>
  471. <varlistentry id="lddlibc4">
  472. <term><command>lddlibc4</command></term>
  473. <listitem>
  474. <para>Assists <command>ldd</command> with object files</para>
  475. <indexterm zone="ch-system-glibc lddlibc4">
  476. <primary sortas="b-lddlibc4">lddlibc4</primary>
  477. </indexterm>
  478. </listitem>
  479. </varlistentry>
  480. <varlistentry id="locale">
  481. <term><command>locale</command></term>
  482. <listitem>
  483. <para>Prints various information about the current locale</para>
  484. <indexterm zone="ch-system-glibc locale">
  485. <primary sortas="b-locale">locale</primary>
  486. </indexterm>
  487. </listitem>
  488. </varlistentry>
  489. <varlistentry id="localedef">
  490. <term><command>localedef</command></term>
  491. <listitem>
  492. <para>Compiles locale specifications</para>
  493. <indexterm zone="ch-system-glibc localedef">
  494. <primary sortas="b-localedef">localedef</primary>
  495. </indexterm>
  496. </listitem>
  497. </varlistentry>
  498. <varlistentry id="makedb">
  499. <term><command>makedb</command></term>
  500. <listitem>
  501. <para>Creates a simple database from textual input</para>
  502. <indexterm zone="ch-system-glibc makedb">
  503. <primary sortas="b-makedb">makedb</primary>
  504. </indexterm>
  505. </listitem>
  506. </varlistentry>
  507. <varlistentry id="mtrace">
  508. <term><command>mtrace</command></term>
  509. <listitem>
  510. <para>Reads and interprets a memory trace file and displays a summary
  511. in human-readable format</para>
  512. <indexterm zone="ch-system-glibc mtrace">
  513. <primary sortas="b-mtrace">mtrace</primary>
  514. </indexterm>
  515. </listitem>
  516. </varlistentry>
  517. <varlistentry id="nscd">
  518. <term><command>nscd</command></term>
  519. <listitem>
  520. <para>A daemon that provides a cache for the most common name
  521. service requests</para>
  522. <indexterm zone="ch-system-glibc nscd">
  523. <primary sortas="b-nscd">nscd</primary>
  524. </indexterm>
  525. </listitem>
  526. </varlistentry>
  527. <varlistentry id="pcprofiledump">
  528. <term><command>pcprofiledump</command></term>
  529. <listitem>
  530. <para>Dump information generated by PC profiling</para>
  531. <indexterm zone="ch-system-glibc pcprofiledump">
  532. <primary sortas="b-pcprofiledump">pcprofiledump</primary>
  533. </indexterm>
  534. </listitem>
  535. </varlistentry>
  536. <varlistentry id="pldd">
  537. <term><command>pldd</command></term>
  538. <listitem>
  539. <para>Lists dynamic shared objects used by running processes</para>
  540. <indexterm zone="ch-system-glibc pldd">
  541. <primary sortas="b-pldd">pldd</primary>
  542. </indexterm>
  543. </listitem>
  544. </varlistentry>
  545. <varlistentry id="sln">
  546. <term><command>sln</command></term>
  547. <listitem>
  548. <para>A statically linked <command>ln</command> program</para>
  549. <indexterm zone="ch-system-glibc sln">
  550. <primary sortas="b-sln">sln</primary>
  551. </indexterm>
  552. </listitem>
  553. </varlistentry>
  554. <varlistentry id="sotruss">
  555. <term><command>sotruss</command></term>
  556. <listitem>
  557. <para>Traces shared library procedure calls of a specified command</para>
  558. <indexterm zone="ch-system-glibc sotruss">
  559. <primary sortas="b-sotruss">sotruss</primary>
  560. </indexterm>
  561. </listitem>
  562. </varlistentry>
  563. <varlistentry id="sprof">
  564. <term><command>sprof</command></term>
  565. <listitem>
  566. <para>Reads and displays shared object profiling data</para>
  567. <indexterm zone="ch-system-glibc sprof">
  568. <primary sortas="b-sprof">sprof</primary>
  569. </indexterm>
  570. </listitem>
  571. </varlistentry>
  572. <varlistentry id="tzselect">
  573. <term><command>tzselect</command></term>
  574. <listitem>
  575. <para>Asks the user about the location of the system and reports
  576. the corresponding time zone description</para>
  577. <indexterm zone="ch-system-glibc tzselect">
  578. <primary sortas="b-tzselect">tzselect</primary>
  579. </indexterm>
  580. </listitem>
  581. </varlistentry>
  582. <varlistentry id="xtrace">
  583. <term><command>xtrace</command></term>
  584. <listitem>
  585. <para>Traces the execution of a program by printing the currently
  586. executed function</para>
  587. <indexterm zone="ch-system-glibc xtrace">
  588. <primary sortas="b-xtrace">xtrace</primary>
  589. </indexterm>
  590. </listitem>
  591. </varlistentry>
  592. <varlistentry id="zdump">
  593. <term><command>zdump</command></term>
  594. <listitem>
  595. <para>The time zone dumper</para>
  596. <indexterm zone="ch-system-glibc zdump">
  597. <primary sortas="b-zdump">zdump</primary>
  598. </indexterm>
  599. </listitem>
  600. </varlistentry>
  601. <varlistentry id="zic">
  602. <term><command>zic</command></term>
  603. <listitem>
  604. <para>The time zone compiler</para>
  605. <indexterm zone="ch-system-glibc zic">
  606. <primary sortas="b-zic">zic</primary>
  607. </indexterm>
  608. </listitem>
  609. </varlistentry>
  610. <varlistentry id="ld.so">
  611. <term><filename class="libraryfile">ld-&glibc-version;.so</filename></term>
  612. <listitem>
  613. <para>The helper program for shared library executables</para>
  614. <indexterm zone="ch-system-glibc ld.so">
  615. <primary sortas="c-ld.so">ld-&glibc-version;.so</primary>
  616. </indexterm>
  617. </listitem>
  618. </varlistentry>
  619. <varlistentry id="libBrokenLocale">
  620. <term><filename class="libraryfile">libBrokenLocale</filename></term>
  621. <listitem>
  622. <para>Used internally by Glibc as a gross hack to get broken programs
  623. (e.g., some Motif applications) running. See comments in
  624. <filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename>
  625. for more information</para>
  626. <indexterm zone="ch-system-glibc libBrokenLocale">
  627. <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
  628. </indexterm>
  629. </listitem>
  630. </varlistentry>
  631. <varlistentry id="libSegFault">
  632. <term><filename class="libraryfile">libSegFault</filename></term>
  633. <listitem>
  634. <para>The segmentation fault signal handler, used by
  635. <command>catchsegv</command></para>
  636. <indexterm zone="ch-system-glibc libSegFault">
  637. <primary sortas="c-libSegFault">libSegFault</primary>
  638. </indexterm>
  639. </listitem>
  640. </varlistentry>
  641. <varlistentry id="libanl">
  642. <term><filename class="libraryfile">libanl</filename></term>
  643. <listitem>
  644. <para>An asynchronous name lookup library</para>
  645. <indexterm zone="ch-system-glibc libanl">
  646. <primary sortas="c-libanl">libanl</primary>
  647. </indexterm>
  648. </listitem>
  649. </varlistentry>
  650. <varlistentry id="libc">
  651. <term><filename class="libraryfile">libc</filename></term>
  652. <listitem>
  653. <para>The main C library</para>
  654. <indexterm zone="ch-system-glibc libc">
  655. <primary sortas="c-libc">libc</primary>
  656. </indexterm>
  657. </listitem>
  658. </varlistentry>
  659. <varlistentry id="libcrypt">
  660. <term><filename class="libraryfile">libcrypt</filename></term>
  661. <listitem>
  662. <para>The cryptography library</para>
  663. <indexterm zone="ch-system-glibc libcrypt">
  664. <primary sortas="c-libcrypt">libcrypt</primary>
  665. </indexterm>
  666. </listitem>
  667. </varlistentry>
  668. <varlistentry id="libdl">
  669. <term><filename class="libraryfile">libdl</filename></term>
  670. <listitem>
  671. <para>The dynamic linking interface library</para>
  672. <indexterm zone="ch-system-glibc libdl">
  673. <primary sortas="c-libdl">libdl</primary>
  674. </indexterm>
  675. </listitem>
  676. </varlistentry>
  677. <varlistentry id="libg">
  678. <term><filename class="libraryfile">libg</filename></term>
  679. <listitem>
  680. <para>Dummy library containing no functions. Previously was a runtime
  681. library for <command>g++</command></para>
  682. <indexterm zone="ch-system-glibc libg">
  683. <primary sortas="c-libg">libg</primary>
  684. </indexterm>
  685. </listitem>
  686. </varlistentry>
  687. <varlistentry id="libm">
  688. <term><filename class="libraryfile">libm</filename></term>
  689. <listitem>
  690. <para>The mathematical library</para>
  691. <indexterm zone="ch-system-glibc libm">
  692. <primary sortas="c-libm">libm</primary>
  693. </indexterm>
  694. </listitem>
  695. </varlistentry>
  696. <varlistentry id="libmcheck">
  697. <term><filename class="libraryfile">libmcheck</filename></term>
  698. <listitem>
  699. <para>Turns on memory allocation checking when linked to</para>
  700. <indexterm zone="ch-system-glibc libmcheck">
  701. <primary sortas="c-libmcheck">libmcheck</primary>
  702. </indexterm>
  703. </listitem>
  704. </varlistentry>
  705. <varlistentry id="libmemusage">
  706. <term><filename class="libraryfile">libmemusage</filename></term>
  707. <listitem>
  708. <para>Used by <command>memusage</command> to help collect
  709. information about the memory usage of a program</para>
  710. <indexterm zone="ch-system-glibc libmemusage">
  711. <primary sortas="c-libmemusage">libmemusage</primary>
  712. </indexterm>
  713. </listitem>
  714. </varlistentry>
  715. <varlistentry id="libnsl">
  716. <term><filename class="libraryfile">libnsl</filename></term>
  717. <listitem>
  718. <para>The network services library</para>
  719. <indexterm zone="ch-system-glibc libnsl">
  720. <primary sortas="c-libnsl">libnsl</primary>
  721. </indexterm>
  722. </listitem>
  723. </varlistentry>
  724. <varlistentry id="libnss">
  725. <term><filename class="libraryfile">libnss</filename></term>
  726. <listitem>
  727. <para>The Name Service Switch libraries, containing functions for
  728. resolving host names, user names, group names, aliases, services,
  729. protocols, etc.</para>
  730. <indexterm zone="ch-system-glibc libnss">
  731. <primary sortas="c-libnss">libnss</primary>
  732. </indexterm>
  733. </listitem>
  734. </varlistentry>
  735. <varlistentry id="libpcprofile">
  736. <term><filename class="libraryfile">libpcprofile</filename></term>
  737. <listitem>
  738. <para>Can be preloaded to PC profile an executable</para>
  739. <indexterm zone="ch-system-glibc libpcprofile">
  740. <primary sortas="c-libpcprofile">libpcprofile</primary>
  741. </indexterm>
  742. </listitem>
  743. </varlistentry>
  744. <varlistentry id="libpthread">
  745. <term><filename class="libraryfile">libpthread</filename></term>
  746. <listitem>
  747. <para>The POSIX threads library</para>
  748. <indexterm zone="ch-system-glibc libpthread">
  749. <primary sortas="c-libpthread">libpthread</primary>
  750. </indexterm>
  751. </listitem>
  752. </varlistentry>
  753. <varlistentry id="libresolv">
  754. <term><filename class="libraryfile">libresolv</filename></term>
  755. <listitem>
  756. <para>Contains functions for creating, sending, and interpreting
  757. packets to the Internet domain name servers</para>
  758. <indexterm zone="ch-system-glibc libresolv">
  759. <primary sortas="c-libresolv">libresolv</primary>
  760. </indexterm>
  761. </listitem>
  762. </varlistentry>
  763. <varlistentry id="librt">
  764. <term><filename class="libraryfile">librt</filename></term>
  765. <listitem>
  766. <para>Contains functions providing most of the interfaces specified
  767. by the POSIX.1b Realtime Extension</para>
  768. <indexterm zone="ch-system-glibc librt">
  769. <primary sortas="c-librt">librt</primary>
  770. </indexterm>
  771. </listitem>
  772. </varlistentry>
  773. <varlistentry id="libthread_db">
  774. <term><filename class="libraryfile">libthread_db</filename></term>
  775. <listitem>
  776. <para>Contains functions useful for building debuggers for
  777. multi-threaded programs</para>
  778. <indexterm zone="ch-system-glibc libthread_db">
  779. <primary sortas="c-libthread_db">libthread_db</primary>
  780. </indexterm>
  781. </listitem>
  782. </varlistentry>
  783. <varlistentry id="libutil">
  784. <term><filename class="libraryfile">libutil</filename></term>
  785. <listitem>
  786. <para>Contains code for <quote>standard</quote> functions used in
  787. many different Unix utilities</para>
  788. <indexterm zone="ch-system-glibc libutil">
  789. <primary sortas="c-libutil">libutil</primary>
  790. </indexterm>
  791. </listitem>
  792. </varlistentry>
  793. </variablelist>
  794. </sect2>
  795. </sect1>