source: chapter06/glibc.xml@ 2f494dc

Last change on this file since 2f494dc was 2f494dc, checked in by Dan Nichilson <dnicholson@…>, 18 years ago

Finished adding system inotify support in linux-libc-headers and glibc.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.2/BOOK@7738 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<screen><userinput>sed -i \
92's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|' \
93 scripts/test-installation.pl</userinput></screen>
94
95 <beginpage/>
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 <para>Though it is a harmless message, the install stage of Glibc will
168 complain about the absence of <filename>/etc/ld.so.conf</filename>.
169 Prevent this warning with:</para>
170
171<screen><userinput>touch /etc/ld.so.conf</userinput></screen>
172
173 <para>Install the package:</para>
174
175<screen><userinput>make install</userinput></screen>
176
177 <para>Install the inotify header to the system header location:</para>
178
179<screen><userinput>cp -v ../glibc-&glibc-version;/sysdeps/unix/sysv/linux/inotify.h \
180 /usr/include/sys</userinput></screen>
181
182 <para>The locales that can make the system respond in a different language
183 were not installed by the above command. None of the locales are required,
184 but if some of them are missing, testsuites of the future packages would
185 skip important testcases.</para>
186
187 <para>Individual locales can be installed using the
188 <command>localedef</command> program. E.g., the first
189 <command>localedef</command> command below combines the
190 <filename>/usr/share/i18n/locales/de_DE</filename>
191 charset-independent locale definition with the
192 <filename>/usr/share/i18n/charmaps/ISO-8859-1.gz</filename>
193 charmap definition and appends the result to the
194 <filename>/usr/lib/locale/locale-archive</filename> file.
195 The following instructions will install the minimum set of
196 locales necessary for the optimal coverage of tests:</para>
197
198<screen role="nodump"><userinput>mkdir -pv /usr/lib/locale
199localedef -i de_DE -f ISO-8859-1 de_DE
200localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
201localedef -i en_HK -f ISO-8859-1 en_HK
202localedef -i en_PH -f ISO-8859-1 en_PH
203localedef -i en_US -f ISO-8859-1 en_US
204localedef -i en_US -f UTF-8 en_US.UTF-8
205localedef -i es_MX -f ISO-8859-1 es_MX
206localedef -i fa_IR -f UTF-8 fa_IR
207localedef -i fr_FR -f ISO-8859-1 fr_FR
208localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
209localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
210localedef -i it_IT -f ISO-8859-1 it_IT
211localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
212
213 <para>In addition, install the locale for your own country, language and
214 character set.</para>
215
216 <para>Alternatively, install all locales listed in the
217 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
218 (it includes every locale listed above and many more) at once with the
219 following time-consuming command:</para>
220
221<screen><userinput>make localedata/install-locales</userinput></screen>
222
223 <para>Then use the <command>localedef</command> command to create and
224 install locales not listed in the
225 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
226 in the unlikely case if you need them.</para>
227 <!-- The Live CD patches the localedata/SUPPORTED file instead of
228 running localedef, the results are equivalent -->
229
230 </sect2>
231
232 <sect2 id="conf-glibc" role="configuration">
233 <title>Configuring Glibc</title>
234
235 <indexterm zone="conf-glibc">
236 <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
237 </indexterm>
238
239 <indexterm zone="conf-glibc">
240 <primary sortas="e-/etc/localtime">/etc/localtime</primary>
241 </indexterm>
242
243 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
244 because, although Glibc provides defaults when this file is missing or corrupt,
245 the Glibc defaults do not work well in a networked environment. The time zone
246 also needs to be configured.</para>
247
248 <beginpage/>
249
250 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
251 following:</para>
252
253<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
254<literal># Begin /etc/nsswitch.conf
255
256passwd: files
257group: files
258shadow: files
259
260hosts: files dns
261networks: files
262
263protocols: files
264services: files
265ethers: files
266rpc: files
267
268# End /etc/nsswitch.conf</literal>
269EOF</userinput></screen>
270
271 <para>One way to determine the local time zone, run the following
272 script:</para>
273
274<screen role="nodump"><userinput>tzselect</userinput></screen>
275
276 <para>After answering a few questions about the location, the script will
277 output the name of the time zone (e.g.,
278 <emphasis>America/Edmonton</emphasis>). There are also some other possible
279 timezones listed in <filename
280 class='directory'>/usr/share/zoneinfo</filename> such as
281 <emphasis>Canada/Eastern</emphasis> or <emphasis>EST5EDT</emphasis> that
282 are not identified by the script but can be used.</para>
283
284 <para>Then create the <filename>/etc/localtime</filename> file by
285 running:</para>
286
287<screen><userinput>cp -v --remove-destination /usr/share/zoneinfo/<replaceable>&lt;xxx&gt;</replaceable> \
288 /etc/localtime</userinput></screen>
289
290 <para>Replace <replaceable>&lt;xxx&gt;</replaceable> with the name of the
291 time zone selected (e.g., Canada/Eastern).</para>
292
293 <variablelist>
294 <title>The meaning of the cp option:</title>
295
296 <varlistentry>
297 <term><parameter>--remove-destination</parameter></term>
298 <listitem>
299 <para>This is needed to force removal of the already existing symbolic
300 link. The reason for copying the file instead of using a symlink is to
301 cover the situation where <filename class="directory">/usr</filename>
302 is on a separate partition. This could be important when booted into
303 single user mode.</para>
304 </listitem>
305 </varlistentry>
306
307 </variablelist>
308
309 </sect2>
310
311 <sect2 id="conf-ld" role="configuration">
312 <title>Configuring the Dynamic Loader</title>
313
314 <indexterm zone="conf-ld">
315 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
316 </indexterm>
317
318 <para>By default, the dynamic loader (<filename
319 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
320 <filename class="directory">/lib</filename> and <filename
321 class="directory">/usr/lib</filename> for dynamic libraries that are
322 needed by programs as they are run. However, if there are libraries in
323 directories other than <filename class="directory">/lib</filename> and
324 <filename class="directory">/usr/lib</filename>, these need to be added
325 to the <filename>/etc/ld.so.conf</filename> file in order for the
326 dynamic loader to find them. Two directories that are commonly known
327 to contain additional libraries are <filename
328 class="directory">/usr/local/lib</filename> and <filename
329 class="directory">/opt/lib</filename>, so add those directories to the
330 dynamic loader's search path.</para>
331
332 <beginpage/>
333
334 <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
335 following:</para>
336
337<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
338<literal># Begin /etc/ld.so.conf
339
340/usr/local/lib
341/opt/lib
342
343# End /etc/ld.so.conf</literal>
344EOF</userinput></screen>
345
346 </sect2>
347
348 <sect2 id="contents-glibc" role="content">
349 <title>Contents of Glibc</title>
350
351 <segmentedlist>
352 <segtitle>Installed programs</segtitle>
353 <segtitle>Installed libraries</segtitle>
354
355 <seglistitem>
356 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
357 ldd, lddlibc4, locale, localedef, mtrace, nscd, nscd_nischeck,
358 pcprofiledump, pt_chown, rpcgen, rpcinfo, sln, sprof, tzselect, xtrace,
359 zdump, and zic</seg>
360 <seg>ld.so, libBrokenLocale.{a,so}, libSegFault.so, libanl.{a,so},
361 libbsd-compat.a, libc.{a,so}, libcidn.so, libcrypt.{a,so}, libdl.{a,so},
362 libg.a, libieee.a, libm.{a,so}, libmcheck.a, libmemusage.so, libnsl.a,
363 libnss_compat.so, libnss_dns.so, libnss_files.so, libnss_hesiod.so,
364 libnss_nis.so, libnss_nisplus.so, libpcprofile.so, libpthread.{a,so},
365 libresolv.{a,so}, librpcsvc.a, librt.{a,so}, libthread_db.so, and
366 libutil.{a,so}</seg>
367 </seglistitem>
368 </segmentedlist>
369
370 <variablelist>
371 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
372 <?dbfo list-presentation="list"?>
373 <?dbhtml list-presentation="table"?>
374
375 <varlistentry id="catchsegv">
376 <term><command>catchsegv</command></term>
377 <listitem>
378 <para>Can be used to create a stack trace when a program
379 terminates with a segmentation fault</para>
380 <indexterm zone="ch-system-glibc catchsegv">
381 <primary sortas="b-catchsegv">catchsegv</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
386 <varlistentry id="gencat">
387 <term><command>gencat</command></term>
388 <listitem>
389 <para>Generates message catalogues</para>
390 <indexterm zone="ch-system-glibc gencat">
391 <primary sortas="b-gencat">gencat</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
395
396 <varlistentry id="getconf">
397 <term><command>getconf</command></term>
398 <listitem>
399 <para>Displays the system configuration values for file system
400 specific variables</para>
401 <indexterm zone="ch-system-glibc getconf">
402 <primary sortas="b-getconf">getconf</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
407 <varlistentry id="getent">
408 <term><command>getent</command></term>
409 <listitem>
410 <para>Gets entries from an administrative database</para>
411 <indexterm zone="ch-system-glibc getent">
412 <primary sortas="b-getent">getent</primary>
413 </indexterm>
414 </listitem>
415 </varlistentry>
416
417 <varlistentry id="iconv">
418 <term><command>iconv</command></term>
419 <listitem>
420 <para>Performs character set conversion</para>
421 <indexterm zone="ch-system-glibc iconv">
422 <primary sortas="b-iconv">iconv</primary>
423 </indexterm>
424 </listitem>
425 </varlistentry>
426
427 <varlistentry id="iconvconfig">
428 <term><command>iconvconfig</command></term>
429 <listitem>
430 <para>Creates fastloading <command>iconv</command> module configuration
431 files</para>
432 <indexterm zone="ch-system-glibc iconvconfig">
433 <primary sortas="b-iconvconfig">iconvconfig</primary>
434 </indexterm>
435 </listitem>
436 </varlistentry>
437
438 <varlistentry id="ldconfig">
439 <term><command>ldconfig</command></term>
440 <listitem>
441 <para>Configures the dynamic linker runtime bindings</para>
442 <indexterm zone="ch-system-glibc ldconfig">
443 <primary sortas="b-ldconfig">ldconfig</primary>
444 </indexterm>
445 </listitem>
446 </varlistentry>
447
448 <varlistentry id="ldd">
449 <term><command>ldd</command></term>
450 <listitem>
451 <para>Reports which shared libraries are required
452 by each given program or shared library</para>
453 <indexterm zone="ch-system-glibc ldd">
454 <primary sortas="b-ldd">ldd</primary>
455 </indexterm>
456 </listitem>
457 </varlistentry>
458
459 <varlistentry id="lddlibc4">
460 <term><command>lddlibc4</command></term>
461 <listitem>
462 <para>Assists <command>ldd</command> with object files</para>
463 <indexterm zone="ch-system-glibc lddlibc4">
464 <primary sortas="b-lddlibc4">lddlibc4</primary>
465 </indexterm>
466 </listitem>
467 </varlistentry>
468
469 <varlistentry id="locale">
470 <term><command>locale</command></term>
471 <listitem>
472 <para>Prints various information about the current locale</para>
473 <indexterm zone="ch-system-glibc locale">
474 <primary sortas="b-locale">locale</primary>
475 </indexterm>
476 </listitem>
477 </varlistentry>
478
479 <varlistentry id="localedef">
480 <term><command>localedef</command></term>
481 <listitem>
482 <para>Compiles locale specifications</para>
483 <indexterm zone="ch-system-glibc localedef">
484 <primary sortas="b-localedef">localedef</primary>
485 </indexterm>
486 </listitem>
487 </varlistentry>
488
489 <varlistentry id="mtrace">
490 <term><command>mtrace</command></term>
491 <listitem>
492 <para>Reads and interprets a memory trace file and displays a summary
493 in human-readable format</para>
494 <indexterm zone="ch-system-glibc mtrace">
495 <primary sortas="b-mtrace">mtrace</primary>
496 </indexterm>
497 </listitem>
498 </varlistentry>
499
500 <varlistentry id="nscd">
501 <term><command>nscd</command></term>
502 <listitem>
503 <para>A daemon that provides a cache for the most common name
504 service requests</para>
505 <indexterm zone="ch-system-glibc nscd">
506 <primary sortas="b-nscd">nscd</primary>
507 </indexterm>
508 </listitem>
509 </varlistentry>
510
511 <varlistentry id="nscd_nischeck">
512 <term><command>nscd_nischeck</command></term>
513 <listitem>
514 <para>Checks whether or not secure mode is necessary for NIS+
515 lookup</para>
516 <indexterm zone="ch-system-glibc nscd_nischeck">
517 <primary sortas="b-nscd_nischeck">nscd_nischeck</primary>
518 </indexterm>
519 </listitem>
520 </varlistentry>
521
522 <varlistentry id="pcprofiledump">
523 <term><command>pcprofiledump</command></term>
524 <listitem>
525 <para>Dumps information generated by PC profiling</para>
526 <indexterm zone="ch-system-glibc pcprofiledump">
527 <primary sortas="b-pcprofiledump">pcprofiledump</primary>
528 </indexterm>
529 <beginpage/>
530 </listitem>
531 </varlistentry>
532
533 <varlistentry id="pt_chown">
534 <term><command>pt_chown</command></term>
535 <listitem>
536 <para>A helper program for <command>grantpt</command> to set the owner,
537 group and access permissions of a slave pseudo terminal</para>
538 <indexterm zone="ch-system-glibc pt_chown">
539 <primary sortas="b-pt_chown">pt_chown</primary>
540 </indexterm>
541 </listitem>
542 </varlistentry>
543
544 <varlistentry id="rpcgen">
545 <term><command>rpcgen</command></term>
546 <listitem>
547 <para>Generates C code to implement the Remote Procecure Call (RPC)
548 protocol</para>
549 <indexterm zone="ch-system-glibc rpcgen">
550 <primary sortas="b-rpcgen">rpcgen</primary>
551 </indexterm>
552 </listitem>
553 </varlistentry>
554
555 <varlistentry id="rpcinfo">
556 <term><command>rpcinfo</command></term>
557 <listitem>
558 <para>Makes an RPC call to an RPC server</para>
559 <indexterm zone="ch-system-glibc rpcinfo">
560 <primary sortas="b-rpcinfo">rpcinfo</primary>
561 </indexterm>
562 </listitem>
563 </varlistentry>
564
565 <varlistentry id="sln">
566 <term><command>sln</command></term>
567 <listitem>
568 <para>A statically linked <command>ln</command> program</para>
569 <indexterm zone="ch-system-glibc sln">
570 <primary sortas="b-sln">sln</primary>
571 </indexterm>
572 </listitem>
573 </varlistentry>
574
575 <varlistentry id="sprof">
576 <term><command>sprof</command></term>
577 <listitem>
578 <para>Reads and displays shared object profiling data</para>
579 <indexterm zone="ch-system-glibc sprof">
580 <primary sortas="b-sprof">sprof</primary>
581 </indexterm>
582 </listitem>
583 </varlistentry>
584
585 <varlistentry id="tzselect">
586 <term><command>tzselect</command></term>
587 <listitem>
588 <para>Asks the user about the location of the system and reports
589 the corresponding time zone description</para>
590 <indexterm zone="ch-system-glibc tzselect">
591 <primary sortas="b-tzselect">tzselect</primary>
592 </indexterm>
593 </listitem>
594 </varlistentry>
595
596 <varlistentry id="xtrace">
597 <term><command>xtrace</command></term>
598 <listitem>
599 <para>Traces the execution of a program by printing the currently
600 executed function</para>
601 <indexterm zone="ch-system-glibc xtrace">
602 <primary sortas="b-xtrace">xtrace</primary>
603 </indexterm>
604 </listitem>
605 </varlistentry>
606
607 <varlistentry id="zdump">
608 <term><command>zdump</command></term>
609 <listitem>
610 <para>The time zone dumper</para>
611 <indexterm zone="ch-system-glibc zdump">
612 <primary sortas="b-zdump">zdump</primary>
613 </indexterm>
614 </listitem>
615 </varlistentry>
616
617 <varlistentry id="zic">
618 <term><command>zic</command></term>
619 <listitem>
620 <para>The time zone compiler</para>
621 <indexterm zone="ch-system-glibc zic">
622 <primary sortas="b-zic">zic</primary>
623 </indexterm>
624 </listitem>
625 </varlistentry>
626
627 <varlistentry id="ld.so">
628 <term><filename class="libraryfile">ld.so</filename></term>
629 <listitem>
630 <para>The helper program for shared library executables</para>
631 <indexterm zone="ch-system-glibc ld.so">
632 <primary sortas="c-ld.so">ld.so</primary>
633 </indexterm>
634 </listitem>
635 </varlistentry>
636
637 <varlistentry id="libBrokenLocale">
638 <term><filename class="libraryfile">libBrokenLocale</filename></term>
639 <listitem>
640 <para>Used internally by Glibc as a gross hack to get broken programs
641 (e.g., some Motif applications) running. See comments in
642 <filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename>
643 for more information</para>
644 <indexterm zone="ch-system-glibc libBrokenLocale">
645 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
646 </indexterm>
647 </listitem>
648 </varlistentry>
649
650 <varlistentry id="libSegFault">
651 <term><filename class="libraryfile">libSegFault</filename></term>
652 <listitem>
653 <para>The segmentation fault signal handler, used by
654 <command>catchsegv</command></para>
655 <indexterm zone="ch-system-glibc libSegFault">
656 <primary sortas="c-libSegFault">libSegFault</primary>
657 </indexterm>
658 </listitem>
659 </varlistentry>
660
661 <varlistentry id="libanl">
662 <term><filename class="libraryfile">libanl</filename></term>
663 <listitem>
664 <para>An asynchronous name lookup library</para>
665 <indexterm zone="ch-system-glibc libanl">
666 <primary sortas="c-libanl">libanl</primary>
667 </indexterm>
668 </listitem>
669 </varlistentry>
670
671 <varlistentry id="libbsd-compat">
672 <term><filename class="libraryfile">libbsd-compat</filename></term>
673 <listitem>
674 <para>Provides the portability needed in order to run certain Berkey
675 Software Distribution (BSD) programs under Linux</para>
676 <indexterm zone="ch-system-glibc libbsd-compat">
677 <primary sortas="c-libbsd-compat">libbsd-compat</primary>
678 </indexterm>
679 </listitem>
680 </varlistentry>
681
682 <varlistentry id="libc">
683 <term><filename class="libraryfile">libc</filename></term>
684 <listitem>
685 <para>The main C library</para>
686 <indexterm zone="ch-system-glibc libc">
687 <primary sortas="c-libc">libc</primary>
688 </indexterm>
689 </listitem>
690 </varlistentry>
691
692 <varlistentry id="libcidn">
693 <term><filename class="libraryfile">libcidn</filename></term>
694 <listitem>
695 <para>Used internally by Glibc for handling internationalized domain
696 names in the <function>getaddrinfo()</function> function</para>
697 <indexterm zone="ch-system-glibc libcrypt">
698 <primary sortas="c-libcrypt">libcrypt</primary>
699 </indexterm>
700 </listitem>
701 </varlistentry>
702
703 <varlistentry id="libcrypt">
704 <term><filename class="libraryfile">libcrypt</filename></term>
705 <listitem>
706 <para>The cryptography library</para>
707 <indexterm zone="ch-system-glibc libcrypt">
708 <primary sortas="c-libcrypt">libcrypt</primary>
709 </indexterm>
710 </listitem>
711 </varlistentry>
712
713 <varlistentry id="libdl">
714 <term><filename class="libraryfile">libdl</filename></term>
715 <listitem>
716 <para>The dynamic linking interface library</para>
717 <indexterm zone="ch-system-glibc libdl">
718 <primary sortas="c-libdl">libdl</primary>
719 </indexterm>
720 </listitem>
721 </varlistentry>
722
723 <varlistentry id="libg">
724 <term><filename class="libraryfile">libg</filename></term>
725 <listitem>
726 <para>Dummy library containing no functions. Previously was a runtime
727 library for <command>g++</command></para>
728 <indexterm zone="ch-system-glibc libg">
729 <primary sortas="c-libg">libg</primary>
730 </indexterm>
731 </listitem>
732 </varlistentry>
733
734 <varlistentry id="libieee">
735 <term><filename class="libraryfile">libieee</filename></term>
736 <listitem>
737 <para>Linking in this module forces error handling rules for math
738 functions as defined by the Institute of Electrical and Electronic
739 Engineers (IEEE). The default is POSIX.1 error handling</para>
740 <indexterm zone="ch-system-glibc libieee">
741 <primary sortas="c-libieee">libieee</primary>
742 </indexterm>
743 </listitem>
744 </varlistentry>
745
746 <varlistentry id="libm">
747 <term><filename class="libraryfile">libm</filename></term>
748 <listitem>
749 <para>The mathematical library</para>
750 <indexterm zone="ch-system-glibc libm">
751 <primary sortas="c-libm">libm</primary>
752 </indexterm>
753 </listitem>
754 </varlistentry>
755
756 <varlistentry id="libmcheck">
757 <term><filename class="libraryfile">libmcheck</filename></term>
758 <listitem>
759 <para>Turns on memory allocation checking when linked to</para>
760 <indexterm zone="ch-system-glibc libmcheck">
761 <primary sortas="c-libmcheck">libmcheck</primary>
762 </indexterm>
763 </listitem>
764 </varlistentry>
765
766 <varlistentry id="libmemusage">
767 <term><filename class="libraryfile">libmemusage</filename></term>
768 <listitem>
769 <para>Used by <command>memusage</command> to help collect
770 information about the memory usage of a program</para>
771 <indexterm zone="ch-system-glibc libmemusage">
772 <primary sortas="c-libmemusage">libmemusage</primary>
773 </indexterm>
774 </listitem>
775 </varlistentry>
776
777 <varlistentry id="libnsl">
778 <term><filename class="libraryfile">libnsl</filename></term>
779 <listitem>
780 <para>The network services library</para>
781 <indexterm zone="ch-system-glibc libnsl">
782 <primary sortas="c-libnsl">libnsl</primary>
783 </indexterm>
784 </listitem>
785 </varlistentry>
786
787 <varlistentry id="libnss">
788 <term><filename class="libraryfile">libnss</filename></term>
789 <listitem>
790 <para>The Name Service Switch libraries, containing functions for
791 resolving host names, user names, group names, aliases, services,
792 protocols, etc.</para>
793 <indexterm zone="ch-system-glibc libnss">
794 <primary sortas="c-libnss">libnss</primary>
795 </indexterm>
796 </listitem>
797 </varlistentry>
798
799 <varlistentry id="libpcprofile">
800 <term><filename class="libraryfile">libpcprofile</filename></term>
801 <listitem>
802 <para>Contains profiling functions used to track the amount of CPU
803 time spent in specific source code lines</para>
804 <indexterm zone="ch-system-glibc libpcprofile">
805 <primary sortas="c-libpcprofile">libpcprofile</primary>
806 </indexterm>
807 </listitem>
808 </varlistentry>
809
810 <varlistentry id="libpthread">
811 <term><filename class="libraryfile">libpthread</filename></term>
812 <listitem>
813 <para>The POSIX threads library</para>
814 <indexterm zone="ch-system-glibc libpthread">
815 <primary sortas="c-libpthread">libpthread</primary>
816 </indexterm>
817 </listitem>
818 </varlistentry>
819
820 <varlistentry id="libresolv">
821 <term><filename class="libraryfile">libresolv</filename></term>
822 <listitem>
823 <para>Contains functions for creating, sending, and interpreting
824 packets to the Internet domain name servers</para>
825 <indexterm zone="ch-system-glibc libresolv">
826 <primary sortas="c-libresolv">libresolv</primary>
827 </indexterm>
828 </listitem>
829 </varlistentry>
830
831 <varlistentry id="librpcsvc">
832 <term><filename class="libraryfile">librpcsvc</filename></term>
833 <listitem>
834 <para>Contains functions providing miscellaneous RPC services</para>
835 <indexterm zone="ch-system-glibc librpcsvc">
836 <primary sortas="c-librpcsvc">librpcsvc</primary>
837 </indexterm>
838 </listitem>
839 </varlistentry>
840
841 <varlistentry id="librt">
842 <term><filename class="libraryfile">librt</filename></term>
843 <listitem>
844 <para>Contains functions providing most of the interfaces specified
845 by the POSIX.1b Realtime Extension</para>
846 <indexterm zone="ch-system-glibc librt">
847 <primary sortas="c-librt">librt</primary>
848 </indexterm>
849 </listitem>
850 </varlistentry>
851
852 <varlistentry id="libthread_db">
853 <term><filename class="libraryfile">libthread_db</filename></term>
854 <listitem>
855 <para>Contains functions useful for building debuggers for
856 multi-threaded programs</para>
857 <indexterm zone="ch-system-glibc libthread_db">
858 <primary sortas="c-libthread_db">libthread_db</primary>
859 </indexterm>
860 </listitem>
861 </varlistentry>
862
863 <varlistentry id="libutil">
864 <term><filename class="libraryfile">libutil</filename></term>
865 <listitem>
866 <para>Contains code for <quote>standard</quote> functions used in
867 many different Unix utilities</para>
868 <indexterm zone="ch-system-glibc libutil">
869 <primary sortas="c-libutil">libutil</primary>
870 </indexterm>
871 </listitem>
872 </varlistentry>
873
874 </variablelist>
875
876 </sect2>
877
878</sect1>
Note: See TracBrowser for help on using the repository browser.