source: chapter06/glibc.xml@ 4d6f3794

Last change on this file since 4d6f3794 was 4d6f3794, checked in by Ken Moffat <ken@…>, 19 years ago

first attempt at glibc test revisions

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

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