source: chapter06/glibc.xml@ 84988c0

6.0
Last change on this file since 84988c0 was d878ce3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Moved discussion of glibc test failures to chapter 6, and reworded notes aboutoptional tests.

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

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