1
0

glibc.xml 27 KB

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