source: chapter06/glibc.xml@ dd03426

Last change on this file since dd03426 was 31294fd, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

PDF fix to match latter text changes.

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

  • Property mode set to 100644
File size: 32.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-glibc" role="wrap">
9 <?dbhtml filename="glibc.html"?>
10
11 <title>Glibc-&glibc-version;</title>
12
13 <indexterm zone="ch-system-glibc">
14 <primary sortas="a-Glibc">Glibc</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Glibc package contains the main C library. This library provides
21 the basic routines for allocating memory, searching directories, opening and
22 closing files, reading and writing files, string handling, pattern matching,
23 arithmetic, and so on.</para>
24
25 <segmentedlist>
26 <segtitle>&buildtime;</segtitle>
27 <segtitle>&diskspace;</segtitle>
28
29 <seglistitem>
30 <seg>&glibc-ch6-sbu;</seg>
31 <seg>&glibc-ch6-du;</seg>
32 </seglistitem>
33 </segmentedlist>
34
35 </sect2>
36
37 <sect2 role="installation">
38 <title>Installation of Glibc</title>
39
40 <note>
41 <para>Some packages outside of LFS suggest installing GNU libiconv in
42 order to translate data from one encoding to another. The project's
43 home page (<ulink url="http://www.gnu.org/software/libiconv/"/>) says
44 <quote>This library provides an <function>iconv()</function>
45 implementation, for use on systems which don't have one, or whose
46 implementation cannot convert from/to Unicode.</quote> Glibc provides
47 an <function>iconv()</function> implementation and can convert from/to
48 Unicode, therefore libiconv is not required on an LFS system.</para>
49 </note>
50
51 <para>The Glibc build system is self-contained and will install
52 perfectly, even though the compiler specs file and linker are still
53 pointing at <filename class="directory">/tools</filename>. The specs
54 and linker cannot be adjusted before the Glibc install because the
55 Glibc autoconf tests would give false results and defeat the goal
56 of achieving a clean build.</para>
57
58 <para>The glibc-libidn tarball adds support for internationalized domain
59 names (IDN) to Glibc. Many programs that support IDN require the full
60 <filename class="libraryfile">libidn</filename> library, not this add-on (see
61 <ulink url="&blfs-root;view/svn/general/libidn.html"/>).
62 Unpack the tarball from within the Glibc source directory:</para>
63
64<screen><userinput>tar -xf ../glibc-libidn-&glibc-version;.tar.bz2</userinput></screen>
65
66 <para>Apply the following patch to fix build errors in packages that include
67 <filename class="headerfile">linux/types.h</filename> after <filename
68 class="headerfile">sys/kd.h</filename>:</para>
69
70<screen><userinput>patch -Np1 -i ../&glibc-linux_types-patch;</userinput></screen>
71
72 <para>Add a header to define syscall functions for the inotify feature
73 available in newer Linux kernels:</para>
74
75<screen><userinput>patch -Np1 -i ../&glibc-inotify-patch;</userinput></screen>
76
77 <para>In the vi_VN.TCVN locale, <command>bash</command> enters an infinite loop
78 at startup. It is unknown whether this is a <command>bash</command> bug or a
79 Glibc problem. Disable installation of this locale in order to avoid the
80 problem:</para>
81
82<screen><userinput>sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED</userinput></screen>
83
84 <para>When running <command>make install</command>, a script called
85 <filename>test-installation.pl</filename> performs a small sanity test on
86 our newly installed Glibc. However, because our toolchain still points to
87 the <filename class="directory">/tools</filename> directory, the sanity
88 test would be carried out against the wrong Glibc. We can force the script
89 to check the Glibc we have just installed with the following:</para>
90
91 <beginpage/>
92
93<screen><userinput>sed -i \
94's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|' \
95 scripts/test-installation.pl</userinput></screen>
96
97 <para>The Glibc documentation recommends building Glibc outside of the source
98 directory in a dedicated build directory:</para>
99
100<screen><userinput>mkdir -v ../glibc-build
101cd ../glibc-build</userinput></screen>
102
103 <para>Prepare Glibc for compilation:</para>
104
105<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
106 --disable-profile --enable-add-ons \
107 --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>
108
109 <variablelist>
110 <title>The meaning of the new configure options:</title>
111
112 <varlistentry>
113 <term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
114 <listitem>
115 <para>This changes the location of the <command>pt_chown</command>
116 program from its default of <filename
117 class="directory">/usr/libexec</filename> to <filename
118 class="directory">/usr/lib/glibc</filename>.</para>
119 </listitem>
120 </varlistentry>
121
122 </variablelist>
123
124 <para>Compile the package:</para>
125
126<screen><userinput>make</userinput></screen>
127
128 <important>
129 <para>In this section, the test suite for Glibc is considered critical.
130 Do not skip it under any circumstance.</para>
131 </important>
132
133 <para>Test the results:</para>
134
135<screen><userinput>make -k check 2&gt;&amp;1 | tee glibc-check-log
136grep Error glibc-check-log</userinput></screen>
137
138 <para>You will probably see an expected (ignored) failure in the
139 <emphasis>posix/annexc</emphasis> test. In addition the Glibc test suite
140 is somewhat dependent on the host system. This is a list of the most
141 common issues:</para>
142
143 <itemizedlist>
144 <listitem>
145 <para>The <emphasis>nptl/tst-clock2</emphasis> and
146 <emphasis>tst-attr3</emphasis> tests sometimes
147 fail. The reason is not completely understood, but indications
148 are that a heavy system load can trigger these failures.</para>
149 </listitem>
150 <listitem>
151 <para>The math tests sometimes fail when running on
152 systems where the CPU is not a relatively new genuine Intel or
153 authentic AMD processor.</para>
154 </listitem>
155 <listitem>
156 <para>If you have mounted the LFS partition with the
157 <parameter>noatime</parameter> option, the <emphasis>atime</emphasis>
158 test will fail. As mentioned in <xref linkend="space-mounting"/>, do not
159 use the <parameter>noatime</parameter> option while building LFS.</para>
160 </listitem>
161 <listitem>
162 <para>When running on older and slower hardware or on systems under
163 load, some tests can fail because of test timeouts being exceeded.</para>
164 </listitem>
165 </itemizedlist>
166
167 <beginpage/>
168
169 <para>Though it is a harmless message, the install stage of Glibc will
170 complain about the absence of <filename>/etc/ld.so.conf</filename>.
171 Prevent this warning with:</para>
172
173<screen><userinput>touch /etc/ld.so.conf</userinput></screen>
174
175 <para>Install the package:</para>
176
177<screen><userinput>make install</userinput></screen>
178
179 <para>Install the inotify header to the system header location:</para>
180
181<screen><userinput>cp -v ../glibc-&glibc-version;/sysdeps/unix/sysv/linux/inotify.h \
182 /usr/include/sys</userinput></screen>
183
184 <para>The locales that can make the system respond in a different language
185 were not installed by the above command. None of the locales are required,
186 but if some of them are missing, testsuites of the future packages would
187 skip important testcases.</para>
188
189 <para>Individual locales can be installed using the
190 <command>localedef</command> program. E.g., the first
191 <command>localedef</command> command below combines the
192 <filename>/usr/share/i18n/locales/de_DE</filename>
193 charset-independent locale definition with the
194 <filename>/usr/share/i18n/charmaps/ISO-8859-1.gz</filename>
195 charmap definition and appends the result to the
196 <filename>/usr/lib/locale/locale-archive</filename> file.
197 The following instructions will install the minimum set of
198 locales necessary for the optimal coverage of tests:</para>
199
200<screen role="nodump"><userinput>mkdir -pv /usr/lib/locale
201localedef -i de_DE -f ISO-8859-1 de_DE
202localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
203localedef -i en_HK -f ISO-8859-1 en_HK
204localedef -i en_PH -f ISO-8859-1 en_PH
205localedef -i en_US -f ISO-8859-1 en_US
206localedef -i en_US -f UTF-8 en_US.UTF-8
207localedef -i es_MX -f ISO-8859-1 es_MX
208localedef -i fa_IR -f UTF-8 fa_IR
209localedef -i fr_FR -f ISO-8859-1 fr_FR
210localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
211localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
212localedef -i it_IT -f ISO-8859-1 it_IT
213localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
214
215 <para>In addition, install the locale for your own country, language and
216 character set.</para>
217
218 <para>Alternatively, install all locales listed in the
219 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
220 (it includes every locale listed above and many more) at once with the
221 following time-consuming command:</para>
222
223<screen><userinput>make localedata/install-locales</userinput></screen>
224
225 <para>Then use the <command>localedef</command> command to create and
226 install locales not listed in the
227 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
228 in the unlikely case if you need them.</para>
229 <!-- The Live CD patches the localedata/SUPPORTED file instead of
230 running localedef, the results are equivalent -->
231
232 <beginpage/>
233
234 </sect2>
235
236 <sect2 id="conf-glibc" role="configuration">
237 <title>Configuring Glibc</title>
238
239 <indexterm zone="conf-glibc">
240 <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
241 </indexterm>
242
243 <indexterm zone="conf-glibc">
244 <primary sortas="e-/etc/localtime">/etc/localtime</primary>
245 </indexterm>
246
247 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
248 because, although Glibc provides defaults when this file is missing or corrupt,
249 the Glibc defaults do not work well in a networked environment. The time zone
250 also needs to be configured.</para>
251
252 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
253 following:</para>
254
255<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
256<literal># Begin /etc/nsswitch.conf
257
258passwd: files
259group: files
260shadow: files
261
262hosts: files dns
263networks: files
264
265protocols: files
266services: files
267ethers: files
268rpc: files
269
270# End /etc/nsswitch.conf</literal>
271EOF</userinput></screen>
272
273 <para>One way to determine the local time zone, run the following
274 script:</para>
275
276<screen role="nodump"><userinput>tzselect</userinput></screen>
277
278 <para>After answering a few questions about the location, the script will
279 output the name of the time zone (e.g.,
280 <emphasis>America/Edmonton</emphasis>). There are also some other possible
281 timezones listed in <filename
282 class='directory'>/usr/share/zoneinfo</filename> such as
283 <emphasis>Canada/Eastern</emphasis> or <emphasis>EST5EDT</emphasis> that
284 are not identified by the script but can be used.</para>
285
286 <para>Then create the <filename>/etc/localtime</filename> file by
287 running:</para>
288
289<screen><userinput>cp -v --remove-destination /usr/share/zoneinfo/<replaceable>&lt;xxx&gt;</replaceable> \
290 /etc/localtime</userinput></screen>
291
292 <para>Replace <replaceable>&lt;xxx&gt;</replaceable> with the name of the
293 time zone selected (e.g., Canada/Eastern).</para>
294
295 <variablelist>
296 <title>The meaning of the cp option:</title>
297
298 <varlistentry>
299 <term><parameter>--remove-destination</parameter></term>
300 <listitem>
301 <para>This is needed to force removal of the already existing symbolic
302 link. The reason for copying the file instead of using a symlink is to
303 cover the situation where <filename class="directory">/usr</filename>
304 is on a separate partition. This could be important when booted into
305 single user mode.</para>
306 </listitem>
307 </varlistentry>
308
309 </variablelist>
310
311 <beginpage/>
312
313 </sect2>
314
315 <sect2 id="conf-ld" role="configuration">
316 <title>Configuring the Dynamic Loader</title>
317
318 <indexterm zone="conf-ld">
319 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
320 </indexterm>
321
322 <para>By default, the dynamic loader (<filename
323 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
324 <filename class="directory">/lib</filename> and <filename
325 class="directory">/usr/lib</filename> for dynamic libraries that are
326 needed by programs as they are run. However, if there are libraries in
327 directories other than <filename class="directory">/lib</filename> and
328 <filename class="directory">/usr/lib</filename>, these need to be added
329 to the <filename>/etc/ld.so.conf</filename> file in order for the
330 dynamic loader to find them. Two directories that are commonly known
331 to contain additional libraries are <filename
332 class="directory">/usr/local/lib</filename> and <filename
333 class="directory">/opt/lib</filename>, so add those directories to the
334 dynamic loader's search path.</para>
335
336 <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
337 following:</para>
338
339<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
340<literal># Begin /etc/ld.so.conf
341
342/usr/local/lib
343/opt/lib
344
345# End /etc/ld.so.conf</literal>
346EOF</userinput></screen>
347
348 </sect2>
349
350 <sect2 id="contents-glibc" role="content">
351 <title>Contents of Glibc</title>
352
353 <segmentedlist>
354 <segtitle>Installed programs</segtitle>
355 <segtitle>Installed libraries</segtitle>
356
357 <seglistitem>
358 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
359 ldd, lddlibc4, locale, localedef, mtrace, nscd, nscd_nischeck,
360 pcprofiledump, pt_chown, rpcgen, rpcinfo, sln, sprof, tzselect, xtrace,
361 zdump, and zic</seg>
362 <seg>ld.so, libBrokenLocale.{a,so}, libSegFault.so, libanl.{a,so},
363 libbsd-compat.a, libc.{a,so}, libcidn.so, libcrypt.{a,so}, libdl.{a,so},
364 libg.a, libieee.a, libm.{a,so}, libmcheck.a, libmemusage.so, libnsl.a,
365 libnss_compat.so, libnss_dns.so, libnss_files.so, libnss_hesiod.so,
366 libnss_nis.so, libnss_nisplus.so, libpcprofile.so, libpthread.{a,so},
367 libresolv.{a,so}, librpcsvc.a, librt.{a,so}, libthread_db.so, and
368 libutil.{a,so}</seg>
369 </seglistitem>
370 </segmentedlist>
371
372 <variablelist>
373 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
374 <?dbfo list-presentation="list"?>
375 <?dbhtml list-presentation="table"?>
376
377 <varlistentry id="catchsegv">
378 <term><command>catchsegv</command></term>
379 <listitem>
380 <para>Can be used to create a stack trace when a program
381 terminates with a segmentation fault</para>
382 <indexterm zone="ch-system-glibc catchsegv">
383 <primary sortas="b-catchsegv">catchsegv</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
387
388 <varlistentry id="gencat">
389 <term><command>gencat</command></term>
390 <listitem>
391 <para>Generates message catalogues</para>
392 <indexterm zone="ch-system-glibc gencat">
393 <primary sortas="b-gencat">gencat</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
398 <varlistentry id="getconf">
399 <term><command>getconf</command></term>
400 <listitem>
401 <para>Displays the system configuration values for file system
402 specific variables</para>
403 <indexterm zone="ch-system-glibc getconf">
404 <primary sortas="b-getconf">getconf</primary>
405 </indexterm>
406 </listitem>
407 </varlistentry>
408
409 <varlistentry id="getent">
410 <term><command>getent</command></term>
411 <listitem>
412 <para>Gets entries from an administrative database</para>
413 <indexterm zone="ch-system-glibc getent">
414 <primary sortas="b-getent">getent</primary>
415 </indexterm>
416 </listitem>
417 </varlistentry>
418
419 <varlistentry id="iconv">
420 <term><command>iconv</command></term>
421 <listitem>
422 <para>Performs character set conversion</para>
423 <indexterm zone="ch-system-glibc iconv">
424 <primary sortas="b-iconv">iconv</primary>
425 </indexterm>
426 </listitem>
427 </varlistentry>
428
429 <varlistentry id="iconvconfig">
430 <term><command>iconvconfig</command></term>
431 <listitem>
432 <para>Creates fastloading <command>iconv</command> module configuration
433 files</para>
434 <indexterm zone="ch-system-glibc iconvconfig">
435 <primary sortas="b-iconvconfig">iconvconfig</primary>
436 </indexterm>
437 </listitem>
438 </varlistentry>
439
440 <varlistentry id="ldconfig">
441 <term><command>ldconfig</command></term>
442 <listitem>
443 <para>Configures the dynamic linker runtime bindings</para>
444 <indexterm zone="ch-system-glibc ldconfig">
445 <primary sortas="b-ldconfig">ldconfig</primary>
446 </indexterm>
447 </listitem>
448 </varlistentry>
449
450 <varlistentry id="ldd">
451 <term><command>ldd</command></term>
452 <listitem>
453 <para>Reports which shared libraries are required
454 by each given program or shared library</para>
455 <indexterm zone="ch-system-glibc ldd">
456 <primary sortas="b-ldd">ldd</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
460
461 <varlistentry id="lddlibc4">
462 <term><command>lddlibc4</command></term>
463 <listitem>
464 <para>Assists <command>ldd</command> with object files</para>
465 <indexterm zone="ch-system-glibc lddlibc4">
466 <primary sortas="b-lddlibc4">lddlibc4</primary>
467 </indexterm>
468 </listitem>
469 </varlistentry>
470
471 <varlistentry id="locale">
472 <term><command>locale</command></term>
473 <listitem>
474 <para>Prints various information about the current locale</para>
475 <indexterm zone="ch-system-glibc locale">
476 <primary sortas="b-locale">locale</primary>
477 </indexterm>
478 </listitem>
479 </varlistentry>
480
481 <varlistentry id="localedef">
482 <term><command>localedef</command></term>
483 <listitem>
484 <para>Compiles locale specifications</para>
485 <indexterm zone="ch-system-glibc localedef">
486 <primary sortas="b-localedef">localedef</primary>
487 </indexterm>
488 </listitem>
489 </varlistentry>
490
491 <varlistentry id="mtrace">
492 <term><command>mtrace</command></term>
493 <listitem>
494 <para>Reads and interprets a memory trace file and displays a summary
495 in human-readable format</para>
496 <indexterm zone="ch-system-glibc mtrace">
497 <primary sortas="b-mtrace">mtrace</primary>
498 </indexterm>
499 </listitem>
500 </varlistentry>
501
502 <varlistentry id="nscd">
503 <term><command>nscd</command></term>
504 <listitem>
505 <para>A daemon that provides a cache for the most common name
506 service requests</para>
507 <indexterm zone="ch-system-glibc nscd">
508 <primary sortas="b-nscd">nscd</primary>
509 </indexterm>
510 </listitem>
511 </varlistentry>
512
513 <varlistentry id="nscd_nischeck">
514 <term><command>nscd_nischeck</command></term>
515 <listitem>
516 <para>Checks whether or not secure mode is necessary for NIS+
517 lookup</para>
518 <indexterm zone="ch-system-glibc nscd_nischeck">
519 <primary sortas="b-nscd_nischeck">nscd_nischeck</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
523
524 <varlistentry id="pcprofiledump">
525 <term><command>pcprofiledump</command></term>
526 <listitem>
527 <para>Dumps information generated by PC profiling</para>
528 <indexterm zone="ch-system-glibc pcprofiledump">
529 <primary sortas="b-pcprofiledump">pcprofiledump</primary>
530 </indexterm>
531 </listitem>
532 </varlistentry>
533
534 <varlistentry id="pt_chown">
535 <term><command>pt_chown</command></term>
536 <listitem>
537 <para>A helper program for <command>grantpt</command> to set the owner,
538 group and access permissions of a slave pseudo terminal</para>
539 <indexterm zone="ch-system-glibc pt_chown">
540 <primary sortas="b-pt_chown">pt_chown</primary>
541 </indexterm>
542 </listitem>
543 </varlistentry>
544
545 <varlistentry id="rpcgen">
546 <term><command>rpcgen</command></term>
547 <listitem>
548 <para>Generates C code to implement the Remote Procecure Call (RPC)
549 protocol</para>
550 <indexterm zone="ch-system-glibc rpcgen">
551 <primary sortas="b-rpcgen">rpcgen</primary>
552 </indexterm>
553 </listitem>
554 </varlistentry>
555
556 <varlistentry id="rpcinfo">
557 <term><command>rpcinfo</command></term>
558 <listitem>
559 <para>Makes an RPC call to an RPC server</para>
560 <indexterm zone="ch-system-glibc rpcinfo">
561 <primary sortas="b-rpcinfo">rpcinfo</primary>
562 </indexterm>
563 </listitem>
564 </varlistentry>
565
566 <varlistentry id="sln">
567 <term><command>sln</command></term>
568 <listitem>
569 <para>A statically linked <command>ln</command> program</para>
570 <indexterm zone="ch-system-glibc sln">
571 <primary sortas="b-sln">sln</primary>
572 </indexterm>
573 </listitem>
574 </varlistentry>
575
576 <varlistentry id="sprof">
577 <term><command>sprof</command></term>
578 <listitem>
579 <para>Reads and displays shared object profiling data</para>
580 <indexterm zone="ch-system-glibc sprof">
581 <primary sortas="b-sprof">sprof</primary>
582 </indexterm>
583 </listitem>
584 </varlistentry>
585
586 <varlistentry id="tzselect">
587 <term><command>tzselect</command></term>
588 <listitem>
589 <para>Asks the user about the location of the system and reports
590 the corresponding time zone description</para>
591 <indexterm zone="ch-system-glibc tzselect">
592 <primary sortas="b-tzselect">tzselect</primary>
593 </indexterm>
594 </listitem>
595 </varlistentry>
596
597 <varlistentry id="xtrace">
598 <term><command>xtrace</command></term>
599 <listitem>
600 <para>Traces the execution of a program by printing the currently
601 executed function</para>
602 <indexterm zone="ch-system-glibc xtrace">
603 <primary sortas="b-xtrace">xtrace</primary>
604 </indexterm>
605 </listitem>
606 </varlistentry>
607
608 <varlistentry id="zdump">
609 <term><command>zdump</command></term>
610 <listitem>
611 <para>The time zone dumper</para>
612 <indexterm zone="ch-system-glibc zdump">
613 <primary sortas="b-zdump">zdump</primary>
614 </indexterm>
615 </listitem>
616 </varlistentry>
617
618 <varlistentry id="zic">
619 <term><command>zic</command></term>
620 <listitem>
621 <para>The time zone compiler</para>
622 <indexterm zone="ch-system-glibc zic">
623 <primary sortas="b-zic">zic</primary>
624 </indexterm>
625 </listitem>
626 </varlistentry>
627
628 <varlistentry id="ld.so">
629 <term><filename class="libraryfile">ld.so</filename></term>
630 <listitem>
631 <para>The helper program for shared library executables</para>
632 <indexterm zone="ch-system-glibc ld.so">
633 <primary sortas="c-ld.so">ld.so</primary>
634 </indexterm>
635 </listitem>
636 </varlistentry>
637
638 <varlistentry id="libBrokenLocale">
639 <term><filename class="libraryfile">libBrokenLocale</filename></term>
640 <listitem>
641 <para>Used internally by Glibc as a gross hack to get broken programs
642 (e.g., some Motif applications) running. See comments in
643 <filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename>
644 for more information</para>
645 <indexterm zone="ch-system-glibc libBrokenLocale">
646 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
647 </indexterm>
648 </listitem>
649 </varlistentry>
650
651 <varlistentry id="libSegFault">
652 <term><filename class="libraryfile">libSegFault</filename></term>
653 <listitem>
654 <para>The segmentation fault signal handler, used by
655 <command>catchsegv</command></para>
656 <indexterm zone="ch-system-glibc libSegFault">
657 <primary sortas="c-libSegFault">libSegFault</primary>
658 </indexterm>
659 </listitem>
660 </varlistentry>
661
662 <varlistentry id="libanl">
663 <term><filename class="libraryfile">libanl</filename></term>
664 <listitem>
665 <para>An asynchronous name lookup library</para>
666 <indexterm zone="ch-system-glibc libanl">
667 <primary sortas="c-libanl">libanl</primary>
668 </indexterm>
669 </listitem>
670 </varlistentry>
671
672 <varlistentry id="libbsd-compat">
673 <term><filename class="libraryfile">libbsd-compat</filename></term>
674 <listitem>
675 <para>Provides the portability needed in order to run certain Berkey
676 Software Distribution (BSD) programs under Linux</para>
677 <indexterm zone="ch-system-glibc libbsd-compat">
678 <primary sortas="c-libbsd-compat">libbsd-compat</primary>
679 </indexterm>
680 </listitem>
681 </varlistentry>
682
683 <varlistentry id="libc">
684 <term><filename class="libraryfile">libc</filename></term>
685 <listitem>
686 <para>The main C library</para>
687 <indexterm zone="ch-system-glibc libc">
688 <primary sortas="c-libc">libc</primary>
689 </indexterm>
690 </listitem>
691 </varlistentry>
692
693 <varlistentry id="libcidn">
694 <term><filename class="libraryfile">libcidn</filename></term>
695 <listitem>
696 <para>Used internally by Glibc for handling internationalized domain
697 names in the <function>getaddrinfo()</function> function</para>
698 <indexterm zone="ch-system-glibc libcrypt">
699 <primary sortas="c-libcrypt">libcrypt</primary>
700 </indexterm>
701 </listitem>
702 </varlistentry>
703
704 <varlistentry id="libcrypt">
705 <term><filename class="libraryfile">libcrypt</filename></term>
706 <listitem>
707 <para>The cryptography library</para>
708 <indexterm zone="ch-system-glibc libcrypt">
709 <primary sortas="c-libcrypt">libcrypt</primary>
710 </indexterm>
711 </listitem>
712 </varlistentry>
713
714 <varlistentry id="libdl">
715 <term><filename class="libraryfile">libdl</filename></term>
716 <listitem>
717 <para>The dynamic linking interface library</para>
718 <indexterm zone="ch-system-glibc libdl">
719 <primary sortas="c-libdl">libdl</primary>
720 </indexterm>
721 </listitem>
722 </varlistentry>
723
724 <varlistentry id="libg">
725 <term><filename class="libraryfile">libg</filename></term>
726 <listitem>
727 <para>Dummy library containing no functions. Previously was a runtime
728 library for <command>g++</command></para>
729 <indexterm zone="ch-system-glibc libg">
730 <primary sortas="c-libg">libg</primary>
731 </indexterm>
732 </listitem>
733 </varlistentry>
734
735 <varlistentry id="libieee">
736 <term><filename class="libraryfile">libieee</filename></term>
737 <listitem>
738 <para>Linking in this module forces error handling rules for math
739 functions as defined by the Institute of Electrical and Electronic
740 Engineers (IEEE). The default is POSIX.1 error handling</para>
741 <indexterm zone="ch-system-glibc libieee">
742 <primary sortas="c-libieee">libieee</primary>
743 </indexterm>
744 </listitem>
745 </varlistentry>
746
747 <varlistentry id="libm">
748 <term><filename class="libraryfile">libm</filename></term>
749 <listitem>
750 <para>The mathematical library</para>
751 <indexterm zone="ch-system-glibc libm">
752 <primary sortas="c-libm">libm</primary>
753 </indexterm>
754 </listitem>
755 </varlistentry>
756
757 <varlistentry id="libmcheck">
758 <term><filename class="libraryfile">libmcheck</filename></term>
759 <listitem>
760 <para>Turns on memory allocation checking when linked to</para>
761 <indexterm zone="ch-system-glibc libmcheck">
762 <primary sortas="c-libmcheck">libmcheck</primary>
763 </indexterm>
764 </listitem>
765 </varlistentry>
766
767 <varlistentry id="libmemusage">
768 <term><filename class="libraryfile">libmemusage</filename></term>
769 <listitem>
770 <para>Used by <command>memusage</command> to help collect
771 information about the memory usage of a program</para>
772 <indexterm zone="ch-system-glibc libmemusage">
773 <primary sortas="c-libmemusage">libmemusage</primary>
774 </indexterm>
775 </listitem>
776 </varlistentry>
777
778 <varlistentry id="libnsl">
779 <term><filename class="libraryfile">libnsl</filename></term>
780 <listitem>
781 <para>The network services library</para>
782 <indexterm zone="ch-system-glibc libnsl">
783 <primary sortas="c-libnsl">libnsl</primary>
784 </indexterm>
785 </listitem>
786 </varlistentry>
787
788 <varlistentry id="libnss">
789 <term><filename class="libraryfile">libnss</filename></term>
790 <listitem>
791 <para>The Name Service Switch libraries, containing functions for
792 resolving host names, user names, group names, aliases, services,
793 protocols, etc.</para>
794 <indexterm zone="ch-system-glibc libnss">
795 <primary sortas="c-libnss">libnss</primary>
796 </indexterm>
797 </listitem>
798 </varlistentry>
799
800 <varlistentry id="libpcprofile">
801 <term><filename class="libraryfile">libpcprofile</filename></term>
802 <listitem>
803 <para>Contains profiling functions used to track the amount of CPU
804 time spent in specific source code lines</para>
805 <indexterm zone="ch-system-glibc libpcprofile">
806 <primary sortas="c-libpcprofile">libpcprofile</primary>
807 </indexterm>
808 </listitem>
809 </varlistentry>
810
811 <varlistentry id="libpthread">
812 <term><filename class="libraryfile">libpthread</filename></term>
813 <listitem>
814 <para>The POSIX threads library</para>
815 <indexterm zone="ch-system-glibc libpthread">
816 <primary sortas="c-libpthread">libpthread</primary>
817 </indexterm>
818 </listitem>
819 </varlistentry>
820
821 <varlistentry id="libresolv">
822 <term><filename class="libraryfile">libresolv</filename></term>
823 <listitem>
824 <para>Contains functions for creating, sending, and interpreting
825 packets to the Internet domain name servers</para>
826 <indexterm zone="ch-system-glibc libresolv">
827 <primary sortas="c-libresolv">libresolv</primary>
828 </indexterm>
829 </listitem>
830 </varlistentry>
831
832 <varlistentry id="librpcsvc">
833 <term><filename class="libraryfile">librpcsvc</filename></term>
834 <listitem>
835 <para>Contains functions providing miscellaneous RPC services</para>
836 <indexterm zone="ch-system-glibc librpcsvc">
837 <primary sortas="c-librpcsvc">librpcsvc</primary>
838 </indexterm>
839 </listitem>
840 </varlistentry>
841
842 <varlistentry id="librt">
843 <term><filename class="libraryfile">librt</filename></term>
844 <listitem>
845 <para>Contains functions providing most of the interfaces specified
846 by the POSIX.1b Realtime Extension</para>
847 <indexterm zone="ch-system-glibc librt">
848 <primary sortas="c-librt">librt</primary>
849 </indexterm>
850 </listitem>
851 </varlistentry>
852
853 <varlistentry id="libthread_db">
854 <term><filename class="libraryfile">libthread_db</filename></term>
855 <listitem>
856 <para>Contains functions useful for building debuggers for
857 multi-threaded programs</para>
858 <indexterm zone="ch-system-glibc libthread_db">
859 <primary sortas="c-libthread_db">libthread_db</primary>
860 </indexterm>
861 </listitem>
862 </varlistentry>
863
864 <varlistentry id="libutil">
865 <term><filename class="libraryfile">libutil</filename></term>
866 <listitem>
867 <para>Contains code for <quote>standard</quote> functions used in
868 many different Unix utilities</para>
869 <indexterm zone="ch-system-glibc libutil">
870 <primary sortas="c-libutil">libutil</primary>
871 </indexterm>
872 </listitem>
873 </varlistentry>
874
875 </variablelist>
876
877 </sect2>
878
879</sect1>
Note: See TracBrowser for help on using the repository browser.