source: chapter08/glibc.xml@ efd1113

12.1 12.1-rc1 multilib trunk xry111/arm64 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.1 xry111/mips64el xry111/update-glibc
Last change on this file since efd1113 was efd1113, checked in by Xi Ruoyao <xry111@…>, 9 months ago

Glibc: Fix CVE-2023-4806

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