source: chapter08/glibc.xml@ 7a8fcc39

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

glibc: Remove sed and option unneeded with 2.38

--disable-crypt is now the default, and the security fix for 2.37 is
included.

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