glibc.xml 33 KB

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