source: chapter08/glibc.xml@ ed9b087

xry111/arm64 xry111/arm64-12.0
Last change on this file since ed9b087 was ed9b087, checked in by Xi Ruoyao <xry111@…>, 11 months ago

Merge remote-tracking branch 'origin/trunk' into xry111/arm64

  • Property mode set to 100644
File size: 36.0 KB
Line 
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
8<sect1 id="ch-system-glibc" role="wrap">
9 <?dbhtml filename="glibc.html"?>
10
11 <sect1info condition="script">
12 <productname>glibc</productname>
13 <productnumber>&glibc-version;</productnumber>
14 <address>&glibc-url;</address>
15 </sect1info>
16
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>
36 <seg>&glibc-fin-sbu;</seg>
37 <seg>&glibc-fin-du;</seg>
38 </seglistitem>
39 </segmentedlist>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Glibc</title>
45
46 <para>Some of the Glibc programs use the non-FHS compliant
47 <filename class="directory">/var/db</filename> directory to store
48 their runtime data. Apply the following patch to make such programs
49 store their runtime data in the FHS-compliant locations:</para>
50
51<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
52
53 <!-- https://sourceware.org/bugzilla/show_bug.cgi?id=30068
54 Upstream fix also added a test case and renamed "prec" to
55 "prec_inc". We'll test this with MPFR test suite so we don't
56 need the test here, and the renaming does not affect program
57 behavior. -->
58 <para>Fix a security issue identified upstream:</para>
59
60<screen><userinput remap="pre">sed '/width -=/s/workend - string/number_length/' \
61 -i stdio-common/vfprintf-process-arg.c</userinput></screen>
62
63 <para>The Glibc documentation recommends building Glibc
64 in a dedicated build directory:</para>
65
66<screen><userinput remap="pre">mkdir -v build
67cd build</userinput></screen>
68
69 <para>Ensure that the <command>ldconfig</command> and <command>sln</command>
70 utilities will be installed into
71 <filename class="directory">/usr/sbin</filename>:</para>
72
73<screen><userinput remap="pre">echo "rootsbindir=/usr/sbin" &gt; configparms</userinput></screen>
74
75 <para>Prepare Glibc for compilation:</para>
76
77<screen><userinput remap="configure">../configure --prefix=/usr \
78 --disable-werror \
79 --enable-kernel=&min-kernel; \
80 --enable-stack-protector=strong \
81 --with-headers=/usr/include \
82 libc_cv_slibdir=/usr/lib</userinput></screen>
83
84 <variablelist>
85 <title>The meaning of the configure options:</title>
86
87 <varlistentry>
88 <term><parameter>--disable-werror</parameter></term>
89 <listitem>
90 <para>This option disables the -Werror option passed to
91 GCC. This is necessary for running the test suite.</para>
92 </listitem>
93 </varlistentry>
94
95 <varlistentry>
96 <term><parameter>--enable-kernel=&min-kernel;</parameter></term>
97 <listitem>
98 <para>This option tells the build system that this Glibc may
99 be used with kernels as old as &min-kernel;. This means generating
100 workarounds in case a system call introduced in a later version
101 cannot be used.</para>
102 </listitem>
103 </varlistentry>
104
105 <varlistentry>
106 <term><parameter>--enable-stack-protector=strong</parameter></term>
107 <listitem>
108 <para>This option increases system security by adding
109 extra code to check for buffer overflows, such as stack
110 smashing attacks.</para>
111 </listitem>
112 </varlistentry>
113<!-- do we need this one? -->
114 <varlistentry>
115 <term><parameter>--with-headers=/usr/include</parameter></term>
116 <listitem>
117 <para>This option tells the build system where to find the
118 kernel API headers.</para>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry>
123 <term><parameter>libc_cv_slibdir=/usr/lib</parameter></term>
124 <listitem>
125 <para>This variable sets the correct library for all
126 systems. We do not want lib64 to be used.</para>
127 </listitem>
128 </varlistentry>
129
130 </variablelist>
131
132 <para>Compile the package:</para>
133
134<screen><userinput remap="make">make</userinput></screen>
135
136 <important>
137 <para>In this section, the test suite for Glibc is considered critical.
138 Do not skip it under any circumstance.</para>
139 </important>
140
141 <para>Generally a few tests do not pass. The test failures listed below
142 are usually safe to ignore.</para>
143
144<!-- Use remap="make" here to work around a jhalfs issue. -->
145<!--<screen><userinput remap="make">case $(uname -m) in
146 i?86) ln -sfnv $PWD/elf/ld-linux.so.2 /lib ;;
147 x86_64) ln -sfnv $PWD/elf/ld-linux-x86-64.so.2 /lib ;;
148esac</userinput></screen>
149
150 <note><para>The symbolic link above is needed to run the tests at this
151 stage of building in the chroot environment. It will be overwritten
152 in the install phase below.</para></note>
153-->
154<screen><userinput remap="test">make check</userinput></screen>
155
156 <para>You may see some test failures. The Glibc test suite is
157 somewhat dependent on the host system. A few failures out of
158 over 5000 tests can generally be ignored. This is a list of the
159 most common issues seen for recent versions of LFS:</para>
160
161 <itemizedlist>
162
163 <listitem>
164 <para><emphasis>io/tst-lchmod</emphasis>
165 is known to fail in the LFS chroot environment.</para>
166 </listitem>
167
168 <listitem>
169 <para><emphasis>misc/tst-ttyname</emphasis>
170 is known to fail in the LFS chroot environment.</para>
171 </listitem>
172
173 <!-- https://sourceware.org/pipermail/libc-alpha/2022-August/141567.html -->
174 <listitem>
175 <para>The <emphasis>stdlib/tst-arc4random-thread</emphasis>
176 test is known to fail if the host kernel is relatively old.</para>
177 </listitem>
178
179 <listitem>
180 <para>Some tests, for example
181 <emphasis>nss/tst-nss-files-hosts-multi</emphasis>,
182 are known to fail on relatively slow systems due to an internal
183 timeout.</para>
184 </listitem>
185
186 <listitem>
187 <para>Additionally, some tests may fail with a relatively old CPU
188 model or host kernel version.</para>
189 </listitem>
190 </itemizedlist>
191
192 <para>Though it is a harmless message, the install stage of Glibc will
193 complain about the absence of <filename>/etc/ld.so.conf</filename>.
194 Prevent this warning with:</para>
195
196<screen><userinput remap="install">touch /etc/ld.so.conf</userinput></screen>
197
198 <para>Fix the Makefile to skip an unneeded sanity check
199 that fails in the LFS partial environment:
200 </para>
201
202<screen><userinput remap="install">sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile</userinput></screen>
203
204 <para>Install the package:</para>
205
206<screen><userinput remap="install">make install</userinput></screen>
207
208 <para>Fix a hardcoded path to the executable loader in the
209 <command>ldd</command> script:</para>
210
211<screen><userinput remap="install">sed '/RTLDLIST=/s@/usr@@g' -i /usr/bin/ldd</userinput></screen>
212
213 <para>Install the configuration file and runtime directory for
214 <command>nscd</command>:</para>
215
216<screen><userinput remap="install">cp -v ../nscd/nscd.conf /etc/nscd.conf
217mkdir -pv /var/cache/nscd</userinput></screen>
218
219 <para revision="systemd">Install the systemd support files for
220 <command>nscd</command>:</para>
221
222 <screen revision="systemd"><userinput remap="install">install -v -Dm644 ../nscd/nscd.tmpfiles /usr/lib/tmpfiles.d/nscd.conf
223install -v -Dm644 ../nscd/nscd.service /usr/lib/systemd/system/nscd.service</userinput></screen>
224
225 <para>Next, install the locales that can make the system respond in a
226 different language. None of these locales are required, but if some of them
227 are missing, the test suites of some packages will skip important
228 test cases.</para>
229
230 <para>Individual locales can be installed using the
231 <command>localedef</command> program. E.g., the second
232 <command>localedef</command> command below combines the
233 <filename>/usr/share/i18n/locales/cs_CZ</filename>
234 charset-independent locale definition with the
235 <filename>/usr/share/i18n/charmaps/UTF-8.gz</filename>
236 charmap definition and appends the result to the
237 <filename>/usr/lib/locale/locale-archive</filename> file.
238 The following instructions will install the minimum set of
239 locales necessary for the optimal coverage of tests:</para>
240
241<screen role="nodump"><userinput remap="locale-test">mkdir -pv /usr/lib/locale
242localedef -i POSIX -f UTF-8 C.UTF-8 2> /dev/null || true
243localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
244localedef -i de_DE -f ISO-8859-1 de_DE
245localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
246localedef -i de_DE -f UTF-8 de_DE.UTF-8
247localedef -i el_GR -f ISO-8859-7 el_GR
248localedef -i en_GB -f ISO-8859-1 en_GB
249localedef -i en_GB -f UTF-8 en_GB.UTF-8
250localedef -i en_HK -f ISO-8859-1 en_HK
251localedef -i en_PH -f ISO-8859-1 en_PH
252localedef -i en_US -f ISO-8859-1 en_US
253localedef -i en_US -f UTF-8 en_US.UTF-8
254localedef -i es_ES -f ISO-8859-15 es_ES@euro
255localedef -i es_MX -f ISO-8859-1 es_MX
256localedef -i fa_IR -f UTF-8 fa_IR
257localedef -i fr_FR -f ISO-8859-1 fr_FR
258localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
259localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
260localedef -i is_IS -f ISO-8859-1 is_IS
261localedef -i is_IS -f UTF-8 is_IS.UTF-8
262localedef -i it_IT -f ISO-8859-1 it_IT
263localedef -i it_IT -f ISO-8859-15 it_IT@euro
264localedef -i it_IT -f UTF-8 it_IT.UTF-8
265localedef -i ja_JP -f EUC-JP ja_JP
266localedef -i ja_JP -f SHIFT_JIS ja_JP.SJIS 2> /dev/null || true
267localedef -i ja_JP -f UTF-8 ja_JP.UTF-8
268localedef -i nl_NL@euro -f ISO-8859-15 nl_NL@euro
269localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R
270localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
271localedef -i se_NO -f UTF-8 se_NO.UTF-8
272localedef -i ta_IN -f UTF-8 ta_IN.UTF-8
273localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
274localedef -i zh_CN -f GB18030 zh_CN.GB18030
275localedef -i zh_HK -f BIG5-HKSCS zh_HK.BIG5-HKSCS
276localedef -i zh_TW -f UTF-8 zh_TW.UTF-8</userinput></screen>
277
278 <para>In addition, install the locale for your own country, language and
279 character set.</para>
280
281 <para>Alternatively, install all the locales listed in the
282 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
283 (it includes every locale listed above and many more) at once with the
284 following time-consuming command:</para>
285
286<screen><userinput remap="locale-full">make localedata/install-locales</userinput></screen>
287
288 <para>Then use the <command>localedef</command> command to create and
289 install locales not listed in the
290 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
291 when you need them. For instance, the following two locales are
292 needed for some tests later in this chapter:</para>
293
294<screen role="nodump"><userinput remap="locale-full">localedef -i POSIX -f UTF-8 C.UTF-8 2> /dev/null || true
295localedef -i ja_JP -f SHIFT_JIS ja_JP.SJIS 2> /dev/null || true</userinput></screen>
296
297 <note><para>Glibc now uses libidn2 when resolving internationalized
298 domain names. This is a run time dependency. If this capability
299 is needed, the instructions for installing libidn2 are in the
300 <ulink url="&blfs-book;general/libidn2.html">BLFS libidn2 page</ulink>.
301 </para></note>
302
303 </sect2>
304
305 <sect2 id="conf-glibc" role="configuration">
306 <title>Configuring Glibc</title>
307
308 <indexterm zone="conf-glibc">
309 <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
310 </indexterm>
311
312 <indexterm zone="conf-glibc">
313 <primary sortas="e-/etc/localtime">/etc/localtime</primary>
314 </indexterm>
315
316 <sect3>
317 <title>Adding nsswitch.conf</title>
318
319 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
320 because the Glibc defaults do not work well in a networked environment.
321 </para>
322
323 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
324 following:</para>
325
326<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
327<literal># Begin /etc/nsswitch.conf
328
329passwd: files
330group: files
331shadow: files
332
333hosts: files dns
334networks: files
335
336protocols: files
337services: files
338ethers: files
339rpc: files
340
341# End /etc/nsswitch.conf</literal>
342EOF</userinput></screen>
343
344 </sect3>
345
346 <sect3>
347 <title>Adding Time Zone Data</title>
348
349 <para>Install and set up the time zone data with the following:</para>
350<screen><userinput>tar -xf ../../tzdata&tzdata-version;.tar.gz
351
352ZONEINFO=/usr/share/zoneinfo
353mkdir -pv $ZONEINFO/{posix,right}
354
355for tz in etcetera southamerica northamerica europe africa antarctica \
356 asia australasia backward; do
357 zic -L /dev/null -d $ZONEINFO ${tz}
358 zic -L /dev/null -d $ZONEINFO/posix ${tz}
359 zic -L leapseconds -d $ZONEINFO/right ${tz}
360done
361
362cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
363zic -d $ZONEINFO -p America/New_York
364unset ZONEINFO</userinput></screen>
365
366 <variablelist>
367 <title>The meaning of the zic commands:</title>
368
369 <varlistentry>
370 <term><parameter>zic -L /dev/null ...</parameter></term>
371 <listitem>
372 <para>This creates posix time zones without any leap seconds. It is
373 conventional to put these in both
374 <filename class="directory">zoneinfo</filename> and
375 <filename class="directory">zoneinfo/posix</filename>. It is
376 necessary to put the POSIX time zones in
377 <filename class="directory">zoneinfo</filename>, otherwise various
378 test suites will report errors. On an embedded system, where space is
379 tight and you do not intend to ever update the time zones, you could save
380 1.9 MB by not using the <filename class="directory">posix</filename>
381 directory, but some applications or test suites might produce some
382 failures.</para>
383 </listitem>
384 </varlistentry>
385 <varlistentry>
386 <term><parameter>zic -L leapseconds ...</parameter></term>
387 <listitem>
388 <para>This creates right time zones, including leap seconds. On an
389 embedded system, where space is tight and you do not intend to
390 ever update the time zones, or care about the correct time, you could
391 save 1.9MB by omitting the <filename class="directory">right</filename>
392 directory.</para>
393 </listitem>
394 </varlistentry>
395 <varlistentry>
396 <term><parameter>zic ... -p ...</parameter></term>
397 <listitem>
398 <para>This creates the <filename>posixrules</filename> file. We use
399 New York because POSIX requires the daylight savings time rules
400 to be in accordance with US rules.</para>
401 </listitem>
402 </varlistentry>
403 </variablelist>
404
405
406 <para>One way to determine the local time zone is to run the following
407 script:</para>
408
409<screen role="nodump"><userinput>tzselect</userinput></screen>
410
411 <para>After answering a few questions about the location, the script will
412 output the name of the time zone (e.g.,
413 <emphasis>America/Edmonton</emphasis>). There are also some other possible
414 time zones listed in <filename
415 class='directory'>/usr/share/zoneinfo</filename> such as
416 <emphasis>Canada/Eastern</emphasis> or <emphasis>EST5EDT</emphasis> that
417 are not identified by the script but can be used.</para>
418
419 <para>Then create the <filename>/etc/localtime</filename> file by
420 running:</para>
421
422<screen><userinput>ln -sfv /usr/share/zoneinfo/<replaceable>&lt;xxx&gt;</replaceable> /etc/localtime</userinput></screen>
423
424 <para>Replace <replaceable>&lt;xxx&gt;</replaceable> with the name of the
425 time zone selected (e.g., Canada/Eastern).</para>
426
427 </sect3>
428
429 <sect3 id="conf-ld" role="configuration">
430 <title>Configuring the Dynamic Loader</title>
431
432 <indexterm zone="conf-ld">
433 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
434 </indexterm>
435
436 <para>By default, the dynamic loader (<filename
437 class="libraryfile">/lib/ld-linux-aarch64.so.1</filename>) searches through
438 <filename class="directory">/usr/lib</filename> for dynamic libraries
439 that are needed by programs as they are run. However, if there are
440 libraries in directories other than
441 <filename class="directory">/usr/lib</filename>, these need to be added
442 to the <filename>/etc/ld.so.conf</filename> file in order for the
443 dynamic loader to find them. Two directories that are commonly known
444 to contain additional libraries are <filename
445 class="directory">/usr/local/lib</filename> and <filename
446 class="directory">/opt/lib</filename>, so add those directories to the
447 dynamic loader's search path.</para>
448
449 <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
450 following:</para>
451
452<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
453<literal># Begin /etc/ld.so.conf
454/usr/local/lib
455/opt/lib
456</literal>
457EOF</userinput></screen>
458
459 <para>If desired, the dynamic loader can also search a directory and
460 include the contents of files found there. Generally the files in
461 this include directory are one line specifying the desired library path.
462 To add this capability run the following commands:</para>
463
464<screen role="nodump"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
465<literal># Add an include directory
466include /etc/ld.so.conf.d/*.conf
467</literal>
468EOF
469mkdir -pv /etc/ld.so.conf.d</userinput></screen>
470
471 </sect3>
472 </sect2>
473
474 <sect2 id="contents-glibc" role="content">
475 <title>Contents of Glibc</title>
476
477 <segmentedlist>
478 <segtitle>Installed programs</segtitle>
479 <segtitle>Installed libraries</segtitle>
480 <segtitle>Installed directories</segtitle>
481
482 <seglistitem>
483 <seg>gencat, getconf, getent, iconv, iconvconfig, ldconfig,
484 ldd, lddlibc4,
485 ld.so (symlink to ld-linux-aarch64[_be].so.1),
486 locale, localedef, makedb, mtrace, nscd,
487 pcprofiledump, pldd, sln, sotruss, sprof, tzselect, xtrace,
488 zdump, and zic</seg>
489 <seg>ld-linux-aarch64[_be].so.1,
490 libBrokenLocale.{a,so}, libanl.{a,so},
491 libc.{a,so}, libc_nonshared.a, libc_malloc_debug.so,
492 libcrypt.{a,so}, libdl.{a,so.2}, libg.a, libm.{a,so},
493 libmcheck.a, libmemusage.so, libmvec.{a,so}, libnsl.so.1,
494 libnss_compat.so, libnss_dns.so, libnss_files.so, libnss_hesiod.so,
495 libpcprofile.so, libpthread.{a,so.0},
496 libresolv.{a,so}, librt.{a,so.1},
497 libthread_db.so, and libutil.{a,so.1}</seg>
498 <seg>/usr/include/arpa, /usr/include/bits, /usr/include/gnu,
499 /usr/include/net, /usr/include/netash, /usr/include/netatalk,
500 /usr/include/netax25, /usr/include/neteconet, /usr/include/netinet,
501 /usr/include/netipx, /usr/include/netiucv, /usr/include/netpacket,
502 /usr/include/netrom, /usr/include/netrose, /usr/include/nfs,
503 /usr/include/protocols, /usr/include/rpc,
504 /usr/include/sys, /usr/lib/audit, /usr/lib/gconv, /usr/lib/locale,
505 /usr/libexec/getconf, /usr/share/i18n, /usr/share/zoneinfo,
506 /var/cache/nscd, and /var/lib/nss_db</seg>
507 </seglistitem>
508 </segmentedlist>
509
510 <variablelist>
511 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
512 <?dbfo list-presentation="list"?>
513 <?dbhtml list-presentation="table"?>
514
515 <varlistentry id="gencat">
516 <term><command>gencat</command></term>
517 <listitem>
518 <para>Generates message catalogues</para>
519 <indexterm zone="ch-system-glibc gencat">
520 <primary sortas="b-gencat">gencat</primary>
521 </indexterm>
522 </listitem>
523 </varlistentry>
524
525 <varlistentry id="getconf">
526 <term><command>getconf</command></term>
527 <listitem>
528 <para>Displays the system configuration values for file system
529 specific variables</para>
530 <indexterm zone="ch-system-glibc getconf">
531 <primary sortas="b-getconf">getconf</primary>
532 </indexterm>
533 </listitem>
534 </varlistentry>
535
536 <varlistentry id="getent">
537 <term><command>getent</command></term>
538 <listitem>
539 <para>Gets entries from an administrative database</para>
540 <indexterm zone="ch-system-glibc getent">
541 <primary sortas="b-getent">getent</primary>
542 </indexterm>
543 </listitem>
544 </varlistentry>
545
546 <varlistentry id="iconv">
547 <term><command>iconv</command></term>
548 <listitem>
549 <para>Performs character set conversion</para>
550 <indexterm zone="ch-system-glibc iconv">
551 <primary sortas="b-iconv">iconv</primary>
552 </indexterm>
553 </listitem>
554 </varlistentry>
555
556 <varlistentry id="iconvconfig">
557 <term><command>iconvconfig</command></term>
558 <listitem>
559 <para>Creates fastloading <command>iconv</command> module configuration
560 files</para>
561 <indexterm zone="ch-system-glibc iconvconfig">
562 <primary sortas="b-iconvconfig">iconvconfig</primary>
563 </indexterm>
564 </listitem>
565 </varlistentry>
566
567 <varlistentry id="ldconfig">
568 <term><command>ldconfig</command></term>
569 <listitem>
570 <para>Configures the dynamic linker runtime bindings</para>
571 <indexterm zone="ch-system-glibc ldconfig">
572 <primary sortas="b-ldconfig">ldconfig</primary>
573 </indexterm>
574 </listitem>
575 </varlistentry>
576
577 <varlistentry id="ldd">
578 <term><command>ldd</command></term>
579 <listitem>
580 <para>Reports which shared libraries are required
581 by each given program or shared library</para>
582 <indexterm zone="ch-system-glibc ldd">
583 <primary sortas="b-ldd">ldd</primary>
584 </indexterm>
585 </listitem>
586 </varlistentry>
587
588 <varlistentry id="lddlibc4">
589 <term><command>lddlibc4</command></term>
590 <listitem>
591 <para>Assists <command>ldd</command> with object files.
592 It does not exist on newer architectures like x86_64</para>
593 <indexterm zone="ch-system-glibc lddlibc4">
594 <primary sortas="b-lddlibc4">lddlibc4</primary>
595 </indexterm>
596 </listitem>
597 </varlistentry>
598
599 <varlistentry id="locale">
600 <term><command>locale</command></term>
601 <listitem>
602 <para>Prints various information about the current locale</para>
603 <indexterm zone="ch-system-glibc locale">
604 <primary sortas="b-locale">locale</primary>
605 </indexterm>
606 </listitem>
607 </varlistentry>
608
609 <varlistentry id="localedef">
610 <term><command>localedef</command></term>
611 <listitem>
612 <para>Compiles locale specifications</para>
613 <indexterm zone="ch-system-glibc localedef">
614 <primary sortas="b-localedef">localedef</primary>
615 </indexterm>
616 </listitem>
617 </varlistentry>
618
619 <varlistentry id="makedb">
620 <term><command>makedb</command></term>
621 <listitem>
622 <para>Creates a simple database from textual input</para>
623 <indexterm zone="ch-system-glibc makedb">
624 <primary sortas="b-makedb">makedb</primary>
625 </indexterm>
626 </listitem>
627 </varlistentry>
628
629 <varlistentry id="mtrace">
630 <term><command>mtrace</command></term>
631 <listitem>
632 <para>Reads and interprets a memory trace file and displays a summary
633 in human-readable format</para>
634 <indexterm zone="ch-system-glibc mtrace">
635 <primary sortas="b-mtrace">mtrace</primary>
636 </indexterm>
637 </listitem>
638 </varlistentry>
639
640 <varlistentry id="nscd">
641 <term><command>nscd</command></term>
642 <listitem>
643 <para>A daemon that provides a cache for the most common name
644 service requests</para>
645 <indexterm zone="ch-system-glibc nscd">
646 <primary sortas="b-nscd">nscd</primary>
647 </indexterm>
648 </listitem>
649 </varlistentry>
650
651 <varlistentry id="pcprofiledump">
652 <term><command>pcprofiledump</command></term>
653 <listitem>
654 <para>Dump information generated by PC profiling</para>
655 <indexterm zone="ch-system-glibc pcprofiledump">
656 <primary sortas="b-pcprofiledump">pcprofiledump</primary>
657 </indexterm>
658 </listitem>
659 </varlistentry>
660
661 <varlistentry id="pldd">
662 <term><command>pldd</command></term>
663 <listitem>
664 <para>Lists dynamic shared objects used by running processes</para>
665 <indexterm zone="ch-system-glibc pldd">
666 <primary sortas="b-pldd">pldd</primary>
667 </indexterm>
668 </listitem>
669 </varlistentry>
670
671 <varlistentry id="sln">
672 <term><command>sln</command></term>
673 <listitem>
674 <para>A statically linked <command>ln</command> program</para>
675 <indexterm zone="ch-system-glibc sln">
676 <primary sortas="b-sln">sln</primary>
677 </indexterm>
678 </listitem>
679 </varlistentry>
680
681 <varlistentry id="sotruss">
682 <term><command>sotruss</command></term>
683 <listitem>
684 <para>Traces shared library procedure calls of a specified command</para>
685 <indexterm zone="ch-system-glibc sotruss">
686 <primary sortas="b-sotruss">sotruss</primary>
687 </indexterm>
688 </listitem>
689 </varlistentry>
690
691 <varlistentry id="sprof">
692 <term><command>sprof</command></term>
693 <listitem>
694 <para>Reads and displays shared object profiling data</para>
695 <indexterm zone="ch-system-glibc sprof">
696 <primary sortas="b-sprof">sprof</primary>
697 </indexterm>
698 </listitem>
699 </varlistentry>
700
701 <varlistentry id="tzselect">
702 <term><command>tzselect</command></term>
703 <listitem>
704 <para>Asks the user about the location of the system and reports
705 the corresponding time zone description</para>
706 <indexterm zone="ch-system-glibc tzselect">
707 <primary sortas="b-tzselect">tzselect</primary>
708 </indexterm>
709 </listitem>
710 </varlistentry>
711
712 <varlistentry id="xtrace">
713 <term><command>xtrace</command></term>
714 <listitem>
715 <para>Traces the execution of a program by printing the currently
716 executed function</para>
717 <indexterm zone="ch-system-glibc xtrace">
718 <primary sortas="b-xtrace">xtrace</primary>
719 </indexterm>
720 </listitem>
721 </varlistentry>
722
723 <varlistentry id="zdump">
724 <term><command>zdump</command></term>
725 <listitem>
726 <para>The time zone dumper</para>
727 <indexterm zone="ch-system-glibc zdump">
728 <primary sortas="b-zdump">zdump</primary>
729 </indexterm>
730 </listitem>
731 </varlistentry>
732
733 <varlistentry id="zic">
734 <term><command>zic</command></term>
735 <listitem>
736 <para>The time zone compiler</para>
737 <indexterm zone="ch-system-glibc zic">
738 <primary sortas="b-zic">zic</primary>
739 </indexterm>
740 </listitem>
741 </varlistentry>
742
743 <varlistentry id="ld.so">
744 <term><filename class="libraryfile">ld-*.so</filename></term>
745 <listitem>
746 <para>The helper program for shared library executables</para>
747 <indexterm zone="ch-system-glibc ld.so">
748 <primary sortas="c-ld.so">ld-&glibc-version;.so</primary>
749 </indexterm>
750 </listitem>
751 </varlistentry>
752
753 <varlistentry id="libBrokenLocale">
754 <term><filename class="libraryfile">libBrokenLocale</filename></term>
755 <listitem>
756 <para>Used internally by Glibc as a gross hack to get broken programs
757 (e.g., some Motif applications) running. See comments in
758 <filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename>
759 for more information</para>
760 <indexterm zone="ch-system-glibc libBrokenLocale">
761 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
762 </indexterm>
763 </listitem>
764 </varlistentry>
765
766 <varlistentry id="libanl">
767 <term><filename class="libraryfile">libanl</filename></term>
768 <listitem>
769 <para>Dummy library containing no functions. Previously was the
770 asynchronous name lookup library, whose functions are now in
771 <filename class='libraryfile'>libc</filename></para>
772 <indexterm zone="ch-system-glibc libanl">
773 <primary sortas="c-libanl">libanl</primary>
774 </indexterm>
775 </listitem>
776 </varlistentry>
777
778 <varlistentry id="libc">
779 <term><filename class="libraryfile">libc</filename></term>
780 <listitem>
781 <para>The main C library</para>
782 <indexterm zone="ch-system-glibc libc">
783 <primary sortas="c-libc">libc</primary>
784 </indexterm>
785 </listitem>
786 </varlistentry>
787
788 <varlistentry id="libc_malloc_debug">
789 <term><filename class="libraryfile">libc_malloc_debug</filename></term>
790 <listitem>
791 <para>Turns on memory allocation checking when preloaded</para>
792 <indexterm zone="ch-system-glibc libc_malloc_debug">
793 <primary sortas="c-libc_malloc_debug">libc_malloc_debug</primary>
794 </indexterm>
795 </listitem>
796 </varlistentry>
797
798 <varlistentry id="libcrypt">
799 <term><filename class="libraryfile">libcrypt</filename></term>
800 <listitem>
801 <para>The cryptography library</para>
802 <indexterm zone="ch-system-glibc libcrypt">
803 <primary sortas="c-libcrypt">libcrypt</primary>
804 </indexterm>
805 </listitem>
806 </varlistentry>
807
808 <varlistentry id="libdl">
809 <term><filename class="libraryfile">libdl</filename></term>
810 <listitem>
811 <para>Dummy library containing no functions. Previously was the
812 dynamic linking interface library, whose functions are now in
813 <filename class="libraryfile">libc</filename></para>
814 <indexterm zone="ch-system-glibc libdl">
815 <primary sortas="c-libdl">libdl</primary>
816 </indexterm>
817 </listitem>
818 </varlistentry>
819
820 <varlistentry id="libg">
821 <term><filename class="libraryfile">libg</filename></term>
822 <listitem>
823 <para>Dummy library containing no functions. Previously was a runtime
824 library for <command>g++</command></para>
825 <indexterm zone="ch-system-glibc libg">
826 <primary sortas="c-libg">libg</primary>
827 </indexterm>
828 </listitem>
829 </varlistentry>
830
831 <varlistentry id="libm">
832 <term><filename class="libraryfile">libm</filename></term>
833 <listitem>
834 <para>The mathematical library</para>
835 <indexterm zone="ch-system-glibc libm">
836 <primary sortas="c-libm">libm</primary>
837 </indexterm>
838 </listitem>
839 </varlistentry>
840
841 <varlistentry id="libmvec">
842 <term><filename class="libraryfile">libmvec</filename></term>
843 <listitem>
844 <para>The vector math library, linked in as needed
845 when <filename class='libraryfile'>libm</filename> is used</para>
846 <indexterm zone="ch-system-glibc libmvec">
847 <primary sortas="c-libmvec">libmvec</primary>
848 </indexterm>
849 </listitem>
850 </varlistentry>
851
852 <varlistentry id="libmcheck">
853 <term><filename class="libraryfile">libmcheck</filename></term>
854 <listitem>
855 <para>Turns on memory allocation checking when linked to</para>
856 <indexterm zone="ch-system-glibc libmcheck">
857 <primary sortas="c-libmcheck">libmcheck</primary>
858 </indexterm>
859 </listitem>
860 </varlistentry>
861
862 <varlistentry id="libmemusage">
863 <term><filename class="libraryfile">libmemusage</filename></term>
864 <listitem>
865 <para>Used by <command>memusage</command> to help collect
866 information about the memory usage of a program</para>
867 <indexterm zone="ch-system-glibc libmemusage">
868 <primary sortas="c-libmemusage">libmemusage</primary>
869 </indexterm>
870 </listitem>
871 </varlistentry>
872
873 <varlistentry id="libnsl">
874 <term><filename class="libraryfile">libnsl</filename></term>
875 <listitem>
876 <para>The network services library, now deprecated</para>
877 <indexterm zone="ch-system-glibc libnsl">
878 <primary sortas="c-libnsl">libnsl</primary>
879 </indexterm>
880 </listitem>
881 </varlistentry>
882
883 <varlistentry id="libnss">
884 <term><filename class="libraryfile">libnss_*</filename></term>
885 <listitem>
886 <para>The Name Service Switch modules, containing functions for
887 resolving host names, user names, group names, aliases, services,
888 protocols, etc. Loaded by
889 <filename class='libraryfile'>libc</filename> according to the
890 configuration in <filename>/etc/nsswitch.conf</filename></para>
891 <indexterm zone="ch-system-glibc libnss">
892 <primary sortas="c-libnss">libnss_*</primary>
893 </indexterm>
894 </listitem>
895 </varlistentry>
896
897 <varlistentry id="libpcprofile">
898 <term><filename class="libraryfile">libpcprofile</filename></term>
899 <listitem>
900 <para>Can be preloaded to PC profile an executable</para>
901 <indexterm zone="ch-system-glibc libpcprofile">
902 <primary sortas="c-libpcprofile">libpcprofile</primary>
903 </indexterm>
904 </listitem>
905 </varlistentry>
906
907 <varlistentry id="libpthread">
908 <term><filename class="libraryfile">libpthread</filename></term>
909 <listitem>
910 <para>Dummy library containing no functions. Previously contained
911 functions providing most of the interfaces specified
912 by the POSIX.1c Threads Extensions and the semaphore interfaces
913 specified by the POSIX.1b Real-time Extensions, now the functions
914 are in <filename class="libraryfile">libc</filename></para>
915 <indexterm zone="ch-system-glibc libpthread">
916 <primary sortas="c-libpthread">libpthread</primary>
917 </indexterm>
918 </listitem>
919 </varlistentry>
920
921 <varlistentry id="libresolv">
922 <term><filename class="libraryfile">libresolv</filename></term>
923 <listitem>
924 <para>Contains functions for creating, sending, and interpreting
925 packets to the Internet domain name servers</para>
926 <indexterm zone="ch-system-glibc libresolv">
927 <primary sortas="c-libresolv">libresolv</primary>
928 </indexterm>
929 </listitem>
930 </varlistentry>
931
932 <varlistentry id="librt">
933 <term><filename class="libraryfile">librt</filename></term>
934 <listitem>
935 <para>Contains functions providing most of the interfaces specified
936 by the POSIX.1b Real-time Extensions</para>
937 <indexterm zone="ch-system-glibc librt">
938 <primary sortas="c-librt">librt</primary>
939 </indexterm>
940 </listitem>
941 </varlistentry>
942
943 <varlistentry id="libthread_db">
944 <term><filename class="libraryfile">libthread_db</filename></term>
945 <listitem>
946 <para>Contains functions useful for building debuggers for
947 multi-threaded programs</para>
948 <indexterm zone="ch-system-glibc libthread_db">
949 <primary sortas="c-libthread_db">libthread_db</primary>
950 </indexterm>
951 </listitem>
952 </varlistentry>
953
954 <varlistentry id="libutil">
955 <term><filename class="libraryfile">libutil</filename></term>
956 <listitem>
957 <para>Dummy library containing no functions. Previously contained
958 code for <quote>standard</quote> functions used in
959 many different Unix utilities. These functions are now in
960 <filename class="libraryfile">libc</filename></para>
961 <indexterm zone="ch-system-glibc libutil">
962 <primary sortas="c-libutil">libutil</primary>
963 </indexterm>
964 </listitem>
965 </varlistentry>
966
967 </variablelist>
968
969 </sect2>
970
971</sect1>
Note: See TracBrowser for help on using the repository browser.