source: chapter06/glibc.xml@ 76c5c80

6.0
Last change on this file since 76c5c80 was 76c5c80, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Tags & typos corrections.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4211 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>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<beginpage/>
63<para>The meaning of the new configure option:</para>
64
65<variablelist>
66<varlistentry>
67<term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
68<listitem><para>This changes the location of the
69<command>pt_chown</command> program from its default of <filename
70class="directory">/usr/libexec</filename> to <filename
71class="directory">/usr/lib/glibc</filename>.</para></listitem>
72</varlistentry>
73</variablelist>
74
75<para>Compile the package:</para>
76
77<screen><userinput>make</userinput></screen>
78
79<important><para>In this section, the test suite for Glibc is
80considered critical. Do not skip it under any
81circumstance.</para></important>
82
83<para>Test the results:</para>
84
85<screen><userinput>make check</userinput></screen>
86
87<para>The Glibc test suite is highly dependent on certain functions of
88the host system, in particular the kernel. In general, the Glibc test
89suite is always expected to pass. However, in certain circumstances,
90some failures are unavoidable. This is a list of the most common
91issues:</para>
92
93<itemizedlist>
94<listitem><para>The <emphasis>math</emphasis> tests sometimes fail when running
95on systems where the CPU is not a relatively new genuine Intel or authentic AMD.
96Certain optimization settings are also known to be a factor here.</para></listitem>
97
98<listitem><para>The <emphasis>gettext</emphasis> test sometimes fails due to
99host system issues. The exact reasons are not yet clear.</para></listitem>
100
101<listitem><para>The <emphasis>atime</emphasis> test sometimes fails
102when the LFS partition is mounted with the
103<parameter>noatime</parameter> option.</para></listitem>
104
105<listitem><para>The <emphasis>shm</emphasis> test can fail when the
106host system is using the <systemitem
107class="filesystem">devfs</systemitem> file system but does not have
108the <systemitem class="filesystem">tmpfs</systemitem> file system
109mounted at <filename class="directory">/dev/shm</filename>. This
110occurs because of a lack of support for <systemitem
111class="filesystem">tmpfs</systemitem> in the
112kernel.</para></listitem>
113
114<listitem><para>When running on older and slower hardware, some tests
115can fail because of test timeouts being exceeded.</para></listitem>
116</itemizedlist>
117
118<para>Though it is a harmless message, the install stage of Glibc will
119complain about the absence of <filename>/etc/ld.so.conf</filename>.
120Prevent this warning with:</para>
121
122<screen><userinput>touch /etc/ld.so.conf</userinput></screen>
123
124<para>Install the package:</para>
125
126<screen><userinput>make install</userinput></screen>
127
128<para>The locales that can make the system respond in a different
129language were not installed by the above command. Install this
130with:</para>
131
132<screen><userinput>make localedata/install-locales</userinput></screen>
133
134<para>To save time, an alternative to running the
135previous command (which generates and installs every locale Glibc is
136aware of) is to install only those locales that are wanted and needed.
137This can be achieved by using the <command>localedef</command>
138command. Information on this command is located in the
139<filename>INSTALL</filename> file in the Glibc source. However, there
140are a number of locales that are essential in order for the tests of
141future packages to pass, in particular, the
142<emphasis>libstdc++</emphasis> tests from GCC. The following
143instructions, instead of the <parameter>install-locales</parameter>
144target used above, will install the minimum set of locales necessary
145for the tests to run successfully:</para>
146
147<screen><userinput>mkdir -p /usr/lib/locale
148localedef -i de_DE -f ISO-8859-1 de_DE
149localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
150localedef -i en_HK -f ISO-8859-1 en_HK
151localedef -i en_PH -f ISO-8859-1 en_PH
152localedef -i en_US -f ISO-8859-1 en_US
153localedef -i es_MX -f ISO-8859-1 es_MX
154localedef -i fa_IR -f UTF-8 fa_IR
155localedef -i fr_FR -f ISO-8859-1 fr_FR
156localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
157localedef -i it_IT -f ISO-8859-1 it_IT
158localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
159
160<para>Some locales installed by the <command>make
161localedata/install-locales</command> command above are not properly
162supported by some applications that are in the LFS and BLFS books.
163Because of the various problems that arise due to application
164programmers making assumptions that break in such locales, LFS should
165not be used in locales that utilize multibyte character sets
166(including UTF-8) or right-to-left writing order. Numerous unofficial
167and unstable patches are required to fix these problems, and it has
168been decided by the LFS developers not to support such complex locales. This applies to the
169ja_JP and fa_IR locales as well&mdash;they have been installed only for
170GCC and Gettext tests to pass, and the <command>watch</command> program
171(part of the Procps package) does not work properly in them. Various
172attempts to circumvent these restrictions are documented in
173internationalization-related hints.</para>
174
175<para>Build the linuxthreads man pages, which are a great reference
176on the threading API (applicable to NPTL as well):</para>
177
178<screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man</userinput></screen>
179
180<para>Install these pages:</para>
181
182<screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man install</userinput></screen>
183
184</sect2>
185
186<sect2 id="conf-glibc" role="configuration"><title>Configuring Glibc</title>
187<indexterm zone="conf-glibc"><primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary></indexterm>
188<indexterm zone="conf-glibc"><primary sortas="e-/etc/localtime">/etc/localtime</primary></indexterm>
189
190<para>The <filename>/etc/nsswitch.conf</filename> file needs to be
191created because, although Glibc provides defaults when this file is
192missing or corrupt, the Glibc defaults do not work well with
193networking. The time zone also needs to be set up.</para>
194
195<para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
196following:</para>
197
198<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
199<literal># Begin /etc/nsswitch.conf
200
201passwd: files
202group: files
203shadow: files
204
205hosts: files dns
206networks: files
207
208protocols: files
209services: files
210ethers: files
211rpc: files
212
213# End /etc/nsswitch.conf</literal>
214EOF</userinput></screen>
215
216<para>To determine the local time zone, run the following script:</para>
217
218<screen><userinput>tzselect</userinput></screen>
219
220<para>After answering a few questions about the location, the script
221will output the name of the time zone (e.g.,
222<emphasis>EST5EDT</emphasis> or <emphasis>Canada/Eastern</emphasis>).
223Then create the <filename>/etc/localtime</filename> file by
224running:</para>
225
226<screen><userinput>cp --remove-destination /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
227 /etc/localtime</userinput></screen>
228
229<para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone that the
230<command>tzselect</command> provided (e.g., Canada/Eastern).</para>
231
232<para>The meaning of the cp option:</para>
233
234<variablelist>
235<varlistentry>
236<term><parameter>--remove-destination</parameter></term>
237<listitem><para>This is needed to force removal of the already
238existing symbolic link. The reason for copying the file instead of
239using a symlink is to cover the situation where <filename
240class="directory">/usr</filename> is on a separate partition. This
241could be important when booted into single user
242mode.</para></listitem>
243</varlistentry>
244</variablelist>
245
246</sect2>
247
248
249<sect2 id="conf-ld" role="configuration">
250<title>Configuring Dynamic Loader</title>
251<indexterm zone="conf-ld"><primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary></indexterm>
252
253<para>By default, the dynamic loader (<filename
254class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
255<filename class="directory">/lib</filename> and <filename
256class="directory">/usr/lib</filename> for dynamic libraries that are
257needed by programs as they are run. However, if there are libraries in
258directories other than <filename class="directory">/lib</filename> and
259<filename class="directory">/usr/lib</filename>, these need to be
260added to the <filename>/etc/ld.so.conf</filename> file in order
261for the dynamic loader to find them. Two directories that are commonly
262known to contain additional libraries are <filename
263class="directory">/usr/local/lib</filename> and <filename
264class="directory">/opt/lib</filename>, so add those directories to the
265dynamic loader's search path.</para>
266
267<para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
268following:</para>
269
270<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
271<literal># Begin /etc/ld.so.conf
272
273/usr/local/lib
274/opt/lib
275
276# End /etc/ld.so.conf</literal>
277EOF</userinput></screen>
278
279<beginpage/>
280</sect2>
281
282<sect2 id="contents-glibc" role="content"><title>Contents of Glibc</title>
283
284<segmentedlist>
285<segtitle>Installed programs</segtitle>
286<segtitle>Installed libraries</segtitle>
287<seglistitem><seg>catchsegv, gencat, getconf,
288getent, glibcbug, iconv, iconvconfig, ldconfig, ldd, lddlibc4, locale,
289localedef, mtrace, nscd, nscd_nischeck, pcprofiledump, pt_chown, rpcgen,
290rpcinfo, sln, sprof, tzselect, xtrace, zdump, and zic</seg>
291<seg>ld.so, libBrokenLocale.[a,so],
292libSegFault.so, libanl.[a,so], libbsd-compat.a, libc.[a,so],
293libcrypt.[a,so], libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
294libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so, libnss_files.so,
295libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so, libpcprofile.so,
296libpthread.[a,so], libresolv.[a,so], librpcsvc.a, librt.[a,so],
297libthread_db.so, and libutil.[a,so]</seg></seglistitem>
298</segmentedlist>
299
300<variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
301<?dbfo list-presentation="list"?>
302
303<varlistentry id="catchsegv">
304<term><command>catchsegv</command></term>
305<listitem>
306<para>can be used to create a stack trace when a program
307terminates with a segmentation fault.</para>
308<indexterm zone="ch-system-glibc catchsegv"><primary sortas="b-catchsegv">catchsegv</primary></indexterm>
309</listitem>
310</varlistentry>
311
312<varlistentry id="gencat">
313<term><command>gencat</command></term>
314<listitem>
315<para>generates message catalogues.</para>
316<indexterm zone="ch-system-glibc gencat"><primary sortas="b-gencat">gencat</primary></indexterm>
317</listitem>
318</varlistentry>
319
320<varlistentry id="getconf">
321<term><command>getconf</command></term>
322<listitem>
323<para>displays the system configuration values for file system specific variables.</para>
324<indexterm zone="ch-system-glibc getconf"><primary sortas="b-getconf">getconf</primary></indexterm>
325</listitem>
326</varlistentry>
327
328<varlistentry id="getent">
329<term><command>getent</command></term>
330<listitem>
331<para>gets entries from an administrative database.</para>
332<indexterm zone="ch-system-glibc getent"><primary sortas="b-getent">getent</primary></indexterm>
333</listitem>
334</varlistentry>
335
336<varlistentry id="glibcbug">
337<term><command>glibcbug</command></term>
338<listitem>
339<para>creates a bug report and mails it to the bug email address.</para>
340<indexterm zone="ch-system-glibc glibcbug"><primary sortas="b-glibcbug">glibcbug</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.