source: chapter06/glibc.xml@ 000f8fc

6.0
Last change on this file since 000f8fc was dadb405, checked in by Gerard Beekmans <gerard@…>, 20 years ago

Miscellaneous edits

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