source: chapter06/glibc.xml@ 1238cc49

Last change on this file since 1238cc49 was 78c3d81, checked in by Matthew Burgess <matthew@…>, 19 years ago

Add gcc-4 related patches to chapter06 glibc

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

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