glibc.xml 33 KB

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