source: chapter06/glibc.xml@ 9218b05

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 9218b05 was 9218b05, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

LFS-7.9-rc2 released.
Update to glibc-2.23.
Update to linux-4.4.2.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11019 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 34.8 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[6a82dd9]7
[81fd230]8<sect1 id="ch-system-glibc" role="wrap">
[6a82dd9]9 <?dbhtml filename="glibc.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>glibc</productname>
13 <productnumber>&glibc-version;</productnumber>
14 <address>&glibc-url;</address>
15 </sect1info>
16
[6a82dd9]17 <title>Glibc-&glibc-version;</title>
18
19 <indexterm zone="ch-system-glibc">
20 <primary sortas="a-Glibc">Glibc</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Glibc package contains the main C library. This library provides
27 the basic routines for allocating memory, searching directories, opening and
28 closing files, reading and writing files, string handling, pattern matching,
29 arithmetic, and so on.</para>
30
31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
34
35 <seglistitem>
[e4a5635]36 <seg>&glibc-ch6-sbu;</seg>
37 <seg>&glibc-ch6-du;</seg>
[6a82dd9]38 </seglistitem>
39 </segmentedlist>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Glibc</title>
45
46 <note>
47 <para>Some packages outside of LFS suggest installing GNU libiconv in
48 order to translate data from one encoding to another. The project's
49 home page (<ulink url="http://www.gnu.org/software/libiconv/"/>) says
50 <quote>This library provides an <function>iconv()</function>
51 implementation, for use on systems which don't have one, or whose
52 implementation cannot convert from/to Unicode.</quote> Glibc provides
53 an <function>iconv()</function> implementation and can convert from/to
54 Unicode, therefore libiconv is not required on an LFS system.</para>
55 </note>
56
[4028929]57 <para>Some of the Glibc programs use non-FHS compilant
58 <filename class="directory">/var/db</filename> directory to store
59 their runtime data. Apply the following patch to make such programs
60 store their runtime data in the FHS-compliant locations:</para>
61
62<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
63
[6a82dd9]64 <para>The Glibc build system is self-contained and will install
65 perfectly, even though the compiler specs file and linker are still
66 pointing at <filename class="directory">/tools</filename>. The specs
67 and linker cannot be adjusted before the Glibc install because the
68 Glibc autoconf tests would give false results and defeat the goal
69 of achieving a clean build.</para>
[9218b05]70<!--
[6fc168b]71 <para>Now fix a build problem that affects i386 systems:</para>
72
73<screen><userinput remap="pre">patch -Np1 -i ../&glibc-upstream-patch;</userinput></screen>
74
[35cc66f]75 <para>The most recent stable version of Glibc does not handle large files
76 correctly. Fix the problem with this patch:</para>
77
78<screen><userinput remap="pre">patch -Np1 -i ../&glibc-largefile-patch;</userinput></screen>
79
[e523b7b]80 <para>Finally, update some recent changes from the upstream repository:</para>
81
82<screen><userinput remap="pre">patch -Np1 -i ../&glibc-upstream-patch2;</userinput></screen>
[9218b05]83-->
[f1dd547]84 <para>The Glibc documentation recommends building Glibc
85 in a dedicated build directory:</para>
[73aedd1d]86
[f1dd547]87<screen><userinput remap="pre">mkdir -v build
88cd build</userinput></screen>
[c906b7e]89
[6a82dd9]90 <para>Prepare Glibc for compilation:</para>
[73aedd1d]91
[f1dd547]92<screen><userinput remap="configure">../configure --prefix=/usr \
93 --disable-profile \
94 --enable-kernel=&min-kernel; \
95 --enable-obsolete-rpc</userinput></screen>
[73aedd1d]96
[6a82dd9]97 <para>Compile the package:</para>
[73aedd1d]98
[0445a3d]99<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]100
[6a82dd9]101 <important>
102 <para>In this section, the test suite for Glibc is considered critical.
103 Do not skip it under any circumstance.</para>
104 </important>
[81fd230]105
[d9c836b]106 <para>Generally a few tests do not pass, but you can generally ignore
107 any of the test failures listed below. Now test the build results:</para>
108
[33d8236]109<screen><userinput remap="test">make check</userinput></screen>
[2e02c35]110
[3b66f6a]111 <para>You will probably see some test failures. The Glibc test suite is
112 somewhat dependent on the host system. This is a list of the most common
113 issues seen for this version of LFS:</para>
[6a82dd9]114
115 <itemizedlist>
[5d1f0157]116
[0238d49]117 <listitem>
[9218b05]118 <para><emphasis>posix/tst-getaddrinfo4</emphasis> and
119 <emphasis>posix/tst-getaddrinfo5</emphasis> will always fail due
120 to not having the necessary networking applications when the tests are
[1c27a53]121 run.</para>
[0238d49]122 </listitem>
123
[d9c836b]124 <listitem>
[6bf9d727]125 <para>The <emphasis>rt/tst-cputimer1</emphasis> and
[5632647]126 <emphasis>rt/tst-cpuclock2</emphasis> tests have been known to
[5d1f0157]127 fail. The reason is not completely understood, but indications are
[5632647]128 that minor timing issues can trigger these failures.</para>
[6a82dd9]129 </listitem>
[d9c836b]130
[6a82dd9]131 <listitem>
[a0ec869]132 <para>The math tests sometimes fail when running on
[9218b05]133 systems where the CPU is not a relatively new Intel or
134 AMD processor.</para>
[6a82dd9]135 </listitem>
[9218b05]136<!--
[1c27a53]137 <listitem>
138 <para>The <emphasis>elf/tst-protected1a</emphasis> and
[09c83f9]139 <emphasis>elf/tst-protected1b</emphasis> tests are known to
[1c27a53]140 fail with the current stable version of binutils.</para>
141 </listitem>
[9218b05]142
[6a82dd9]143 <listitem>
[a0ec869]144 <para>When running on older and slower hardware or on systems under
[1d20dae]145 load, some tests can fail because of test timeouts being exceeded.
[2ca8941]146 Modifying the make check command to set a TIMEOUTFACTOR is reported to
[fbd81b7]147 help eliminate these errors (e.g. <command>TIMEOUTFACTOR=16
[1d20dae]148 make -k check</command>).</para>
[6a82dd9]149 </listitem>
[3b66f6a]150-->
151<!--
[d02c56d]152 <listitem>
153 <para>libio/tst-ftell-partial-wide.out fails because it needs a locale
154 that has not yet been generated.</para>
155 </listitem>
[5d1f0157]156-->
[ee321a46]157 <listitem>
[5d1f0157]158 <para>Other tests known to fail on some architectures are
[326224b]159 malloc/tst-malloc-usable and nptl/tst-cleanupx4. </para>
[ee321a46]160 </listitem>
[5d1f0157]161
[6a82dd9]162 </itemizedlist>
163
164 <para>Though it is a harmless message, the install stage of Glibc will
165 complain about the absence of <filename>/etc/ld.so.conf</filename>.
166 Prevent this warning with:</para>
[1caa48e]167
[0445a3d]168<screen><userinput remap="install">touch /etc/ld.so.conf</userinput></screen>
[1caa48e]169
[6a82dd9]170 <para>Install the package:</para>
[73aedd1d]171
[0445a3d]172<screen><userinput remap="install">make install</userinput></screen>
[73aedd1d]173
[4028929]174 <para>Install the configuration file and runtime directory for
175 <command>nscd</command>:</para>
176
[f1dd547]177<screen><userinput remap="install">cp -v ../nscd/nscd.conf /etc/nscd.conf
[4028929]178mkdir -pv /var/cache/nscd</userinput></screen>
179
[6a82dd9]180 <para>The locales that can make the system respond in a different language
181 were not installed by the above command. None of the locales are required,
[0ebe029b]182 but if some of them are missing, test suites of the future packages would
[6a82dd9]183 skip important testcases.</para>
184
185 <para>Individual locales can be installed using the
186 <command>localedef</command> program. E.g., the first
187 <command>localedef</command> command below combines the
[fffccab]188 <filename>/usr/share/i18n/locales/cs_CZ</filename>
[6a82dd9]189 charset-independent locale definition with the
[fffccab]190 <filename>/usr/share/i18n/charmaps/UTF-8.gz</filename>
[6a82dd9]191 charmap definition and appends the result to the
192 <filename>/usr/lib/locale/locale-archive</filename> file.
193 The following instructions will install the minimum set of
194 locales necessary for the optimal coverage of tests:</para>
[3f0c882]195
[0445a3d]196<screen role="nodump"><userinput remap="locale-test">mkdir -pv /usr/lib/locale
[1e77f0c]197localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
[73aedd1d]198localedef -i de_DE -f ISO-8859-1 de_DE
199localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
[1e77f0c]200localedef -i de_DE -f UTF-8 de_DE.UTF-8
[e9aabce]201localedef -i en_GB -f UTF-8 en_GB.UTF-8
[73aedd1d]202localedef -i en_HK -f ISO-8859-1 en_HK
203localedef -i en_PH -f ISO-8859-1 en_PH
204localedef -i en_US -f ISO-8859-1 en_US
[3a35b11]205localedef -i en_US -f UTF-8 en_US.UTF-8
[73aedd1d]206localedef -i es_MX -f ISO-8859-1 es_MX
[673b0d8]207localedef -i fa_IR -f UTF-8 fa_IR
[73aedd1d]208localedef -i fr_FR -f ISO-8859-1 fr_FR
209localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
[d93d1c90]210localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
[73aedd1d]211localedef -i it_IT -f ISO-8859-1 it_IT
[5b36d32]212localedef -i it_IT -f UTF-8 it_IT.UTF-8
[1e77f0c]213localedef -i ja_JP -f EUC-JP ja_JP
[5b36d32]214localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R
215localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
[fffccab]216localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
[8399b37]217localedef -i zh_CN -f GB18030 zh_CN.GB18030</userinput></screen>
[73aedd1d]218
[6a82dd9]219 <para>In addition, install the locale for your own country, language and
220 character set.</para>
[fa21b3d]221
[6a82dd9]222 <para>Alternatively, install all locales listed in the
223 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
224 (it includes every locale listed above and many more) at once with the
225 following time-consuming command:</para>
[fa21b3d]226
[0445a3d]227<screen><userinput remap="locale-full">make localedata/install-locales</userinput></screen>
[fa21b3d]228
[6a82dd9]229 <para>Then use the <command>localedef</command> command to create and
230 install locales not listed in the
231 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
[5a25e0a]232 in the unlikely case you need them.</para>
[6a82dd9]233
234 </sect2>
[94aa6621]235
[6a82dd9]236 <sect2 id="conf-glibc" role="configuration">
237 <title>Configuring Glibc</title>
[5888299]238
[6a82dd9]239 <indexterm zone="conf-glibc">
240 <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
241 </indexterm>
[81fd230]242
[6a82dd9]243 <indexterm zone="conf-glibc">
244 <primary sortas="e-/etc/localtime">/etc/localtime</primary>
245 </indexterm>
[342b176]246
[a72ca33]247 <sect3>
248 <title>Adding nsswitch.conf</title>
249
[6a82dd9]250 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
[a72ca33]251 because the Glibc defaults do not work well in a networked environment.
252 </para>
[6a82dd9]253
254 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
255 following:</para>
[342b176]256
[bb55064]257<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
[d72e04a]258<literal># Begin /etc/nsswitch.conf
[342b176]259
260passwd: files
261group: files
262shadow: files
263
264hosts: files dns
265networks: files
266
[4a80bec]267protocols: files
268services: files
269ethers: files
270rpc: files
[342b176]271
[d72e04a]272# End /etc/nsswitch.conf</literal>
[bb55064]273EOF</userinput></screen>
[342b176]274
[a72ca33]275 </sect3>
276
277 <sect3>
278 <title>Adding time zone data</title>
279
[edbeeb5]280 <para>Install and set up the time zone data with the following:</para>
[f1dd547]281<screen><userinput>tar -xf ../../tzdata&tzdata-version;.tar.gz
[f1c177f]282
[ea31e92]283ZONEINFO=/usr/share/zoneinfo
[2ca8941]284mkdir -pv $ZONEINFO/{posix,right}
[ea31e92]285
286for tz in etcetera southamerica northamerica europe africa antarctica \
[fabfe841]287 asia australasia backward pacificnew systemv; do
[2ca8941]288 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
289 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
[ea31e92]290 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
[287a36b4]291done
[f0f7ea0]292
[f1d755b]293cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
[ea31e92]294zic -d $ZONEINFO -p America/New_York
295unset ZONEINFO</userinput></screen>
[f1c177f]296
[7a6bcf9]297 <variablelist>
298 <title>The meaning of the zic commands:</title>
299
300 <varlistentry>
301 <term><parameter>zic -L /dev/null ...</parameter></term>
302 <listitem>
[edbeeb5]303 <para>This creates posix time zones, without any leap seconds. It is
[7a6bcf9]304 conventional to put these in both
305 <filename class="directory">zoneinfo</filename> and
306 <filename class="directory">zoneinfo/posix</filename>. It is
[edbeeb5]307 necessary to put the POSIX time zones in
[7a6bcf9]308 <filename class="directory">zoneinfo</filename>, otherwise various
309 test-suites will report errors. On an embedded system, where space is
[edbeeb5]310 tight and you do not intend to ever update the time zones, you could save
[7a6bcf9]311 1.9MB by not using the <filename class="directory">posix</filename>
[7bb9fda]312 directory, but some applications or test-suites might produce some
313 failures.</para>
[7a6bcf9]314 </listitem>
315 </varlistentry>
316 <varlistentry>
317 <term><parameter>zic -L leapseconds ...</parameter></term>
318 <listitem>
[edbeeb5]319 <para>This creates right time zones, including leap seconds. On an
[7a6bcf9]320 embedded system, where space is tight and you do not intend to
[edbeeb5]321 ever update the time zones, or care about the correct time, you could
[7a6bcf9]322 save 1.9MB by omitting the <filename class="directory">right</filename>
323 directory.</para>
324 </listitem>
325 </varlistentry>
326 <varlistentry>
327 <term><parameter>zic ... -p ...</parameter></term>
328 <listitem>
[d7f2eb0]329 <para>This creates the <filename>posixrules</filename> file. We use
[cb02946]330 New York because POSIX requires the daylight savings time rules
[e7134f1]331 to be in accordance with US rules.</para>
[7a6bcf9]332 </listitem>
333 </varlistentry>
334 </variablelist>
335
336
337 <para>One way to determine the local time zone is to run the following
[e1060de]338 script:</para>
[342b176]339
[be4be92]340<screen role="nodump"><userinput>tzselect</userinput></screen>
[342b176]341
[6a82dd9]342 <para>After answering a few questions about the location, the script will
[e1060de]343 output the name of the time zone (e.g.,
344 <emphasis>America/Edmonton</emphasis>). There are also some other possible
[edbeeb5]345 time zones listed in <filename
[e1060de]346 class='directory'>/usr/share/zoneinfo</filename> such as
347 <emphasis>Canada/Eastern</emphasis> or <emphasis>EST5EDT</emphasis> that
348 are not identified by the script but can be used.</para>
349
350 <para>Then create the <filename>/etc/localtime</filename> file by
351 running:</para>
[342b176]352
[8b69ae4]353<screen><userinput>cp -v /usr/share/zoneinfo/<replaceable>&lt;xxx&gt;</replaceable> /etc/localtime</userinput></screen>
[342b176]354
[e1060de]355 <para>Replace <replaceable>&lt;xxx&gt;</replaceable> with the name of the
356 time zone selected (e.g., Canada/Eastern).</para>
[6a82dd9]357
[a72ca33]358 </sect3>
[6a82dd9]359
[a72ca33]360 <sect3 id="conf-ld" role="configuration">
[6a82dd9]361 <title>Configuring the Dynamic Loader</title>
362
363 <indexterm zone="conf-ld">
364 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
365 </indexterm>
366
367 <para>By default, the dynamic loader (<filename
368 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
369 <filename class="directory">/lib</filename> and <filename
370 class="directory">/usr/lib</filename> for dynamic libraries that are
371 needed by programs as they are run. However, if there are libraries in
372 directories other than <filename class="directory">/lib</filename> and
373 <filename class="directory">/usr/lib</filename>, these need to be added
374 to the <filename>/etc/ld.so.conf</filename> file in order for the
375 dynamic loader to find them. Two directories that are commonly known
376 to contain additional libraries are <filename
377 class="directory">/usr/local/lib</filename> and <filename
378 class="directory">/opt/lib</filename>, so add those directories to the
379 dynamic loader's search path.</para>
380
381 <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
382 following:</para>
[342b176]383
[bb55064]384<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
[d72e04a]385<literal># Begin /etc/ld.so.conf
[342b176]386/usr/local/lib
387/opt/lib
[50f648b]388</literal>
[bb55064]389EOF</userinput></screen>
[342b176]390
[50f648b]391 <para>If desired, the dynamic loader can also search a directory and
[2ca8941]392 include the contents of files found there. Generally the files in
[50f648b]393 this include directory are one line specifying the desired library path.
394 To add this capability run the following commands:</para>
395
396<screen role="nodump"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
397<literal># Add an include directory
398include /etc/ld.so.conf.d/*.conf
399</literal>
400EOF
[3d086301]401mkdir -pv /etc/ld.so.conf.d</userinput></screen>
[50f648b]402
[a72ca33]403 </sect3>
[6a82dd9]404 </sect2>
405
406 <sect2 id="contents-glibc" role="content">
407 <title>Contents of Glibc</title>
408
409 <segmentedlist>
410 <segtitle>Installed programs</segtitle>
411 <segtitle>Installed libraries</segtitle>
[fe05b08]412 <segtitle>Installed directories</segtitle>
[6a82dd9]413
414 <seglistitem>
415 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
[ca101ad]416 ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd, pcprofiledump,
[b5b97081]417 pldd, rpcgen, sln, sotruss, sprof, tzselect, xtrace,
[6a82dd9]418 zdump, and zic</seg>
[5ef820b]419 <seg>ld-&glibc-version;.so, libBrokenLocale.{a,so}, libSegFault.so, libanl.{a,so},
[a713e43]420 libc.{a,so}, libc_nonshared.a, libcidn.so,
[90aae6b]421 libcrypt.{a,so}, libdl.{a,so}, libg.a, libieee.a, libm.{a,so},
422 libmcheck.a, libmemusage.so, libnsl.{a,so}, libnss_compat.so,
423 libnss_dns.so, libnss_files.so, libnss_hesiod.so, libnss_nis.so,
424 libnss_nisplus.so, libpcprofile.so, libpthread.{a,so},
425 libpthread_nonshared.a, libresolv.{a,so}, librpcsvc.a, librt.{a,so},
[2791a8e]426 libthread_db.so, and libutil.{a,so}</seg>
[fe05b08]427 <seg>/usr/include/arpa, /usr/include/bits, /usr/include/gnu,
428 /usr/include/net, /usr/include/netash, /usr/include/netatalk,
429 /usr/include/netax25, /usr/include/neteconet, /usr/include/netinet,
430 /usr/include/netipx, /usr/include/netiucv, /usr/include/netpacket,
431 /usr/include/netrom, /usr/include/netrose, /usr/include/nfs,
432 /usr/include/protocols, /usr/include/rpc, /usr/include/rpcsvc,
[4028929]433 /usr/include/sys, /usr/lib/audit, /usr/lib/gconv, /usr/lib/locale,
434 /usr/libexec/getconf, /usr/share/i18n, /usr/share/zoneinfo,
[7bb9fda]435 /var/cache/nscd, and /var/lib/nss_db</seg>
[6a82dd9]436 </seglistitem>
437 </segmentedlist>
438
439 <variablelist>
440 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
441 <?dbfo list-presentation="list"?>
442 <?dbhtml list-presentation="table"?>
443
444 <varlistentry id="catchsegv">
445 <term><command>catchsegv</command></term>
446 <listitem>
447 <para>Can be used to create a stack trace when a program
448 terminates with a segmentation fault</para>
449 <indexterm zone="ch-system-glibc catchsegv">
450 <primary sortas="b-catchsegv">catchsegv</primary>
451 </indexterm>
452 </listitem>
453 </varlistentry>
454
455 <varlistentry id="gencat">
456 <term><command>gencat</command></term>
457 <listitem>
458 <para>Generates message catalogues</para>
459 <indexterm zone="ch-system-glibc gencat">
460 <primary sortas="b-gencat">gencat</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
465 <varlistentry id="getconf">
466 <term><command>getconf</command></term>
467 <listitem>
468 <para>Displays the system configuration values for file system
469 specific variables</para>
470 <indexterm zone="ch-system-glibc getconf">
471 <primary sortas="b-getconf">getconf</primary>
472 </indexterm>
473 </listitem>
474 </varlistentry>
475
476 <varlistentry id="getent">
477 <term><command>getent</command></term>
478 <listitem>
479 <para>Gets entries from an administrative database</para>
480 <indexterm zone="ch-system-glibc getent">
481 <primary sortas="b-getent">getent</primary>
482 </indexterm>
483 </listitem>
484 </varlistentry>
485
486 <varlistentry id="iconv">
487 <term><command>iconv</command></term>
488 <listitem>
489 <para>Performs character set conversion</para>
490 <indexterm zone="ch-system-glibc iconv">
491 <primary sortas="b-iconv">iconv</primary>
492 </indexterm>
493 </listitem>
494 </varlistentry>
495
496 <varlistentry id="iconvconfig">
497 <term><command>iconvconfig</command></term>
498 <listitem>
499 <para>Creates fastloading <command>iconv</command> module configuration
500 files</para>
501 <indexterm zone="ch-system-glibc iconvconfig">
502 <primary sortas="b-iconvconfig">iconvconfig</primary>
503 </indexterm>
504 </listitem>
505 </varlistentry>
506
507 <varlistentry id="ldconfig">
508 <term><command>ldconfig</command></term>
509 <listitem>
510 <para>Configures the dynamic linker runtime bindings</para>
511 <indexterm zone="ch-system-glibc ldconfig">
512 <primary sortas="b-ldconfig">ldconfig</primary>
513 </indexterm>
514 </listitem>
515 </varlistentry>
516
517 <varlistentry id="ldd">
518 <term><command>ldd</command></term>
519 <listitem>
520 <para>Reports which shared libraries are required
521 by each given program or shared library</para>
522 <indexterm zone="ch-system-glibc ldd">
523 <primary sortas="b-ldd">ldd</primary>
524 </indexterm>
525 </listitem>
526 </varlistentry>
527
528 <varlistentry id="lddlibc4">
529 <term><command>lddlibc4</command></term>
530 <listitem>
531 <para>Assists <command>ldd</command> with object files</para>
532 <indexterm zone="ch-system-glibc lddlibc4">
533 <primary sortas="b-lddlibc4">lddlibc4</primary>
534 </indexterm>
535 </listitem>
536 </varlistentry>
537
538 <varlistentry id="locale">
539 <term><command>locale</command></term>
540 <listitem>
541 <para>Prints various information about the current locale</para>
542 <indexterm zone="ch-system-glibc locale">
543 <primary sortas="b-locale">locale</primary>
544 </indexterm>
545 </listitem>
546 </varlistentry>
547
548 <varlistentry id="localedef">
549 <term><command>localedef</command></term>
550 <listitem>
551 <para>Compiles locale specifications</para>
552 <indexterm zone="ch-system-glibc localedef">
553 <primary sortas="b-localedef">localedef</primary>
554 </indexterm>
555 </listitem>
556 </varlistentry>
557
[ca101ad]558 <varlistentry id="makedb">
559 <term><command>makedb</command></term>
560 <listitem>
561 <para>Creates a simple database from textual input</para>
562 <indexterm zone="ch-system-glibc makedb">
563 <primary sortas="b-makedb">makedb</primary>
564 </indexterm>
565 </listitem>
566 </varlistentry>
567
[6a82dd9]568 <varlistentry id="mtrace">
569 <term><command>mtrace</command></term>
570 <listitem>
571 <para>Reads and interprets a memory trace file and displays a summary
572 in human-readable format</para>
573 <indexterm zone="ch-system-glibc mtrace">
574 <primary sortas="b-mtrace">mtrace</primary>
575 </indexterm>
576 </listitem>
577 </varlistentry>
578
579 <varlistentry id="nscd">
580 <term><command>nscd</command></term>
581 <listitem>
582 <para>A daemon that provides a cache for the most common name
583 service requests</para>
584 <indexterm zone="ch-system-glibc nscd">
585 <primary sortas="b-nscd">nscd</primary>
586 </indexterm>
587 </listitem>
588 </varlistentry>
589
590 <varlistentry id="pcprofiledump">
591 <term><command>pcprofiledump</command></term>
592 <listitem>
593 <para>Dumps information generated by PC profiling</para>
594 <indexterm zone="ch-system-glibc pcprofiledump">
595 <primary sortas="b-pcprofiledump">pcprofiledump</primary>
596 </indexterm>
597 </listitem>
598 </varlistentry>
599
[ca101ad]600 <varlistentry id="pldd">
601 <term><command>pldd</command></term>
602 <listitem>
603 <para>Lists dynamic shared objects used by running processes</para>
604 <indexterm zone="ch-system-glibc pldd">
605 <primary sortas="b-pldd">pldd</primary>
606 </indexterm>
607 </listitem>
608 </varlistentry>
[b5b97081]609<!--
[6a82dd9]610 <varlistentry id="pt_chown">
611 <term><command>pt_chown</command></term>
612 <listitem>
613 <para>A helper program for <command>grantpt</command> to set the owner,
614 group and access permissions of a slave pseudo terminal</para>
615 <indexterm zone="ch-system-glibc pt_chown">
616 <primary sortas="b-pt_chown">pt_chown</primary>
617 </indexterm>
618 </listitem>
619 </varlistentry>
[b5b97081]620-->
[6a82dd9]621 <varlistentry id="rpcgen">
622 <term><command>rpcgen</command></term>
623 <listitem>
[7a8d7c6]624 <para>Generates C code to implement the Remote Procedure Call (RPC)
[6a82dd9]625 protocol</para>
626 <indexterm zone="ch-system-glibc rpcgen">
627 <primary sortas="b-rpcgen">rpcgen</primary>
628 </indexterm>
629 </listitem>
630 </varlistentry>
631
632 <varlistentry id="sln">
633 <term><command>sln</command></term>
634 <listitem>
635 <para>A statically linked <command>ln</command> program</para>
636 <indexterm zone="ch-system-glibc sln">
637 <primary sortas="b-sln">sln</primary>
638 </indexterm>
639 </listitem>
640 </varlistentry>
641
[3119ddc]642 <varlistentry id="sotruss">
643 <term><command>sotruss</command></term>
644 <listitem>
645 <para>Traces shared library procedure calls of a specified command</para>
646 <indexterm zone="ch-system-glibc sotruss">
647 <primary sortas="b-sotruss">sotruss</primary>
648 </indexterm>
649 </listitem>
650 </varlistentry>
651
[6a82dd9]652 <varlistentry id="sprof">
653 <term><command>sprof</command></term>
654 <listitem>
655 <para>Reads and displays shared object profiling data</para>
656 <indexterm zone="ch-system-glibc sprof">
657 <primary sortas="b-sprof">sprof</primary>
658 </indexterm>
659 </listitem>
660 </varlistentry>
661
662 <varlistentry id="tzselect">
663 <term><command>tzselect</command></term>
664 <listitem>
665 <para>Asks the user about the location of the system and reports
666 the corresponding time zone description</para>
667 <indexterm zone="ch-system-glibc tzselect">
668 <primary sortas="b-tzselect">tzselect</primary>
669 </indexterm>
670 </listitem>
671 </varlistentry>
672
673 <varlistentry id="xtrace">
674 <term><command>xtrace</command></term>
675 <listitem>
676 <para>Traces the execution of a program by printing the currently
677 executed function</para>
678 <indexterm zone="ch-system-glibc xtrace">
679 <primary sortas="b-xtrace">xtrace</primary>
680 </indexterm>
681 </listitem>
682 </varlistentry>
683
684 <varlistentry id="zdump">
685 <term><command>zdump</command></term>
686 <listitem>
687 <para>The time zone dumper</para>
688 <indexterm zone="ch-system-glibc zdump">
689 <primary sortas="b-zdump">zdump</primary>
690 </indexterm>
691 </listitem>
692 </varlistentry>
693
694 <varlistentry id="zic">
695 <term><command>zic</command></term>
696 <listitem>
697 <para>The time zone compiler</para>
698 <indexterm zone="ch-system-glibc zic">
699 <primary sortas="b-zic">zic</primary>
700 </indexterm>
701 </listitem>
702 </varlistentry>
703
704 <varlistentry id="ld.so">
[5ef820b]705 <term><filename class="libraryfile">ld-&glibc-version;.so</filename></term>
[6a82dd9]706 <listitem>
707 <para>The helper program for shared library executables</para>
708 <indexterm zone="ch-system-glibc ld.so">
[5ef820b]709 <primary sortas="c-ld.so">ld-&glibc-version;.so</primary>
[6a82dd9]710 </indexterm>
711 </listitem>
712 </varlistentry>
713
714 <varlistentry id="libBrokenLocale">
715 <term><filename class="libraryfile">libBrokenLocale</filename></term>
716 <listitem>
717 <para>Used internally by Glibc as a gross hack to get broken programs
718 (e.g., some Motif applications) running. See comments in
719 <filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename>
720 for more information</para>
721 <indexterm zone="ch-system-glibc libBrokenLocale">
722 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
723 </indexterm>
724 </listitem>
725 </varlistentry>
726
727 <varlistentry id="libSegFault">
728 <term><filename class="libraryfile">libSegFault</filename></term>
729 <listitem>
730 <para>The segmentation fault signal handler, used by
731 <command>catchsegv</command></para>
732 <indexterm zone="ch-system-glibc libSegFault">
733 <primary sortas="c-libSegFault">libSegFault</primary>
734 </indexterm>
735 </listitem>
736 </varlistentry>
737
738 <varlistentry id="libanl">
739 <term><filename class="libraryfile">libanl</filename></term>
740 <listitem>
741 <para>An asynchronous name lookup library</para>
742 <indexterm zone="ch-system-glibc libanl">
743 <primary sortas="c-libanl">libanl</primary>
744 </indexterm>
745 </listitem>
746 </varlistentry>
747
748 <varlistentry id="libc">
749 <term><filename class="libraryfile">libc</filename></term>
750 <listitem>
751 <para>The main C library</para>
752 <indexterm zone="ch-system-glibc libc">
753 <primary sortas="c-libc">libc</primary>
754 </indexterm>
755 </listitem>
756 </varlistentry>
757
758 <varlistentry id="libcidn">
759 <term><filename class="libraryfile">libcidn</filename></term>
760 <listitem>
761 <para>Used internally by Glibc for handling internationalized domain
762 names in the <function>getaddrinfo()</function> function</para>
[5f7456b]763 <indexterm zone="ch-system-glibc libcidn">
764 <primary sortas="c-libcidn">libcidn</primary>
[6a82dd9]765 </indexterm>
766 </listitem>
767 </varlistentry>
768
769 <varlistentry id="libcrypt">
770 <term><filename class="libraryfile">libcrypt</filename></term>
771 <listitem>
772 <para>The cryptography library</para>
773 <indexterm zone="ch-system-glibc libcrypt">
774 <primary sortas="c-libcrypt">libcrypt</primary>
775 </indexterm>
776 </listitem>
777 </varlistentry>
778
779 <varlistentry id="libdl">
780 <term><filename class="libraryfile">libdl</filename></term>
781 <listitem>
782 <para>The dynamic linking interface library</para>
783 <indexterm zone="ch-system-glibc libdl">
784 <primary sortas="c-libdl">libdl</primary>
785 </indexterm>
786 </listitem>
787 </varlistentry>
788
789 <varlistentry id="libg">
790 <term><filename class="libraryfile">libg</filename></term>
791 <listitem>
792 <para>Dummy library containing no functions. Previously was a runtime
793 library for <command>g++</command></para>
794 <indexterm zone="ch-system-glibc libg">
795 <primary sortas="c-libg">libg</primary>
796 </indexterm>
797 </listitem>
798 </varlistentry>
799
800 <varlistentry id="libieee">
801 <term><filename class="libraryfile">libieee</filename></term>
802 <listitem>
803 <para>Linking in this module forces error handling rules for math
804 functions as defined by the Institute of Electrical and Electronic
805 Engineers (IEEE). The default is POSIX.1 error handling</para>
806 <indexterm zone="ch-system-glibc libieee">
807 <primary sortas="c-libieee">libieee</primary>
808 </indexterm>
809 </listitem>
810 </varlistentry>
811
812 <varlistentry id="libm">
813 <term><filename class="libraryfile">libm</filename></term>
814 <listitem>
815 <para>The mathematical library</para>
816 <indexterm zone="ch-system-glibc libm">
817 <primary sortas="c-libm">libm</primary>
818 </indexterm>
819 </listitem>
820 </varlistentry>
821
822 <varlistentry id="libmcheck">
823 <term><filename class="libraryfile">libmcheck</filename></term>
824 <listitem>
825 <para>Turns on memory allocation checking when linked to</para>
826 <indexterm zone="ch-system-glibc libmcheck">
827 <primary sortas="c-libmcheck">libmcheck</primary>
828 </indexterm>
829 </listitem>
830 </varlistentry>
831
832 <varlistentry id="libmemusage">
833 <term><filename class="libraryfile">libmemusage</filename></term>
834 <listitem>
835 <para>Used by <command>memusage</command> to help collect
836 information about the memory usage of a program</para>
837 <indexterm zone="ch-system-glibc libmemusage">
838 <primary sortas="c-libmemusage">libmemusage</primary>
839 </indexterm>
840 </listitem>
841 </varlistentry>
842
843 <varlistentry id="libnsl">
844 <term><filename class="libraryfile">libnsl</filename></term>
845 <listitem>
846 <para>The network services library</para>
847 <indexterm zone="ch-system-glibc libnsl">
848 <primary sortas="c-libnsl">libnsl</primary>
849 </indexterm>
850 </listitem>
851 </varlistentry>
852
853 <varlistentry id="libnss">
854 <term><filename class="libraryfile">libnss</filename></term>
855 <listitem>
856 <para>The Name Service Switch libraries, containing functions for
857 resolving host names, user names, group names, aliases, services,
858 protocols, etc.</para>
859 <indexterm zone="ch-system-glibc libnss">
860 <primary sortas="c-libnss">libnss</primary>
861 </indexterm>
862 </listitem>
863 </varlistentry>
864
865 <varlistentry id="libpcprofile">
866 <term><filename class="libraryfile">libpcprofile</filename></term>
867 <listitem>
868 <para>Contains profiling functions used to track the amount of CPU
869 time spent in specific source code lines</para>
870 <indexterm zone="ch-system-glibc libpcprofile">
871 <primary sortas="c-libpcprofile">libpcprofile</primary>
872 </indexterm>
873 </listitem>
874 </varlistentry>
875
876 <varlistentry id="libpthread">
877 <term><filename class="libraryfile">libpthread</filename></term>
878 <listitem>
879 <para>The POSIX threads library</para>
880 <indexterm zone="ch-system-glibc libpthread">
881 <primary sortas="c-libpthread">libpthread</primary>
882 </indexterm>
883 </listitem>
884 </varlistentry>
885
886 <varlistentry id="libresolv">
887 <term><filename class="libraryfile">libresolv</filename></term>
888 <listitem>
889 <para>Contains functions for creating, sending, and interpreting
890 packets to the Internet domain name servers</para>
891 <indexterm zone="ch-system-glibc libresolv">
892 <primary sortas="c-libresolv">libresolv</primary>
893 </indexterm>
894 </listitem>
895 </varlistentry>
896
897 <varlistentry id="librpcsvc">
898 <term><filename class="libraryfile">librpcsvc</filename></term>
899 <listitem>
900 <para>Contains functions providing miscellaneous RPC services</para>
901 <indexterm zone="ch-system-glibc librpcsvc">
902 <primary sortas="c-librpcsvc">librpcsvc</primary>
903 </indexterm>
904 </listitem>
905 </varlistentry>
906
907 <varlistentry id="librt">
908 <term><filename class="libraryfile">librt</filename></term>
909 <listitem>
910 <para>Contains functions providing most of the interfaces specified
911 by the POSIX.1b Realtime Extension</para>
912 <indexterm zone="ch-system-glibc librt">
913 <primary sortas="c-librt">librt</primary>
914 </indexterm>
915 </listitem>
916 </varlistentry>
917
918 <varlistentry id="libthread_db">
919 <term><filename class="libraryfile">libthread_db</filename></term>
920 <listitem>
921 <para>Contains functions useful for building debuggers for
922 multi-threaded programs</para>
923 <indexterm zone="ch-system-glibc libthread_db">
924 <primary sortas="c-libthread_db">libthread_db</primary>
925 </indexterm>
926 </listitem>
927 </varlistentry>
928
929 <varlistentry id="libutil">
930 <term><filename class="libraryfile">libutil</filename></term>
931 <listitem>
932 <para>Contains code for <quote>standard</quote> functions used in
933 many different Unix utilities</para>
934 <indexterm zone="ch-system-glibc libutil">
935 <primary sortas="c-libutil">libutil</primary>
936 </indexterm>
937 </listitem>
938 </varlistentry>
939
940 </variablelist>
941
942 </sect2>
[673b0d8]943
944</sect1>
Note: See TracBrowser for help on using the repository browser.