source: chapter06/glibc.xml@ 42130d6

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 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 42130d6 was 42130d6, checked in by Krejzi <krejzi@…>, 8 years ago

Updated to file-5.26, gcc-6.1.0, grep-2.25, gzip-1.8, linux-4.5.2 and tzdata-2016d.

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

  • Property mode set to 100644
File size: 33.8 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 <sect1info condition="script">
12 <productname>glibc</productname>
13 <productnumber>&glibc-version;</productnumber>
14 <address>&glibc-url;</address>
15 </sect1info>
16
17 <title>Glibc-&glibc-version;</title>
18
19 <indexterm zone="ch-system-glibc">
20 <primary sortas="a-Glibc">Glibc</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Glibc package contains the main C library. This library provides
27 the basic routines for allocating memory, searching directories, opening and
28 closing files, reading and writing files, string handling, pattern matching,
29 arithmetic, and so on.</para>
30
31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
34
35 <seglistitem>
36 <seg>&glibc-ch6-sbu;</seg>
37 <seg>&glibc-ch6-du;</seg>
38 </seglistitem>
39 </segmentedlist>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Glibc</title>
45<!--
46 <note>
47 <para>Some packages outside of LFS suggest installing GNU libiconv in
48 order to translate data from one encoding to another. The project's
49 home page (<ulink url="http://www.gnu.org/software/libiconv/"/>) says
50 <quote>This library provides an <function>iconv()</function>
51 implementation, for use on systems which don't have one, or whose
52 implementation cannot convert from/to Unicode.</quote> Glibc provides
53 an <function>iconv()</function> implementation and can convert from/to
54 Unicode, therefore libiconv is not required on an LFS system.</para>
55 </note>
56-->
57 <note><para>The Glibc build system is self-contained and will install
58 perfectly, even though the compiler specs file and linker are still
59 pointing to <filename class="directory">/tools</filename>. The specs
60 and linker cannot be adjusted before the Glibc install because the
61 Glibc autoconf tests would give false results and defeat the goal
62 of achieving a clean build.</para></note>
63
64 <para>Some of the Glibc programs use non-FHS compilant
65 <filename class="directory">/var/db</filename> directory to store
66 their runtime data. Apply the following patch to make such programs
67 store their runtime data in the FHS-compliant locations:</para>
68
69<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
70
71 <para>Fix some problems identified upstream:</para>
72
73<screen><userinput remap="pre">patch -Np1 -i ../&glibc-upstream-patch;</userinput></screen>
74
75 <para>The Glibc documentation recommends building Glibc
76 in a dedicated build directory:</para>
77
78<screen><userinput remap="pre">mkdir -v build
79cd build</userinput></screen>
80
81 <para>Prepare Glibc for compilation:</para>
82
83<screen><userinput remap="configure">../configure --prefix=/usr \
84 --enable-kernel=&min-kernel; \
85 --enable-obsolete-rpc</userinput></screen>
86
87 <para>Compile the package:</para>
88
89<screen><userinput remap="make">make</userinput></screen>
90
91 <important>
92 <para>In this section, the test suite for Glibc is considered critical.
93 Do not skip it under any circumstance.</para>
94 </important>
95
96 <para>Generally a few tests do not pass, but you can generally ignore
97 any of the test failures listed below. Now test the build results:</para>
98
99<screen><userinput remap="test">make check</userinput></screen>
100
101 <para>You will probably see some test failures. The Glibc test suite is
102 somewhat dependent on the host system. This is a list of the most common
103 issues seen for this version of LFS:</para>
104
105 <itemizedlist>
106
107 <listitem>
108 <para><emphasis>posix/tst-getaddrinfo4</emphasis> and
109 <emphasis>posix/tst-getaddrinfo5</emphasis> will always fail due
110 to not having the necessary networking applications when the tests are
111 run.</para>
112 </listitem>
113
114 <listitem>
115 <para>The <emphasis>rt/tst-cputimer1</emphasis> and
116 <emphasis>rt/tst-cpuclock2</emphasis> tests have been known to
117 fail. The reason is not completely understood, but indications are
118 that minor timing issues can trigger these failures.</para>
119 </listitem>
120
121 <listitem>
122 <para>The math tests sometimes fail when running on
123 systems where the CPU is not a relatively new Intel or
124 AMD processor.</para>
125 </listitem>
126
127 <listitem>
128 <para>The
129 <emphasis>nptl/tst-thread-affinity-{pthread,pthread2,sched}</emphasis>
130 tests may fail for reasons that have not been determined. </para>
131 </listitem>
132
133 <listitem>
134 <para>Other tests known to fail on some architectures are
135 malloc/tst-malloc-usable and nptl/tst-cleanupx4. </para>
136 </listitem>
137
138 </itemizedlist>
139
140 <para>Though it is a harmless message, the install stage of Glibc will
141 complain about the absence of <filename>/etc/ld.so.conf</filename>.
142 Prevent this warning with:</para>
143
144<screen><userinput remap="install">touch /etc/ld.so.conf</userinput></screen>
145
146 <para>Install the package:</para>
147
148<screen><userinput remap="install">make install</userinput></screen>
149
150 <para>Install the configuration file and runtime directory for
151 <command>nscd</command>:</para>
152
153<screen><userinput remap="install">cp -v ../nscd/nscd.conf /etc/nscd.conf
154mkdir -pv /var/cache/nscd</userinput></screen>
155
156 <para>Next, install the locales that can make the system respond in a
157 different language. None of the locales are required, but if some of them
158 are missing, the test suites of future packages would skip important
159 testcases.</para>
160
161 <para>Individual locales can be installed using the
162 <command>localedef</command> program. E.g., the first
163 <command>localedef</command> command below combines the
164 <filename>/usr/share/i18n/locales/cs_CZ</filename>
165 charset-independent locale definition with the
166 <filename>/usr/share/i18n/charmaps/UTF-8.gz</filename>
167 charmap definition and appends the result to the
168 <filename>/usr/lib/locale/locale-archive</filename> file.
169 The following instructions will install the minimum set of
170 locales necessary for the optimal coverage of tests:</para>
171
172<screen role="nodump"><userinput remap="locale-test">mkdir -pv /usr/lib/locale
173localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
174localedef -i de_DE -f ISO-8859-1 de_DE
175localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
176localedef -i de_DE -f UTF-8 de_DE.UTF-8
177localedef -i en_GB -f UTF-8 en_GB.UTF-8
178localedef -i en_HK -f ISO-8859-1 en_HK
179localedef -i en_PH -f ISO-8859-1 en_PH
180localedef -i en_US -f ISO-8859-1 en_US
181localedef -i en_US -f UTF-8 en_US.UTF-8
182localedef -i es_MX -f ISO-8859-1 es_MX
183localedef -i fa_IR -f UTF-8 fa_IR
184localedef -i fr_FR -f ISO-8859-1 fr_FR
185localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
186localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
187localedef -i it_IT -f ISO-8859-1 it_IT
188localedef -i it_IT -f UTF-8 it_IT.UTF-8
189localedef -i ja_JP -f EUC-JP ja_JP
190localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R
191localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
192localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
193localedef -i zh_CN -f GB18030 zh_CN.GB18030</userinput></screen>
194
195 <para>In addition, install the locale for your own country, language and
196 character set.</para>
197
198 <para>Alternatively, install all locales listed in the
199 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
200 (it includes every locale listed above and many more) at once with the
201 following time-consuming command:</para>
202
203<screen><userinput remap="locale-full">make localedata/install-locales</userinput></screen>
204
205 <para>Then use the <command>localedef</command> command to create and
206 install locales not listed in the
207 <filename>glibc-&glibc-version;/localedata/SUPPORTED</filename> file
208 in the unlikely case you need them.</para>
209
210 </sect2>
211
212 <sect2 id="conf-glibc" role="configuration">
213 <title>Configuring Glibc</title>
214
215 <indexterm zone="conf-glibc">
216 <primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary>
217 </indexterm>
218
219 <indexterm zone="conf-glibc">
220 <primary sortas="e-/etc/localtime">/etc/localtime</primary>
221 </indexterm>
222
223 <sect3>
224 <title>Adding nsswitch.conf</title>
225
226 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
227 because the Glibc defaults do not work well in a networked environment.
228 </para>
229
230 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
231 following:</para>
232
233<screen><userinput>cat &gt; /etc/nsswitch.conf &lt;&lt; "EOF"
234<literal># Begin /etc/nsswitch.conf
235
236passwd: files
237group: files
238shadow: files
239
240hosts: files dns
241networks: files
242
243protocols: files
244services: files
245ethers: files
246rpc: files
247
248# End /etc/nsswitch.conf</literal>
249EOF</userinput></screen>
250
251 </sect3>
252
253 <sect3>
254 <title>Adding time zone data</title>
255
256 <para>Install and set up the time zone data with the following:</para>
257<screen><userinput>tar -xf ../../tzdata&tzdata-version;.tar.gz
258
259ZONEINFO=/usr/share/zoneinfo
260mkdir -pv $ZONEINFO/{posix,right}
261
262for tz in etcetera southamerica northamerica europe africa antarctica \
263 asia australasia backward pacificnew systemv; do
264 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
265 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
266 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
267done
268
269cp -v zone.tab zone1970.tab iso3166.tab $ZONEINFO
270zic -d $ZONEINFO -p America/New_York
271unset ZONEINFO</userinput></screen>
272
273 <variablelist>
274 <title>The meaning of the zic commands:</title>
275
276 <varlistentry>
277 <term><parameter>zic -L /dev/null ...</parameter></term>
278 <listitem>
279 <para>This creates posix time zones, without any leap seconds. It is
280 conventional to put these in both
281 <filename class="directory">zoneinfo</filename> and
282 <filename class="directory">zoneinfo/posix</filename>. It is
283 necessary to put the POSIX time zones in
284 <filename class="directory">zoneinfo</filename>, otherwise various
285 test-suites will report errors. On an embedded system, where space is
286 tight and you do not intend to ever update the time zones, you could save
287 1.9MB by not using the <filename class="directory">posix</filename>
288 directory, but some applications or test-suites might produce some
289 failures.</para>
290 </listitem>
291 </varlistentry>
292 <varlistentry>
293 <term><parameter>zic -L leapseconds ...</parameter></term>
294 <listitem>
295 <para>This creates right time zones, including leap seconds. On an
296 embedded system, where space is tight and you do not intend to
297 ever update the time zones, or care about the correct time, you could
298 save 1.9MB by omitting the <filename class="directory">right</filename>
299 directory.</para>
300 </listitem>
301 </varlistentry>
302 <varlistentry>
303 <term><parameter>zic ... -p ...</parameter></term>
304 <listitem>
305 <para>This creates the <filename>posixrules</filename> file. We use
306 New York because POSIX requires the daylight savings time rules
307 to be in accordance with US rules.</para>
308 </listitem>
309 </varlistentry>
310 </variablelist>
311
312
313 <para>One way to determine the local time zone is to run the following
314 script:</para>
315
316<screen role="nodump"><userinput>tzselect</userinput></screen>
317
318 <para>After answering a few questions about the location, the script will
319 output the name of the time zone (e.g.,
320 <emphasis>America/Edmonton</emphasis>). There are also some other possible
321 time zones listed in <filename
322 class='directory'>/usr/share/zoneinfo</filename> such as
323 <emphasis>Canada/Eastern</emphasis> or <emphasis>EST5EDT</emphasis> that
324 are not identified by the script but can be used.</para>
325
326 <para>Then create the <filename>/etc/localtime</filename> file by
327 running:</para>
328
329<screen><userinput>cp -v /usr/share/zoneinfo/<replaceable>&lt;xxx&gt;</replaceable> /etc/localtime</userinput></screen>
330
331 <para>Replace <replaceable>&lt;xxx&gt;</replaceable> with the name of the
332 time zone selected (e.g., Canada/Eastern).</para>
333
334 </sect3>
335
336 <sect3 id="conf-ld" role="configuration">
337 <title>Configuring the Dynamic Loader</title>
338
339 <indexterm zone="conf-ld">
340 <primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary>
341 </indexterm>
342
343 <para>By default, the dynamic loader (<filename
344 class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
345 <filename class="directory">/lib</filename> and <filename
346 class="directory">/usr/lib</filename> for dynamic libraries that are
347 needed by programs as they are run. However, if there are libraries in
348 directories other than <filename class="directory">/lib</filename> and
349 <filename class="directory">/usr/lib</filename>, these need to be added
350 to the <filename>/etc/ld.so.conf</filename> file in order for the
351 dynamic loader to find them. Two directories that are commonly known
352 to contain additional libraries are <filename
353 class="directory">/usr/local/lib</filename> and <filename
354 class="directory">/opt/lib</filename>, so add those directories to the
355 dynamic loader's search path.</para>
356
357 <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
358 following:</para>
359
360<screen><userinput>cat &gt; /etc/ld.so.conf &lt;&lt; "EOF"
361<literal># Begin /etc/ld.so.conf
362/usr/local/lib
363/opt/lib
364</literal>
365EOF</userinput></screen>
366
367 <para>If desired, the dynamic loader can also search a directory and
368 include the contents of files found there. Generally the files in
369 this include directory are one line specifying the desired library path.
370 To add this capability run the following commands:</para>
371
372<screen role="nodump"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
373<literal># Add an include directory
374include /etc/ld.so.conf.d/*.conf
375</literal>
376EOF
377mkdir -pv /etc/ld.so.conf.d</userinput></screen>
378
379 </sect3>
380 </sect2>
381
382 <sect2 id="contents-glibc" role="content">
383 <title>Contents of Glibc</title>
384
385 <segmentedlist>
386 <segtitle>Installed programs</segtitle>
387 <segtitle>Installed libraries</segtitle>
388 <segtitle>Installed directories</segtitle>
389
390 <seglistitem>
391 <seg>catchsegv, gencat, getconf, getent, iconv, iconvconfig, ldconfig,
392 ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd,
393 pldd, rpcgen, sln, sotruss, sprof, tzselect, xtrace,
394 zdump, and zic</seg>
395 <seg>ld-&glibc-version;.so, libBrokenLocale.{a,so}, libSegFault.so, libanl.{a,so},
396 libc.{a,so}, libc_nonshared.a, libcidn.so,
397 libcrypt.{a,so}, libdl.{a,so}, libg.a, libieee.a, libm.{a,so},
398 libmcheck.a, libmemusage.so, libnsl.{a,so}, libnss_compat.so,
399 libnss_dns.so, libnss_files.so, libnss_hesiod.so, libnss_nis.so,
400 libnss_nisplus.so, libpthread.{a,so},
401 libpthread_nonshared.a, libresolv.{a,so}, librpcsvc.a, librt.{a,so},
402 libthread_db.so, and libutil.{a,so}</seg>
403 <seg>/usr/include/arpa, /usr/include/bits, /usr/include/gnu,
404 /usr/include/net, /usr/include/netash, /usr/include/netatalk,
405 /usr/include/netax25, /usr/include/neteconet, /usr/include/netinet,
406 /usr/include/netipx, /usr/include/netiucv, /usr/include/netpacket,
407 /usr/include/netrom, /usr/include/netrose, /usr/include/nfs,
408 /usr/include/protocols, /usr/include/rpc, /usr/include/rpcsvc,
409 /usr/include/sys, /usr/lib/audit, /usr/lib/gconv, /usr/lib/locale,
410 /usr/libexec/getconf, /usr/share/i18n, /usr/share/zoneinfo,
411 /var/cache/nscd, and /var/lib/nss_db</seg>
412 </seglistitem>
413 </segmentedlist>
414
415 <variablelist>
416 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
417 <?dbfo list-presentation="list"?>
418 <?dbhtml list-presentation="table"?>
419
420 <varlistentry id="catchsegv">
421 <term><command>catchsegv</command></term>
422 <listitem>
423 <para>Can be used to create a stack trace when a program
424 terminates with a segmentation fault</para>
425 <indexterm zone="ch-system-glibc catchsegv">
426 <primary sortas="b-catchsegv">catchsegv</primary>
427 </indexterm>
428 </listitem>
429 </varlistentry>
430
431 <varlistentry id="gencat">
432 <term><command>gencat</command></term>
433 <listitem>
434 <para>Generates message catalogues</para>
435 <indexterm zone="ch-system-glibc gencat">
436 <primary sortas="b-gencat">gencat</primary>
437 </indexterm>
438 </listitem>
439 </varlistentry>
440
441 <varlistentry id="getconf">
442 <term><command>getconf</command></term>
443 <listitem>
444 <para>Displays the system configuration values for file system
445 specific variables</para>
446 <indexterm zone="ch-system-glibc getconf">
447 <primary sortas="b-getconf">getconf</primary>
448 </indexterm>
449 </listitem>
450 </varlistentry>
451
452 <varlistentry id="getent">
453 <term><command>getent</command></term>
454 <listitem>
455 <para>Gets entries from an administrative database</para>
456 <indexterm zone="ch-system-glibc getent">
457 <primary sortas="b-getent">getent</primary>
458 </indexterm>
459 </listitem>
460 </varlistentry>
461
462 <varlistentry id="iconv">
463 <term><command>iconv</command></term>
464 <listitem>
465 <para>Performs character set conversion</para>
466 <indexterm zone="ch-system-glibc iconv">
467 <primary sortas="b-iconv">iconv</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
472 <varlistentry id="iconvconfig">
473 <term><command>iconvconfig</command></term>
474 <listitem>
475 <para>Creates fastloading <command>iconv</command> module configuration
476 files</para>
477 <indexterm zone="ch-system-glibc iconvconfig">
478 <primary sortas="b-iconvconfig">iconvconfig</primary>
479 </indexterm>
480 </listitem>
481 </varlistentry>
482
483 <varlistentry id="ldconfig">
484 <term><command>ldconfig</command></term>
485 <listitem>
486 <para>Configures the dynamic linker runtime bindings</para>
487 <indexterm zone="ch-system-glibc ldconfig">
488 <primary sortas="b-ldconfig">ldconfig</primary>
489 </indexterm>
490 </listitem>
491 </varlistentry>
492
493 <varlistentry id="ldd">
494 <term><command>ldd</command></term>
495 <listitem>
496 <para>Reports which shared libraries are required
497 by each given program or shared library</para>
498 <indexterm zone="ch-system-glibc ldd">
499 <primary sortas="b-ldd">ldd</primary>
500 </indexterm>
501 </listitem>
502 </varlistentry>
503
504 <varlistentry id="lddlibc4">
505 <term><command>lddlibc4</command></term>
506 <listitem>
507 <para>Assists <command>ldd</command> with object files</para>
508 <indexterm zone="ch-system-glibc lddlibc4">
509 <primary sortas="b-lddlibc4">lddlibc4</primary>
510 </indexterm>
511 </listitem>
512 </varlistentry>
513
514 <varlistentry id="locale">
515 <term><command>locale</command></term>
516 <listitem>
517 <para>Prints various information about the current locale</para>
518 <indexterm zone="ch-system-glibc locale">
519 <primary sortas="b-locale">locale</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
523
524 <varlistentry id="localedef">
525 <term><command>localedef</command></term>
526 <listitem>
527 <para>Compiles locale specifications</para>
528 <indexterm zone="ch-system-glibc localedef">
529 <primary sortas="b-localedef">localedef</primary>
530 </indexterm>
531 </listitem>
532 </varlistentry>
533
534 <varlistentry id="makedb">
535 <term><command>makedb</command></term>
536 <listitem>
537 <para>Creates a simple database from textual input</para>
538 <indexterm zone="ch-system-glibc makedb">
539 <primary sortas="b-makedb">makedb</primary>
540 </indexterm>
541 </listitem>
542 </varlistentry>
543
544 <varlistentry id="mtrace">
545 <term><command>mtrace</command></term>
546 <listitem>
547 <para>Reads and interprets a memory trace file and displays a summary
548 in human-readable format</para>
549 <indexterm zone="ch-system-glibc mtrace">
550 <primary sortas="b-mtrace">mtrace</primary>
551 </indexterm>
552 </listitem>
553 </varlistentry>
554
555 <varlistentry id="nscd">
556 <term><command>nscd</command></term>
557 <listitem>
558 <para>A daemon that provides a cache for the most common name
559 service requests</para>
560 <indexterm zone="ch-system-glibc nscd">
561 <primary sortas="b-nscd">nscd</primary>
562 </indexterm>
563 </listitem>
564 </varlistentry>
565<!--
566 <varlistentry id="pcprofiledump">
567 <term><command>pcprofiledump</command></term>
568 <listitem>
569 <para>Dumps information generated by PC profiling</para>
570 <indexterm zone="ch-system-glibc pcprofiledump">
571 <primary sortas="b-pcprofiledump">pcprofiledump</primary>
572 </indexterm>
573 </listitem>
574 </varlistentry>
575-->
576 <varlistentry id="pldd">
577 <term><command>pldd</command></term>
578 <listitem>
579 <para>Lists dynamic shared objects used by running processes</para>
580 <indexterm zone="ch-system-glibc pldd">
581 <primary sortas="b-pldd">pldd</primary>
582 </indexterm>
583 </listitem>
584 </varlistentry>
585<!--
586 <varlistentry id="pt_chown">
587 <term><command>pt_chown</command></term>
588 <listitem>
589 <para>A helper program for <command>grantpt</command> to set the owner,
590 group and access permissions of a slave pseudo terminal</para>
591 <indexterm zone="ch-system-glibc pt_chown">
592 <primary sortas="b-pt_chown">pt_chown</primary>
593 </indexterm>
594 </listitem>
595 </varlistentry>
596-->
597 <varlistentry id="rpcgen">
598 <term><command>rpcgen</command></term>
599 <listitem>
600 <para>Generates C code to implement the Remote Procedure Call (RPC)
601 protocol</para>
602 <indexterm zone="ch-system-glibc rpcgen">
603 <primary sortas="b-rpcgen">rpcgen</primary>
604 </indexterm>
605 </listitem>
606 </varlistentry>
607
608 <varlistentry id="sln">
609 <term><command>sln</command></term>
610 <listitem>
611 <para>A statically linked <command>ln</command> program</para>
612 <indexterm zone="ch-system-glibc sln">
613 <primary sortas="b-sln">sln</primary>
614 </indexterm>
615 </listitem>
616 </varlistentry>
617
618 <varlistentry id="sotruss">
619 <term><command>sotruss</command></term>
620 <listitem>
621 <para>Traces shared library procedure calls of a specified command</para>
622 <indexterm zone="ch-system-glibc sotruss">
623 <primary sortas="b-sotruss">sotruss</primary>
624 </indexterm>
625 </listitem>
626 </varlistentry>
627
628 <varlistentry id="sprof">
629 <term><command>sprof</command></term>
630 <listitem>
631 <para>Reads and displays shared object profiling data</para>
632 <indexterm zone="ch-system-glibc sprof">
633 <primary sortas="b-sprof">sprof</primary>
634 </indexterm>
635 </listitem>
636 </varlistentry>
637
638 <varlistentry id="tzselect">
639 <term><command>tzselect</command></term>
640 <listitem>
641 <para>Asks the user about the location of the system and reports
642 the corresponding time zone description</para>
643 <indexterm zone="ch-system-glibc tzselect">
644 <primary sortas="b-tzselect">tzselect</primary>
645 </indexterm>
646 </listitem>
647 </varlistentry>
648
649 <varlistentry id="xtrace">
650 <term><command>xtrace</command></term>
651 <listitem>
652 <para>Traces the execution of a program by printing the currently
653 executed function</para>
654 <indexterm zone="ch-system-glibc xtrace">
655 <primary sortas="b-xtrace">xtrace</primary>
656 </indexterm>
657 </listitem>
658 </varlistentry>
659
660 <varlistentry id="zdump">
661 <term><command>zdump</command></term>
662 <listitem>
663 <para>The time zone dumper</para>
664 <indexterm zone="ch-system-glibc zdump">
665 <primary sortas="b-zdump">zdump</primary>
666 </indexterm>
667 </listitem>
668 </varlistentry>
669
670 <varlistentry id="zic">
671 <term><command>zic</command></term>
672 <listitem>
673 <para>The time zone compiler</para>
674 <indexterm zone="ch-system-glibc zic">
675 <primary sortas="b-zic">zic</primary>
676 </indexterm>
677 </listitem>
678 </varlistentry>
679
680 <varlistentry id="ld.so">
681 <term><filename class="libraryfile">ld-&glibc-version;.so</filename></term>
682 <listitem>
683 <para>The helper program for shared library executables</para>
684 <indexterm zone="ch-system-glibc ld.so">
685 <primary sortas="c-ld.so">ld-&glibc-version;.so</primary>
686 </indexterm>
687 </listitem>
688 </varlistentry>
689
690 <varlistentry id="libBrokenLocale">
691 <term><filename class="libraryfile">libBrokenLocale</filename></term>
692 <listitem>
693 <para>Used internally by Glibc as a gross hack to get broken programs
694 (e.g., some Motif applications) running. See comments in
695 <filename>glibc-&glibc-version;/locale/broken_cur_max.c</filename>
696 for more information</para>
697 <indexterm zone="ch-system-glibc libBrokenLocale">
698 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary>
699 </indexterm>
700 </listitem>
701 </varlistentry>
702
703 <varlistentry id="libSegFault">
704 <term><filename class="libraryfile">libSegFault</filename></term>
705 <listitem>
706 <para>The segmentation fault signal handler, used by
707 <command>catchsegv</command></para>
708 <indexterm zone="ch-system-glibc libSegFault">
709 <primary sortas="c-libSegFault">libSegFault</primary>
710 </indexterm>
711 </listitem>
712 </varlistentry>
713
714 <varlistentry id="libanl">
715 <term><filename class="libraryfile">libanl</filename></term>
716 <listitem>
717 <para>An asynchronous name lookup library</para>
718 <indexterm zone="ch-system-glibc libanl">
719 <primary sortas="c-libanl">libanl</primary>
720 </indexterm>
721 </listitem>
722 </varlistentry>
723
724 <varlistentry id="libc">
725 <term><filename class="libraryfile">libc</filename></term>
726 <listitem>
727 <para>The main C library</para>
728 <indexterm zone="ch-system-glibc libc">
729 <primary sortas="c-libc">libc</primary>
730 </indexterm>
731 </listitem>
732 </varlistentry>
733
734 <varlistentry id="libcidn">
735 <term><filename class="libraryfile">libcidn</filename></term>
736 <listitem>
737 <para>Used internally by Glibc for handling internationalized domain
738 names in the <function>getaddrinfo()</function> function</para>
739 <indexterm zone="ch-system-glibc libcidn">
740 <primary sortas="c-libcidn">libcidn</primary>
741 </indexterm>
742 </listitem>
743 </varlistentry>
744
745 <varlistentry id="libcrypt">
746 <term><filename class="libraryfile">libcrypt</filename></term>
747 <listitem>
748 <para>The cryptography library</para>
749 <indexterm zone="ch-system-glibc libcrypt">
750 <primary sortas="c-libcrypt">libcrypt</primary>
751 </indexterm>
752 </listitem>
753 </varlistentry>
754
755 <varlistentry id="libdl">
756 <term><filename class="libraryfile">libdl</filename></term>
757 <listitem>
758 <para>The dynamic linking interface library</para>
759 <indexterm zone="ch-system-glibc libdl">
760 <primary sortas="c-libdl">libdl</primary>
761 </indexterm>
762 </listitem>
763 </varlistentry>
764
765 <varlistentry id="libg">
766 <term><filename class="libraryfile">libg</filename></term>
767 <listitem>
768 <para>Dummy library containing no functions. Previously was a runtime
769 library for <command>g++</command></para>
770 <indexterm zone="ch-system-glibc libg">
771 <primary sortas="c-libg">libg</primary>
772 </indexterm>
773 </listitem>
774 </varlistentry>
775
776 <varlistentry id="libieee">
777 <term><filename class="libraryfile">libieee</filename></term>
778 <listitem>
779 <para>Linking in this module forces error handling rules for math
780 functions as defined by the Institute of Electrical and Electronic
781 Engineers (IEEE). The default is POSIX.1 error handling</para>
782 <indexterm zone="ch-system-glibc libieee">
783 <primary sortas="c-libieee">libieee</primary>
784 </indexterm>
785 </listitem>
786 </varlistentry>
787
788 <varlistentry id="libm">
789 <term><filename class="libraryfile">libm</filename></term>
790 <listitem>
791 <para>The mathematical library</para>
792 <indexterm zone="ch-system-glibc libm">
793 <primary sortas="c-libm">libm</primary>
794 </indexterm>
795 </listitem>
796 </varlistentry>
797
798 <varlistentry id="libmcheck">
799 <term><filename class="libraryfile">libmcheck</filename></term>
800 <listitem>
801 <para>Turns on memory allocation checking when linked to</para>
802 <indexterm zone="ch-system-glibc libmcheck">
803 <primary sortas="c-libmcheck">libmcheck</primary>
804 </indexterm>
805 </listitem>
806 </varlistentry>
807
808 <varlistentry id="libmemusage">
809 <term><filename class="libraryfile">libmemusage</filename></term>
810 <listitem>
811 <para>Used by <command>memusage</command> to help collect
812 information about the memory usage of a program</para>
813 <indexterm zone="ch-system-glibc libmemusage">
814 <primary sortas="c-libmemusage">libmemusage</primary>
815 </indexterm>
816 </listitem>
817 </varlistentry>
818
819 <varlistentry id="libnsl">
820 <term><filename class="libraryfile">libnsl</filename></term>
821 <listitem>
822 <para>The network services library</para>
823 <indexterm zone="ch-system-glibc libnsl">
824 <primary sortas="c-libnsl">libnsl</primary>
825 </indexterm>
826 </listitem>
827 </varlistentry>
828
829 <varlistentry id="libnss">
830 <term><filename class="libraryfile">libnss</filename></term>
831 <listitem>
832 <para>The Name Service Switch libraries, containing functions for
833 resolving host names, user names, group names, aliases, services,
834 protocols, etc.</para>
835 <indexterm zone="ch-system-glibc libnss">
836 <primary sortas="c-libnss">libnss</primary>
837 </indexterm>
838 </listitem>
839 </varlistentry>
840<!--
841 <varlistentry id="libpcprofile">
842 <term><filename class="libraryfile">libpcprofile</filename></term>
843 <listitem>
844 <para>Contains profiling functions used to track the amount of CPU
845 time spent in specific source code lines</para>
846 <indexterm zone="ch-system-glibc libpcprofile">
847 <primary sortas="c-libpcprofile">libpcprofile</primary>
848 </indexterm>
849 </listitem>
850 </varlistentry>
851-->
852 <varlistentry id="libpthread">
853 <term><filename class="libraryfile">libpthread</filename></term>
854 <listitem>
855 <para>The POSIX threads library</para>
856 <indexterm zone="ch-system-glibc libpthread">
857 <primary sortas="c-libpthread">libpthread</primary>
858 </indexterm>
859 </listitem>
860 </varlistentry>
861
862 <varlistentry id="libresolv">
863 <term><filename class="libraryfile">libresolv</filename></term>
864 <listitem>
865 <para>Contains functions for creating, sending, and interpreting
866 packets to the Internet domain name servers</para>
867 <indexterm zone="ch-system-glibc libresolv">
868 <primary sortas="c-libresolv">libresolv</primary>
869 </indexterm>
870 </listitem>
871 </varlistentry>
872
873 <varlistentry id="librpcsvc">
874 <term><filename class="libraryfile">librpcsvc</filename></term>
875 <listitem>
876 <para>Contains functions providing miscellaneous RPC services</para>
877 <indexterm zone="ch-system-glibc librpcsvc">
878 <primary sortas="c-librpcsvc">librpcsvc</primary>
879 </indexterm>
880 </listitem>
881 </varlistentry>
882
883 <varlistentry id="librt">
884 <term><filename class="libraryfile">librt</filename></term>
885 <listitem>
886 <para>Contains functions providing most of the interfaces specified
887 by the POSIX.1b Realtime Extension</para>
888 <indexterm zone="ch-system-glibc librt">
889 <primary sortas="c-librt">librt</primary>
890 </indexterm>
891 </listitem>
892 </varlistentry>
893
894 <varlistentry id="libthread_db">
895 <term><filename class="libraryfile">libthread_db</filename></term>
896 <listitem>
897 <para>Contains functions useful for building debuggers for
898 multi-threaded programs</para>
899 <indexterm zone="ch-system-glibc libthread_db">
900 <primary sortas="c-libthread_db">libthread_db</primary>
901 </indexterm>
902 </listitem>
903 </varlistentry>
904
905 <varlistentry id="libutil">
906 <term><filename class="libraryfile">libutil</filename></term>
907 <listitem>
908 <para>Contains code for <quote>standard</quote> functions used in
909 many different Unix utilities</para>
910 <indexterm zone="ch-system-glibc libutil">
911 <primary sortas="c-libutil">libutil</primary>
912 </indexterm>
913 </listitem>
914 </varlistentry>
915
916 </variablelist>
917
918 </sect2>
919
920</sect1>
Note: See TracBrowser for help on using the repository browser.