source: chapter06/glibc.xml@ a50b6b7

Last change on this file since a50b6b7 was a50b6b7, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Avoiding duplicated text in chapter06

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

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