glibc.xml 38 KB

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