source: chapter06/glibc.xml@ 633f48b

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 633f48b was 633f48b, checked in by Dan Nichilson <dnicholson@…>, 17 years ago

Updated to glibc-2.5.1

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

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