source: chapter06/glibc.xml@ e860d2c

10.0 10.0-rc1 10.1 10.1-rc1 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 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 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 e860d2c was 2e02c35, checked in by Matthew Burgess <matthew@…>, 19 years ago

Upgrade to gcc-4.0.1 (merge of gcc4 branch)

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6819 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 26.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 <!ENTITY % patches-entities SYSTEM "../patches.ent">
5 %general-entities;
6 %patches-entities;
7]>
8<sect1 id="ch-system-glibc" role="wrap">
9<title>Glibc-&glibc-version;</title>
10<?dbhtml filename="glibc.html"?>
11
12<indexterm zone="ch-system-glibc"><primary sortas="a-Glibc">Glibc</primary></indexterm>
13
14<sect2 role="package"><title/>
15<para>The Glibc package contains the main C library. This library provides
16the basic routines for allocating memory, searching directories, opening and
17closing files, reading and writing files, string handling, pattern matching,
18arithmetic, and so on.</para>
19
20<segmentedlist>
21<segtitle>&buildtime;</segtitle>
22<segtitle>&diskspace;</segtitle>
23<seglistitem><seg>16.7 SBU</seg><seg>500</seg></seglistitem>
24</segmentedlist>
25
26<segmentedlist>
27<segtitle>&dependencies;</segtitle>
28<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
29Gawk, GCC, Gettext, Grep, Make, Perl, Sed, and Texinfo</seg></seglistitem>
30</segmentedlist>
31</sect2>
32
33<sect2 role="installation">
34<title>Installation of Glibc</title>
35
36<note><para>Some packages outside of LFS suggest installing GNU libiconv in
37order to translate data from one encoding to another. The project's home page
38(<ulink url="http://www.gnu.org/software/libiconv/"/>) says <quote>This library
39provides an <function>iconv()</function> implementation, for use on systems
40which don't have one, or whose implementation cannot convert from/to Unicode.
41</quote> Glibc provides an <function>iconv()</function> implementation and can
42convert from/to Unicode, therefore libiconv is not required on an LFS
43system.</para></note>
44
45<para>This package is known to have issues when its default
46optimization flags (including the <parameter>-march</parameter> and
47<parameter>-mcpu</parameter> options) are changed. If any environment
48variables that override default optimizations have been defined, such
49as <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar>,
50unset them when building Glibc.</para>
51
52<para>The Glibc build system is self-contained and will install
53perfectly, even though the compiler specs file and linker are still
54pointing at <filename class="directory">/tools</filename>. The specs
55and linker cannot be adjusted before the Glibc install because the
56Glibc autoconf tests would give false results and defeat the goal
57of achieving a clean build.</para>
58
59<para>The linuxthreads tarball contains the man pages for the
60threading libraries installed by Glibc. Unpack the tarball from
61within the Glibc source directory:</para>
62
63<screen><userinput>tar -xf /sources/glibc-linuxthreads-&glibc-version;.tar.bz2</userinput></screen>
64
65<para>Glibc has two tests which fail when the running kernel is 2.6.11 or later.
66The problem has been determined to be with the tests themselves, not with the
67C library or the kernel. This patch fixes the problem:</para>
68
69<screen><userinput>patch -Np1 -i ../&glibc-testfix-patch;</userinput></screen>
70
71<para>Apply the following patches to enable Glibc to compile with
72GCC-&gcc-version;:</para>
73
74<screen><userinput>patch -Np1 -i ../&glibc-gcc4_symbols-patch;
75patch -Np1 -i ../&glibc-gcc4_string-patch;
76patch -Np1 -i ../&glibc-gcc4_elf-patch;
77patch -Np1 -i ../&glibc-gcc4_iconvdata-patch;</userinput></screen>
78
79<para>The following patch corrects the expected results for some of the math
80tests on x86 processors when compiled with GCC-&gcc-version;:</para>
81
82<screen><userinput>patch -Np1 -i ../&glibc-gcc4_mathtest-patch;</userinput></screen>
83
84<para>The Glibc documentation recommends building Glibc outside of the source
85directory in a dedicated build directory:</para>
86
87<screen><userinput>mkdir ../glibc-build
88cd ../glibc-build</userinput></screen>
89
90<para>Prepare Glibc for compilation:</para>
91
92<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
93 --disable-profile --enable-add-ons \
94 --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>
95
96<para>The meaning of the new configure options:</para>
97
98<variablelist>
99<varlistentry>
100<term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
101<listitem><para>This changes the location of the
102<command>pt_chown</command> program from its default of <filename
103class="directory">/usr/libexec</filename> to <filename
104class="directory">/usr/lib/glibc</filename>.</para></listitem>
105</varlistentry>
106</variablelist>
107
108<para>Compile the package:</para>
109
110<screen><userinput>make</userinput></screen>
111
112<important><para>In this section, the test suite for Glibc is
113considered critical. Do not skip it under any
114circumstance.</para></important>
115
116<para>Test the results:</para>
117
118<screen><userinput>
119make -k check &gt;glibc-check-log 2&gt;&amp;1 ; grep Error glibc-check-log
120</userinput></screen>
121
122<para>On at least i686 you can expect to see failures in the <emphasis>test-double
123</emphasis> and <emphasis>test-idouble</emphasis> math tests with
124gcc-&gcc-version;, as well as an expected (ignored) failure in <emphasis>
125posix/annexc</emphasis>. These two failures in the math tests appear to be
126harmless.</para>
127
128<para>The Glibc test suite is highly dependent on certain functions of
129the host system, in particular the kernel. In certain circumstances,
130some failures are unavoidable. This is a list of the most common
131issues:</para>
132
133<itemizedlist>
134<listitem><para>The <emphasis>math</emphasis> tests sometimes fail in other tests
135when running
136on systems where the CPU is not a relatively new genuine Intel or authentic AMD.
137Certain optimization settings are also known to be a factor here.</para></listitem>
138
139<listitem><para>The <emphasis>gettext</emphasis> test sometimes fails due to
140host system issues. The exact reasons are not yet clear.</para></listitem>
141
142<listitem><para>If you have mounted the LFS partition with the
143<parameter>noatime</parameter> option, the <emphasis>atime</emphasis> test will
144fail. As mentioned in <xref linkend="space-mounting"/>, do not use the
145<parameter>noatime</parameter> option while building LFS.</para></listitem>
146
147<listitem><para>When running on older and slower hardware, some tests
148can fail because of test timeouts being exceeded.</para></listitem>
149</itemizedlist>
150
151<para>Though it is a harmless message, the install stage of Glibc will
152complain about the absence of <filename>/etc/ld.so.conf</filename>.
153Prevent this warning with:</para>
154
155<screen><userinput>touch /etc/ld.so.conf</userinput></screen>
156
157<para>Install the package:</para>
158
159<screen><userinput>make install</userinput></screen>
160
161<para>The locales that can make the system respond in a different
162language were not installed by the above command. Install this
163with:</para>
164
165<screen><userinput>make localedata/install-locales</userinput></screen>
166
167<para>To save time, an alternative to running the
168previous command (which generates and installs every locale Glibc is
169aware of) is to install only those locales that are wanted and needed.
170This can be achieved by using the <command>localedef</command>
171command. Information on this command is located in the
172<filename>INSTALL</filename> file in the Glibc source. However, there
173are a number of locales that are essential in order for the tests of
174future packages to pass, in particular, the
175<emphasis>libstdc++</emphasis> tests from GCC. The following
176instructions, instead of the <parameter>install-locales</parameter>
177target used above, will install the minimum set of locales necessary
178for the tests to run successfully:</para>
179
180<screen><userinput>mkdir -p /usr/lib/locale
181localedef -i de_DE -f ISO-8859-1 de_DE
182localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
183localedef -i en_HK -f ISO-8859-1 en_HK
184localedef -i en_PH -f ISO-8859-1 en_PH
185localedef -i en_US -f ISO-8859-1 en_US
186localedef -i es_MX -f ISO-8859-1 es_MX
187localedef -i fa_IR -f UTF-8 fa_IR
188localedef -i fr_FR -f ISO-8859-1 fr_FR
189localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
190localedef -i it_IT -f ISO-8859-1 it_IT
191localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
192
193<para>Some locales installed by the <command>make
194localedata/install-locales</command> command above are not properly
195supported by some applications that are in the LFS and BLFS books.
196Because of the various problems that arise due to application
197programmers making assumptions that break in such locales, LFS should
198not be used in locales that utilize multibyte character sets
199(including UTF-8) or right-to-left writing order. Numerous unofficial
200and unstable patches are required to fix these problems, and it has
201been decided by the LFS developers not to support such complex locales. This applies to the
202ja_JP and fa_IR locales as well&mdash;they have been installed only for
203GCC and Gettext tests to pass, and the <command>watch</command> program
204(part of the Procps package) does not work properly in them. Various
205attempts to circumvent these restrictions are documented in
206internationalization-related hints.</para>
207
208<para>Build the linuxthreads man pages, which are a great reference
209on the threading API (applicable to NPTL as well):</para>
210
211<screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man</userinput></screen>
212
213<para>Install these pages:</para>
214
215<screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man install</userinput></screen>
216
217</sect2>
218
219<sect2 id="conf-glibc" role="configuration"><title>Configuring Glibc</title>
220<indexterm zone="conf-glibc"><primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary></indexterm>
221<indexterm zone="conf-glibc"><primary sortas="e-/etc/localtime">/etc/localtime</primary></indexterm>
222
223<para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
224because, although Glibc provides defaults when this file is missing or corrupt,
225the Glibc defaults do not work well in a networked environment. The time zone
226also needs to be configured.</para>
227
228<para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
229following:</para>
230
231<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
232<literal># Begin /etc/nsswitch.conf
233
234passwd: files
235group: files
236shadow: files
237
238hosts: files dns
239networks: files
240
241protocols: files
242services: files
243ethers: files
244rpc: files
245
246# End /etc/nsswitch.conf</literal>
247EOF</userinput></screen>
248
249<para>To determine the local time zone, run the following script:</para>
250
251<screen><userinput>tzselect</userinput></screen>
252
253<para>After answering a few questions about the location, the script
254will output the name of the time zone (e.g.,
255<emphasis>EST5EDT</emphasis> or <emphasis>Canada/Eastern</emphasis>).
256Then create the <filename>/etc/localtime</filename> file by
257running:</para>
258
259<screen><userinput>cp --remove-destination /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
260 /etc/localtime</userinput></screen>
261
262<para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone
263that <command>tzselect</command> provided (e.g., Canada/Eastern).</para>
264
265<para>The meaning of the cp option:</para>
266
267<variablelist>
268<varlistentry>
269<term><parameter>--remove-destination</parameter></term>
270<listitem><para>This is needed to force removal of the already
271existing symbolic link. The reason for copying the file instead of
272using a symlink is to cover the situation where <filename
273class="directory">/usr</filename> is on a separate partition. This
274could be important when booted into single user
275mode.</para></listitem>
276</varlistentry>
277</variablelist>
278
279</sect2>
280
281
282<sect2 id="conf-ld" role="configuration">
283<title>Configuring Dynamic Loader</title>
284<indexterm zone="conf-ld"><primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary></indexterm>
285
286<para>By default, the dynamic loader (<filename
287class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
288<filename class="directory">/lib</filename> and <filename
289class="directory">/usr/lib</filename> for dynamic libraries that are
290needed by programs as they are run. However, if there are libraries in
291directories other than <filename class="directory">/lib</filename> and
292<filename class="directory">/usr/lib</filename>, these need to be
293added to the <filename>/etc/ld.so.conf</filename> file in order
294for the dynamic loader to find them. Two directories that are commonly
295known to contain additional libraries are <filename
296class="directory">/usr/local/lib</filename> and <filename
297class="directory">/opt/lib</filename>, so add those directories to the
298dynamic loader's search path.</para>
299
300<para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
301following:</para>
302
303<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
304<literal># Begin /etc/ld.so.conf
305
306/usr/local/lib
307/opt/lib
308
309# End /etc/ld.so.conf</literal>
310EOF</userinput></screen>
311
312</sect2>
313
314<sect2 id="contents-glibc" role="content"><title>Contents of Glibc</title>
315
316<segmentedlist>
317<segtitle>Installed programs</segtitle>
318<segtitle>Installed libraries</segtitle>
319<seglistitem><seg>catchsegv, gencat, getconf,
320getent, iconv, iconvconfig, ldconfig, ldd, lddlibc4, locale,
321localedef, mtrace, nscd, nscd_nischeck, pcprofiledump, pt_chown, rpcgen,
322rpcinfo, sln, sprof, tzselect, xtrace, zdump, and zic</seg>
323<seg>ld.so, libBrokenLocale.[a,so],
324libSegFault.so, libanl.[a,so], libbsd-compat.a, libc.[a,so],
325libcrypt.[a,so], libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
326libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so, libnss_files.so,
327libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so, libpcprofile.so,
328libpthread.[a,so], libresolv.[a,so], librpcsvc.a, librt.[a,so],
329libthread_db.so, and libutil.[a,so]</seg></seglistitem>
330</segmentedlist>
331
332<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
333<?dbfo list-presentation="list"?>
334<?dbhtml list-presentation="table"?>
335
336<varlistentry id="catchsegv">
337<term><command>catchsegv</command></term>
338<listitem>
339<para>Can be used to create a stack trace when a program
340terminates with a segmentation fault</para>
341<indexterm zone="ch-system-glibc catchsegv"><primary sortas="b-catchsegv">catchsegv</primary></indexterm>
342</listitem>
343</varlistentry>
344
345<varlistentry id="gencat">
346<term><command>gencat</command></term>
347<listitem>
348<para>Generates message catalogues</para>
349<indexterm zone="ch-system-glibc gencat"><primary sortas="b-gencat">gencat</primary></indexterm>
350</listitem>
351</varlistentry>
352
353<varlistentry id="getconf">
354<term><command>getconf</command></term>
355<listitem>
356<para>Displays the system configuration values for file system specific variables</para>
357<indexterm zone="ch-system-glibc getconf"><primary sortas="b-getconf">getconf</primary></indexterm>
358</listitem>
359</varlistentry>
360
361<varlistentry id="getent">
362<term><command>getent</command></term>
363<listitem>
364<para>Gets entries from an administrative database</para>
365<indexterm zone="ch-system-glibc getent"><primary sortas="b-getent">getent</primary></indexterm>
366</listitem>
367</varlistentry>
368
369<varlistentry id="iconv">
370<term><command>iconv</command></term>
371<listitem>
372<para>Performs character set conversion</para>
373<indexterm zone="ch-system-glibc iconv"><primary sortas="b-iconv">iconv</primary></indexterm>
374</listitem>
375</varlistentry>
376
377<varlistentry id="iconvconfig">
378<term><command>iconvconfig</command></term>
379<listitem>
380<para>Creates fastloading <command>iconv</command> module configuration files</para>
381<indexterm zone="ch-system-glibc iconvconfig"><primary sortas="b-iconvconfig">iconvconfig</primary></indexterm>
382</listitem>
383</varlistentry>
384
385<varlistentry id="ldconfig">
386<term><command>ldconfig</command></term>
387<listitem>
388<para>Configures the dynamic linker runtime bindings</para>
389<indexterm zone="ch-system-glibc ldconfig"><primary sortas="b-ldconfig">ldconfig</primary></indexterm>
390</listitem>
391</varlistentry>
392
393<varlistentry id="ldd">
394<term><command>ldd</command></term>
395<listitem>
396<para>Reports which shared libraries are required
397by each given program or shared library</para>
398<indexterm zone="ch-system-glibc ldd"><primary sortas="b-ldd">ldd</primary></indexterm>
399</listitem>
400</varlistentry>
401
402<varlistentry id="lddlibc4">
403<term><command>lddlibc4</command></term>
404<listitem>
405<para>Assists <command>ldd</command> with object files</para>
406<indexterm zone="ch-system-glibc lddlibc4"><primary sortas="b-lddlibc4">lddlibc4</primary></indexterm>
407</listitem>
408</varlistentry>
409
410<varlistentry id="locale">
411<term><command>locale</command></term>
412<listitem>
413<para>Tells the compiler to enable or disable the use of POSIX locales
414for built-in operations</para>
415<indexterm zone="ch-system-glibc locale"><primary sortas="b-locale">locale</primary></indexterm>
416</listitem>
417</varlistentry>
418
419<varlistentry id="localedef">
420<term><command>localedef</command></term>
421<listitem>
422<para>Compiles locale specifications</para>
423<indexterm zone="ch-system-glibc localedef"><primary sortas="b-localedef">localedef</primary></indexterm>
424</listitem>
425</varlistentry>
426
427<varlistentry id="mtrace">
428<term><command>mtrace</command></term>
429<listitem>
430<para>Reads and interprets a memory trace file and displays a summary in human-readable format</para>
431<indexterm zone="ch-system-glibc mtrace"><primary sortas="b-mtrace">mtrace</primary></indexterm>
432</listitem>
433</varlistentry>
434
435<varlistentry id="nscd">
436<term><command>nscd</command></term>
437<listitem>
438<para>A daemon that provides a cache for the most common name
439service requests</para>
440<indexterm zone="ch-system-glibc nscd"><primary sortas="b-nscd">nscd</primary></indexterm>
441</listitem>
442</varlistentry>
443
444<varlistentry id="nscd_nischeck">
445<term><command>nscd_nischeck</command></term>
446<listitem>
447<para>Checks whether or not secure mode is necessary for NIS+ lookup</para>
448<indexterm zone="ch-system-glibc nscd_nischeck"><primary sortas="b-nscd_nischeck">nscd_nischeck</primary></indexterm>
449</listitem>
450</varlistentry>
451
452<varlistentry id="pcprofiledump">
453<term><command>pcprofiledump</command></term>
454<listitem>
455<para>Dumps information generated by PC profiling</para>
456<indexterm zone="ch-system-glibc pcprofiledump"><primary sortas="b-pcprofiledump">pcprofiledump</primary></indexterm>
457</listitem>
458</varlistentry>
459
460<varlistentry id="pt_chown">
461<term><command>pt_chown</command></term>
462<listitem>
463<para>A helper program for <command>grantpt</command> to set
464the owner, group and access permissions of a slave pseudo terminal</para>
465<indexterm zone="ch-system-glibc pt_chown"><primary sortas="b-pt_chown">pt_chown</primary></indexterm>
466</listitem>
467</varlistentry>
468
469<varlistentry id="rpcgen">
470<term><command>rpcgen</command></term>
471<listitem>
472<para>Generates C code to implement the Remote Procecure Call (RPC) protocol</para>
473<indexterm zone="ch-system-glibc rpcgen"><primary sortas="b-rpcgen">rpcgen</primary></indexterm>
474</listitem>
475</varlistentry>
476
477<varlistentry id="rpcinfo">
478<term><command>rpcinfo</command></term>
479<listitem>
480<para>Makes an RPC call to an RPC server</para>
481<indexterm zone="ch-system-glibc rpcinfo"><primary sortas="b-rpcinfo">rpcinfo</primary></indexterm>
482</listitem>
483</varlistentry>
484
485<varlistentry id="sln">
486<term><command>sln</command></term>
487<listitem>
488<para>A statically linked <command>ln</command> program</para>
489<indexterm zone="ch-system-glibc sln"><primary sortas="b-sln">sln</primary></indexterm>
490</listitem>
491</varlistentry>
492
493<varlistentry id="sprof">
494<term><command>sprof</command></term>
495<listitem>
496<para>Reads and displays shared object profiling data</para>
497<indexterm zone="ch-system-glibc sprof"><primary sortas="b-sprof">sprof</primary></indexterm>
498</listitem>
499</varlistentry>
500
501<varlistentry id="tzselect">
502<term><command>tzselect</command></term>
503<listitem>
504<para>Asks the user about the location of the
505system and reports the corresponding time zone description</para>
506<indexterm zone="ch-system-glibc tzselect"><primary sortas="b-tzselect">tzselect</primary></indexterm>
507</listitem>
508</varlistentry>
509
510<varlistentry id="xtrace">
511<term><command>xtrace</command></term>
512<listitem>
513<para>Traces the execution of a program by
514printing the currently executed function</para>
515<indexterm zone="ch-system-glibc xtrace"><primary sortas="b-xtrace">xtrace</primary></indexterm>
516</listitem>
517</varlistentry>
518
519<varlistentry id="zdump">
520<term><command>zdump</command></term>
521<listitem>
522<para>The time zone dumper</para>
523<indexterm zone="ch-system-glibc zdump"><primary sortas="b-zdump">zdump</primary></indexterm>
524</listitem>
525</varlistentry>
526
527<varlistentry id="zic">
528<term><command>zic</command></term>
529<listitem>
530<para>The time zone compiler</para>
531<indexterm zone="ch-system-glibc zic"><primary sortas="b-zic">zic</primary></indexterm>
532</listitem>
533</varlistentry>
534
535<varlistentry id="ld.so">
536<term><filename class="libraryfile">ld.so</filename></term>
537<listitem>
538<para>The helper program for shared library executables</para>
539<indexterm zone="ch-system-glibc ld.so"><primary sortas="c-ld.so">ld.so</primary></indexterm>
540</listitem>
541</varlistentry>
542
543<varlistentry id="libBrokenLocale">
544<term><filename class="libraryfile">libBrokenLocale</filename></term>
545<listitem>
546<para>Used by programs, such as Mozilla, to solve broken locales</para>
547<indexterm zone="ch-system-glibc libBrokenLocale"><primary sortas="c-libBrokenLocale">libBrokenLocale</primary></indexterm>
548</listitem>
549</varlistentry>
550
551<varlistentry id="libSegFault">
552<term><filename class="libraryfile">libSegFault</filename></term>
553<listitem>
554<para>The segmentation fault signal handler</para>
555<indexterm zone="ch-system-glibc libSegFault"><primary sortas="c-libSegFault">libSegFault</primary></indexterm>
556</listitem>
557</varlistentry>
558
559<varlistentry id="libanl">
560<term><filename class="libraryfile">libanl</filename></term>
561<listitem>
562<para>An asynchronous name lookup library</para>
563<indexterm zone="ch-system-glibc libanl"><primary sortas="c-libanl">libanl</primary></indexterm>
564</listitem>
565</varlistentry>
566
567<varlistentry id="libbsd-compat">
568<term><filename class="libraryfile">libbsd-compat</filename></term>
569<listitem>
570<para>Provides the portability needed
571in order to run certain Berkey Software Distribution (BSD) programs under Linux</para>
572<indexterm zone="ch-system-glibc libbsd-compat"><primary sortas="c-libbsd-compat">libbsd-compat</primary></indexterm>
573</listitem>
574</varlistentry>
575
576<varlistentry id="libc">
577<term><filename class="libraryfile">libc</filename></term>
578<listitem>
579<para>The main C library</para>
580<indexterm zone="ch-system-glibc libc"><primary sortas="c-libc">libc</primary></indexterm>
581</listitem>
582</varlistentry>
583
584<varlistentry id="libcrypt">
585<term><filename class="libraryfile">libcrypt</filename></term>
586<listitem>
587<para>The cryptography library</para>
588<indexterm zone="ch-system-glibc libcrypt"><primary sortas="c-libcrypt">libcrypt</primary></indexterm>
589</listitem>
590</varlistentry>
591
592<varlistentry id="libdl">
593<term><filename class="libraryfile">libdl</filename></term>
594<listitem>
595<para>The dynamic linking interface library</para>
596<indexterm zone="ch-system-glibc libdl"><primary sortas="c-libdl">libdl</primary></indexterm>
597</listitem>
598</varlistentry>
599
600<varlistentry id="libg">
601<term><filename class="libraryfile">libg</filename></term>
602<listitem>
603<para>A runtime library for <command>g++</command></para>
604<indexterm zone="ch-system-glibc libg"><primary sortas="c-libg">libg</primary></indexterm>
605</listitem>
606</varlistentry>
607
608<varlistentry id="libieee">
609<term><filename class="libraryfile">libieee</filename></term>
610<listitem>
611<para>The Institute of Electrical and Electronic Engineers (IEEE) floating point library</para>
612<indexterm zone="ch-system-glibc libieee"><primary sortas="c-libieee">libieee</primary></indexterm>
613</listitem>
614</varlistentry>
615
616<varlistentry id="libm">
617<term><filename class="libraryfile">libm</filename></term>
618<listitem>
619<para>The mathematical library</para>
620<indexterm zone="ch-system-glibc libm"><primary sortas="c-libm">libm</primary></indexterm>
621</listitem>
622</varlistentry>
623
624<varlistentry id="libmcheck">
625<term><filename class="libraryfile">libmcheck</filename></term>
626<listitem>
627<para>Contains code run at boot</para>
628<indexterm zone="ch-system-glibc libmcheck"><primary sortas="c-libmcheck">libmcheck</primary></indexterm>
629</listitem>
630</varlistentry>
631
632<varlistentry id="libmemusage">
633<term><filename class="libraryfile">libmemusage</filename></term>
634<listitem>
635<para>Used by <command>memusage</command> to help collect
636information about the memory usage of a program</para>
637<indexterm zone="ch-system-glibc libmemusage"><primary sortas="c-libmemusage">libmemusage</primary></indexterm>
638</listitem>
639</varlistentry>
640
641<varlistentry id="libnsl">
642<term><filename class="libraryfile">libnsl</filename></term>
643<listitem>
644<para>The network services library</para>
645<indexterm zone="ch-system-glibc libnsl"><primary sortas="c-libnsl">libnsl</primary></indexterm>
646</listitem>
647</varlistentry>
648
649<varlistentry id="libnss">
650<term><filename class="libraryfile">libnss</filename></term>
651<listitem>
652<para>The Name Service Switch libraries,
653containing functions for resolving host names, user names, group names,
654aliases, services, protocols, etc.</para>
655<indexterm zone="ch-system-glibc libnss"><primary sortas="c-libnss">libnss</primary></indexterm>
656</listitem>
657</varlistentry>
658
659<varlistentry id="libpcprofile">
660<term><filename class="libraryfile">libpcprofile</filename></term>
661<listitem>
662<para>Contains profiling functions used
663to track the amount of CPU time spent in specific source code lines</para>
664<indexterm zone="ch-system-glibc libpcprofile"><primary sortas="c-libpcprofile">libpcprofile</primary></indexterm>
665</listitem>
666</varlistentry>
667
668<varlistentry id="libpthread">
669<term><filename class="libraryfile">libpthread</filename></term>
670<listitem>
671<para>The POSIX threads library</para>
672<indexterm zone="ch-system-glibc libpthread"><primary sortas="c-libpthread">libpthread</primary></indexterm>
673</listitem>
674</varlistentry>
675
676<varlistentry id="libresolv">
677<term><filename class="libraryfile">libresolv</filename></term>
678<listitem>
679<para>Contains functions for creating,
680sending, and interpreting packets to the Internet domain name servers</para>
681<indexterm zone="ch-system-glibc libresolv"><primary sortas="c-libresolv">libresolv</primary></indexterm>
682</listitem>
683</varlistentry>
684
685<varlistentry id="librpcsvc">
686<term><filename class="libraryfile">librpcsvc</filename></term>
687<listitem>
688<para>Contains functions providing miscellaneous RPC services</para>
689<indexterm zone="ch-system-glibc librpcsvc"><primary sortas="c-librpcsvc">librpcsvc</primary></indexterm>
690</listitem>
691</varlistentry>
692
693<varlistentry id="librt">
694<term><filename class="libraryfile">librt</filename></term>
695<listitem>
696<para>Contains functions providing most of the
697interfaces specified by the POSIX.1b Realtime Extension</para>
698<indexterm zone="ch-system-glibc librt"><primary sortas="c-librt">librt</primary></indexterm>
699</listitem>
700</varlistentry>
701
702<varlistentry id="libthread_db">
703<term><filename class="libraryfile">libthread_db</filename></term>
704<listitem>
705<para>Contains functions useful for
706building debuggers for multi-threaded programs</para>
707<indexterm zone="ch-system-glibc libthread_db"><primary sortas="c-libthread_db">libthread_db</primary></indexterm>
708</listitem>
709</varlistentry>
710
711<varlistentry id="libutil">
712<term><filename class="libraryfile">libutil</filename></term>
713<listitem>
714<para>Contains code for <quote>standard</quote> functions used in many different Unix utilities</para>
715<indexterm zone="ch-system-glibc libutil"><primary sortas="c-libutil">libutil</primary></indexterm>
716</listitem>
717</varlistentry>
718</variablelist>
719
720</sect2>
721
722</sect1>
723
Note: See TracBrowser for help on using the repository browser.