source: chapter08/glibc.xml@ 8dd179b

11.1 11.2 11.2-rc1 arm multilib s6-init trunk xry111/arm64 xry111/clfs-ng xry111/lfs-next xry111/pip3 xry111/queue-11.3 xry111/rust-wip-20221008
Last change on this file since 8dd179b was 8dd179b, checked in by Bruce Dubbs <bdubbs@…>, 10 months ago

Fix typos in glibc and for systemd-oom group syntax

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