source: chapter06/glibc.xml@ 0f3055a

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 7.8 7.9 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 0f3055a was 1c27a53, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update to tzdata-2015f.
Add a workaround to ncurses in Chapter 5 for hosts that have mawk installed.
Document some minor test failures.

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

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