source: chapter06/glibc.xml@ 332ba21

6.0
Last change on this file since 332ba21 was 752f4e5, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Tags corrections, Chapter 6.

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

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