source: chapter08/glibc.xml@ 80838616

11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 80838616 was 80838616, checked in by Xi Ruoyao <xry111@…>, 3 years ago

glibc: remove description of libc_cv_rtlddir for now

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