source: chapter06/glibc.xml@ dd30a4b

7.9-systemd
Last change on this file since dd30a4b was dd30a4b, checked in by DJ Lucas <dj@…>, 8 years ago

Merge from trunk r10991.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd@10992 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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