1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <sect1 id="ch-system-glibc" xreflabel="Glibc" role="wrap">
|
---|
7 | <title>Glibc-&glibc-version;</title>
|
---|
8 | <?dbhtml filename="glibc.html"?>
|
---|
9 |
|
---|
10 | <indexterm zone="ch-system-glibc"><primary sortas="a-Glibc">Glibc</primary></indexterm>
|
---|
11 |
|
---|
12 | <sect2 role="package"><title/>
|
---|
13 | <para>The Glibc package contains the main C library. This library provides all
|
---|
14 | the basic routines for allocating memory, searching directories, opening and
|
---|
15 | closing files, reading and writing them, string handling, pattern matching,
|
---|
16 | arithmetic, and so on.</para>
|
---|
17 |
|
---|
18 | <segmentedlist>
|
---|
19 | <segtitle>&buildtime;</segtitle>
|
---|
20 | <segtitle>&diskspace;</segtitle>
|
---|
21 | <seglistitem><seg>12.3 SBU</seg><seg>784 MB</seg></seglistitem>
|
---|
22 | </segmentedlist>
|
---|
23 |
|
---|
24 | <segmentedlist>
|
---|
25 | <segtitle>Glibc installation depends on</segtitle>
|
---|
26 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
27 | Gawk, GCC, Gettext, Grep, Make, Perl, Sed, Texinfo</seg></seglistitem>
|
---|
28 | </segmentedlist>
|
---|
29 | </sect2>
|
---|
30 |
|
---|
31 | <sect2 role="installation">
|
---|
32 | <title>Installation of Glibc</title>
|
---|
33 |
|
---|
34 | <para>The Glibc build system is very well self-contained and will install
|
---|
35 | perfectly, even though our compiler specs file and linker are still pointing
|
---|
36 | at <filename class="directory">/tools</filename>. We cannot adjust the specs and linker before
|
---|
37 | the Glibc install, because the Glibc autoconf tests would then give bogus
|
---|
38 | results and thus defeat our goal of achieving a clean build.</para>
|
---|
39 |
|
---|
40 | <para>Before starting to build Glibc, remember to unset any environment
|
---|
41 | variables that override the default optimization flags.</para>
|
---|
42 |
|
---|
43 | <para>The Glibc documentation recommends building Glibc outside of the source
|
---|
44 | directory in a dedicated build directory:</para>
|
---|
45 |
|
---|
46 | <screen><userinput>mkdir ../glibc-build
|
---|
47 | cd ../glibc-build</userinput></screen>
|
---|
48 |
|
---|
49 | <para>Now prepare Glibc for compilation:</para>
|
---|
50 |
|
---|
51 | <screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
|
---|
52 | --disable-profile --enable-add-ons=nptl --with-tls \
|
---|
53 | --with-__thread --enable-kernel=2.6.0 --without-cvs \
|
---|
54 | --libexecdir=/usr/lib/glibc \
|
---|
55 | --with-headers=/tools/glibc-kernheaders</userinput></screen>
|
---|
56 |
|
---|
57 | <para>The meaning of the new configure options:</para>
|
---|
58 |
|
---|
59 | <variablelist>
|
---|
60 | <varlistentry>
|
---|
61 | <term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
|
---|
62 | <listitem><para>This changes the location of the <command>pt_chown</command>
|
---|
63 | program from its default of <filename class="directory">/usr/libexec</filename> to
|
---|
64 | <filename class="directory">/usr/lib/glibc</filename>.</para></listitem>
|
---|
65 | </varlistentry>
|
---|
66 | </variablelist>
|
---|
67 |
|
---|
68 | <para>Compile the package:</para>
|
---|
69 |
|
---|
70 | <screen><userinput>make</userinput></screen>
|
---|
71 |
|
---|
72 | <important><para>The test suite for Glibc in this section is considered
|
---|
73 | <emphasis>critical</emphasis>. Our advice is to not skip it under any
|
---|
74 | circumstance.</para></important>
|
---|
75 |
|
---|
76 | <para>Test the results:</para>
|
---|
77 |
|
---|
78 | <screen><userinput>make check</userinput></screen>
|
---|
79 |
|
---|
80 | <para>The Glibc test suite is highly dependent on certain functions of your host
|
---|
81 | system, in particular the kernel. In general, the Glibc test suite is always
|
---|
82 | expected to pass. However, in certain circumstances some failures are
|
---|
83 | unavoidable. Here is a list of the most common issues we are aware of:</para>
|
---|
84 |
|
---|
85 | <itemizedlist>
|
---|
86 | <listitem><para>The <emphasis>math</emphasis> tests sometimes fail when running
|
---|
87 | on systems where the CPU is not a relatively new genuine Intel or authentic AMD.
|
---|
88 | Certain optimization settings are also known to be a factor here.</para></listitem>
|
---|
89 |
|
---|
90 | <listitem><para>The <emphasis>gettext</emphasis> test sometimes fails due to
|
---|
91 | host system issues. The exact reasons are not yet clear.</para></listitem>
|
---|
92 |
|
---|
93 | <listitem><para>The <emphasis>atime</emphasis> test sometimes fails when the
|
---|
94 | LFS partition is mounted with the <parameter>noatime</parameter> option, or due
|
---|
95 | to other file system quirks.</para></listitem>
|
---|
96 |
|
---|
97 | <listitem><para>The <emphasis>shm</emphasis> test might fail when the host
|
---|
98 | system is running the devfs file system but doesn't have the <systemitem class="filesystem">tmpfs</systemitem> file system
|
---|
99 | mounted at <filename class="directory">/dev/shm</filename> due to lack of support for tmpfs in
|
---|
100 | the kernel.</para></listitem>
|
---|
101 |
|
---|
102 | <listitem><para>When running on older and slower hardware, some tests might
|
---|
103 | fail due to test timeouts being exceeded.</para></listitem>
|
---|
104 | </itemizedlist>
|
---|
105 |
|
---|
106 | <para>Though it is a harmless message, the install stage of Glibc will
|
---|
107 | complain about the absence of <filename>/etc/ld.so.conf</filename>. Fix this
|
---|
108 | annoying little warning with:</para>
|
---|
109 |
|
---|
110 | <screen><userinput>touch /etc/ld.so.conf</userinput></screen>
|
---|
111 |
|
---|
112 | <para>And install the package:</para>
|
---|
113 |
|
---|
114 | <screen><userinput>make install</userinput></screen>
|
---|
115 |
|
---|
116 | <para>The locales that can make your system respond in a different language
|
---|
117 | weren't installed by the above command. Do it with this:</para>
|
---|
118 |
|
---|
119 | <screen><userinput>make localedata/install-locales</userinput></screen>
|
---|
120 |
|
---|
121 | <para>An alternative to running the previous command is to install only those
|
---|
122 | locales which you need or want. This can be achieved by using the
|
---|
123 | <command>localedef</command> command. Information on this can be found in
|
---|
124 | the <filename>INSTALL</filename> file in the Glibc source. However, there are
|
---|
125 | a number of locales that are essential for the tests of future packages to
|
---|
126 | pass, in particular, the <emphasis>libstdc++</emphasis> tests from GCC. The
|
---|
127 | following instructions, instead of the install-locales target above, will
|
---|
128 | install the minimum set of locales necessary for the tests to run
|
---|
129 | successfully:</para>
|
---|
130 |
|
---|
131 | <screen><userinput>mkdir -p /usr/lib/locale
|
---|
132 | localedef -i de_DE -f ISO-8859-1 de_DE
|
---|
133 | localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
|
---|
134 | localedef -i en_HK -f ISO-8859-1 en_HK
|
---|
135 | localedef -i en_PH -f ISO-8859-1 en_PH
|
---|
136 | localedef -i en_US -f ISO-8859-1 en_US
|
---|
137 | localedef -i es_MX -f ISO-8859-1 es_MX
|
---|
138 | localedef -i fa_IR -f UTF-8 fa_IR
|
---|
139 | localedef -i fr_FR -f ISO-8859-1 fr_FR
|
---|
140 | localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
|
---|
141 | localedef -i it_IT -f ISO-8859-1 it_IT
|
---|
142 | localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
|
---|
143 |
|
---|
144 | <para>In fact, some locales installed by the
|
---|
145 | <command>make localedata/install-locales</command>
|
---|
146 | command above are not properly
|
---|
147 | supported by some applications that are in LFS and BLFS books. Because
|
---|
148 | of various problems that arise
|
---|
149 | due to application programmers making
|
---|
150 | assumptions that break in such locales, LFS <emphasis>should not</emphasis>
|
---|
151 | be used in locales that utilize
|
---|
152 | multibyte character sets (including UTF-8) or
|
---|
153 | right-to-left writing order.
|
---|
154 | Numerous unofficial and unstable patches are required to fix these problems,
|
---|
155 | and it has been decided not to support such complex locales.
|
---|
156 | This applies to the ja_JP and fa_IR locales as well:
|
---|
157 | they have been installed only
|
---|
158 | for GCC and Gettext tests to pass, and e.g.
|
---|
159 | the <command>watch</command> program (part of Procps)
|
---|
160 | compiled according to this book doesn't work properly in them.
|
---|
161 | Various attempts to circumvent these
|
---|
162 | restrictions are documented in internationalization-related hints.</para>
|
---|
163 |
|
---|
164 | <para>Finally, build the linuxthreads man pages, which are a great reference
|
---|
165 | on the threading API (applicable to NPTL as well):</para>
|
---|
166 |
|
---|
167 | <screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man</userinput></screen>
|
---|
168 |
|
---|
169 | <para>And install these pages:</para>
|
---|
170 |
|
---|
171 | <screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man install</userinput></screen>
|
---|
172 |
|
---|
173 | </sect2>
|
---|
174 |
|
---|
175 |
|
---|
176 | <sect2 id="conf-glibc" role="configuration"><title>Configuring Glibc</title>
|
---|
177 | <indexterm zone="conf-glibc"><primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary></indexterm>
|
---|
178 | <indexterm zone="conf-glibc"><primary sortas="e-/etc/localtime">/etc/localtime</primary></indexterm>
|
---|
179 |
|
---|
180 | <para>We need to create the <filename>/etc/nsswitch.conf</filename> file,
|
---|
181 | because, although Glibc provides defaults when this file is missing or corrupt,
|
---|
182 | the Glibc defaults don't work well with networking. Also, our time zone needs
|
---|
183 | to be set up.</para>
|
---|
184 |
|
---|
185 | <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
|
---|
186 | following:</para>
|
---|
187 |
|
---|
188 | <screen><userinput>cat > /etc/nsswitch.conf << "EOF"
|
---|
189 | # Begin /etc/nsswitch.conf
|
---|
190 |
|
---|
191 | passwd: files
|
---|
192 | group: files
|
---|
193 | shadow: files
|
---|
194 |
|
---|
195 | hosts: files dns
|
---|
196 | networks: files
|
---|
197 |
|
---|
198 | protocols: files
|
---|
199 | services: files
|
---|
200 | ethers: files
|
---|
201 | rpc: files
|
---|
202 |
|
---|
203 | # End /etc/nsswitch.conf
|
---|
204 | EOF</userinput></screen>
|
---|
205 |
|
---|
206 | <para>To find out what time zone you're in, run the following script:</para>
|
---|
207 |
|
---|
208 | <screen><userinput>tzselect</userinput></screen>
|
---|
209 |
|
---|
210 | <para>When you've answered a few questions about your location, the script will
|
---|
211 | output the name of your time zone, something like <emphasis>EST5EDT</emphasis>
|
---|
212 | or <emphasis>Canada/Eastern</emphasis>. Then create the
|
---|
213 | <filename>/etc/localtime</filename> file by running:</para>
|
---|
214 |
|
---|
215 | <screen><userinput>cp --remove-destination /usr/share/zoneinfo/Canada/Eastern /etc/localtime</userinput></screen>
|
---|
216 |
|
---|
217 | <para>The meaning of the option:</para>
|
---|
218 |
|
---|
219 | <variablelist>
|
---|
220 | <varlistentry>
|
---|
221 | <term><parameter>--remove-destination</parameter></term>
|
---|
222 | <listitem><para>This is needed to force removal of the already existing symbolic
|
---|
223 | link. The reason why we copy instead of symlink is to cover the situation where
|
---|
224 | <filename class="directory">/usr</filename> is on a separate partition. This could matter, for
|
---|
225 | example, when booted into single user mode.</para></listitem>
|
---|
226 | </varlistentry>
|
---|
227 | </variablelist>
|
---|
228 |
|
---|
229 | <para>Of course, instead of <emphasis>Canada/Eastern</emphasis>, fill in
|
---|
230 | the name of the time zone that the <command>tzselect</command> script
|
---|
231 | gave you.</para>
|
---|
232 |
|
---|
233 | </sect2>
|
---|
234 |
|
---|
235 |
|
---|
236 | <sect2 id="conf-ld" role="configuration">
|
---|
237 | <title>Configuring Dynamic Loader</title>
|
---|
238 | <indexterm zone="conf-ld"><primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary></indexterm>
|
---|
239 |
|
---|
240 | <para>By default, the dynamic loader
|
---|
241 | (<filename class="libraryfile">/lib/ld-linux.so.2</filename>) searches through <filename
|
---|
242 | class="directory">/lib</filename> and <filename class="directory">/usr/lib</filename>
|
---|
243 | for dynamic libraries that are needed
|
---|
244 | by programs when you run them. However, if there are libraries in
|
---|
245 | directories other than <filename class="directory">/lib</filename> and
|
---|
246 | <filename class="directory">/usr/lib</filename>, you need to add them to
|
---|
247 | the <filename>/etc/ld.so.conf</filename> file for the dynamic
|
---|
248 | loader to find them. Two directories that are commonly known to contain
|
---|
249 | additional libraries are <filename class="directory">/usr/local/lib</filename>
|
---|
250 | and <filename class="directory">/opt/lib</filename>, so we add those directories to the
|
---|
251 | dynamic loader's search path.</para>
|
---|
252 |
|
---|
253 | <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
|
---|
254 | following:</para>
|
---|
255 |
|
---|
256 | <screen><userinput>cat > /etc/ld.so.conf << "EOF"
|
---|
257 | # Begin /etc/ld.so.conf
|
---|
258 |
|
---|
259 | /usr/local/lib
|
---|
260 | /opt/lib
|
---|
261 |
|
---|
262 | # End /etc/ld.so.conf
|
---|
263 | EOF</userinput></screen>
|
---|
264 |
|
---|
265 | </sect2>
|
---|
266 |
|
---|
267 |
|
---|
268 | <sect2 id="contents-glibc" role="content"><title>Contents of Glibc</title>
|
---|
269 |
|
---|
270 | <segmentedlist>
|
---|
271 | <segtitle>Installed programs</segtitle>
|
---|
272 | <segtitle>Installed libraries</segtitle>
|
---|
273 | <seglistitem><seg>catchsegv, gencat, getconf,
|
---|
274 | getent, glibcbug, iconv, iconvconfig, ldconfig, ldd, lddlibc4, locale,
|
---|
275 | localedef, mtrace, nscd, nscd_nischeck, pcprofiledump, pt_chown, rpcgen,
|
---|
276 | rpcinfo, sln, sprof, tzselect, xtrace, zdump and zic</seg>
|
---|
277 | <seg>ld.so, libBrokenLocale.[a,so],
|
---|
278 | libSegFault.so, libanl.[a,so], libbsd-compat.a, libc.[a,so], libc_nonshared.a,
|
---|
279 | libcrypt.[a,so], libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
|
---|
280 | libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so, libnss_files.so,
|
---|
281 | libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so, libpcprofile.so,
|
---|
282 | libpthread.[a,so], libresolv.[a,so], librpcsvc.a, librt.[a,so], libthread_db.so
|
---|
283 | and libutil.[a,so]</seg></seglistitem>
|
---|
284 | </segmentedlist>
|
---|
285 |
|
---|
286 | <variablelist><title>Short descriptions</title>
|
---|
287 |
|
---|
288 | <varlistentry id="catchsegv">
|
---|
289 | <term><command>catchsegv</command></term>
|
---|
290 | <listitem>
|
---|
291 | <indexterm zone="ch-system-glibc catchsegv"><primary sortas="b-catchsegv">catchsegv</primary></indexterm>
|
---|
292 | <para>can be used to create a stack trace
|
---|
293 | when a program terminates with a segmentation fault.</para>
|
---|
294 | </listitem>
|
---|
295 | </varlistentry>
|
---|
296 |
|
---|
297 | <varlistentry id="gencat">
|
---|
298 | <term><command>gencat</command></term>
|
---|
299 | <listitem>
|
---|
300 | <indexterm zone="ch-system-glibc gencat"><primary sortas="b-gencat">gencat</primary></indexterm>
|
---|
301 | <para>generates message catalogues.</para>
|
---|
302 | </listitem>
|
---|
303 | </varlistentry>
|
---|
304 |
|
---|
305 | <varlistentry id="getconf">
|
---|
306 | <term><command>getconf</command></term>
|
---|
307 | <listitem>
|
---|
308 | <indexterm zone="ch-system-glibc getconf"><primary sortas="b-getconf">getconf</primary></indexterm>
|
---|
309 | <para>displays the system configuration values for file system specific variables.</para>
|
---|
310 | </listitem>
|
---|
311 | </varlistentry>
|
---|
312 |
|
---|
313 | <varlistentry id="getent">
|
---|
314 | <term><command>getent</command></term>
|
---|
315 | <listitem>
|
---|
316 | <indexterm zone="ch-system-glibc getent"><primary sortas="b-getent">getent</primary></indexterm>
|
---|
317 | <para>gets entries from an administrative database.</para>
|
---|
318 | </listitem>
|
---|
319 | </varlistentry>
|
---|
320 |
|
---|
321 | <varlistentry id="glibcbug">
|
---|
322 | <term><command>glibcbug</command></term>
|
---|
323 | <listitem>
|
---|
324 | <indexterm zone="ch-system-glibc glibcbug"><primary sortas="b-glibcbug">glibcbug</primary></indexterm>
|
---|
325 | <para>creates a bug report and mails it to the bug email address.</para>
|
---|
326 | </listitem>
|
---|
327 | </varlistentry>
|
---|
328 |
|
---|
329 | <varlistentry id="iconv">
|
---|
330 | <term><command>iconv</command></term>
|
---|
331 | <listitem>
|
---|
332 | <indexterm zone="ch-system-glibc iconv"><primary sortas="b-iconv">iconv</primary></indexterm>
|
---|
333 | <para>performs character set conversion.</para>
|
---|
334 | </listitem>
|
---|
335 | </varlistentry>
|
---|
336 |
|
---|
337 | <varlistentry id="iconvconfig">
|
---|
338 | <term><command>iconvconfig</command></term>
|
---|
339 | <listitem>
|
---|
340 | <indexterm zone="ch-system-glibc iconvconfig"><primary sortas="b-iconvconfig">iconvconfig</primary></indexterm>
|
---|
341 | <para>creates fastloading <command>iconv</command> module configuration file.</para>
|
---|
342 | </listitem>
|
---|
343 | </varlistentry>
|
---|
344 |
|
---|
345 | <varlistentry id="ldconfig">
|
---|
346 | <term><command>ldconfig</command></term>
|
---|
347 | <listitem>
|
---|
348 | <indexterm zone="ch-system-glibc ldconfig"><primary sortas="b-ldconfig">ldconfig</primary></indexterm>
|
---|
349 | <para>configures the dynamic linker runtime bindings.</para>
|
---|
350 | </listitem>
|
---|
351 | </varlistentry>
|
---|
352 |
|
---|
353 | <varlistentry id="ldd">
|
---|
354 | <term><command>ldd</command></term>
|
---|
355 | <listitem>
|
---|
356 | <indexterm zone="ch-system-glibc ldd"><primary sortas="b-ldd">ldd</primary></indexterm>
|
---|
357 | <para>reports which shared libraries are required
|
---|
358 | by each given program or shared library.</para>
|
---|
359 | </listitem>
|
---|
360 | </varlistentry>
|
---|
361 |
|
---|
362 | <varlistentry id="lddlibc4">
|
---|
363 | <term><command>lddlibc4</command></term>
|
---|
364 | <listitem>
|
---|
365 | <indexterm zone="ch-system-glibc lddlibc4"><primary sortas="b-lddlibc4">lddlibc4</primary></indexterm>
|
---|
366 | <para>assists <command>ldd</command> with object files.</para>
|
---|
367 | </listitem>
|
---|
368 | </varlistentry>
|
---|
369 |
|
---|
370 | <varlistentry id="locale">
|
---|
371 | <term><command>locale</command></term>
|
---|
372 | <listitem>
|
---|
373 | <indexterm zone="ch-system-glibc locale"><primary sortas="b-locale">locale</primary></indexterm>
|
---|
374 | <para>is a Perl program that tells the compiler
|
---|
375 | to enable or disable the use of POSIX locales for built-in operations.</para>
|
---|
376 | </listitem>
|
---|
377 | </varlistentry>
|
---|
378 |
|
---|
379 | <varlistentry id="localedef">
|
---|
380 | <term><command>localedef</command></term>
|
---|
381 | <listitem>
|
---|
382 | <indexterm zone="ch-system-glibc localedef"><primary sortas="b-localedef">localedef</primary></indexterm>
|
---|
383 | <para>compiles locale specifications.</para>
|
---|
384 | </listitem>
|
---|
385 | </varlistentry>
|
---|
386 |
|
---|
387 | <varlistentry id="mtrace">
|
---|
388 | <term><command>mtrace</command></term>
|
---|
389 | <listitem>
|
---|
390 | <indexterm zone="ch-system-glibc mtrace"><primary sortas="b-mtrace">mtrace</primary></indexterm>
|
---|
391 | <para>...</para>
|
---|
392 | </listitem>
|
---|
393 | </varlistentry>
|
---|
394 |
|
---|
395 | <varlistentry id="nscd">
|
---|
396 | <term><command>nscd</command></term>
|
---|
397 | <listitem>
|
---|
398 | <indexterm zone="ch-system-glibc nscd"><primary sortas="b-nscd">nscd</primary></indexterm>
|
---|
399 | <para>is a name service cache daemon providing a
|
---|
400 | cache for the most common name service requests.</para>
|
---|
401 | </listitem>
|
---|
402 | </varlistentry>
|
---|
403 |
|
---|
404 | <varlistentry id="nscd_nischeck">
|
---|
405 | <term><command>nscd_nischeck</command></term>
|
---|
406 | <listitem>
|
---|
407 | <indexterm zone="ch-system-glibc nscd_nischeck"><primary sortas="b-nscd_nischeck">nscd_nischeck</primary></indexterm>
|
---|
408 | <para>checks whether or not secure mode is necessary for NIS+ lookup.</para>
|
---|
409 | </listitem>
|
---|
410 | </varlistentry>
|
---|
411 |
|
---|
412 | <varlistentry id="pcprofiledump">
|
---|
413 | <term><command>pcprofiledump</command></term>
|
---|
414 | <listitem>
|
---|
415 | <indexterm zone="ch-system-glibc pcprofiledump"><primary sortas="b-pcprofiledump">pcprofiledump</primary></indexterm>
|
---|
416 | <para>dumps information generated by PC profiling.</para>
|
---|
417 | </listitem>
|
---|
418 | </varlistentry>
|
---|
419 |
|
---|
420 | <varlistentry id="pt_chown">
|
---|
421 | <term><command>pt_chown</command></term>
|
---|
422 | <listitem>
|
---|
423 | <indexterm zone="ch-system-glibc pt_chown"><primary sortas="b-pt_chown">pt_chown</primary></indexterm>
|
---|
424 | <para>is a helper program for grantpt to set
|
---|
425 | the owner, group and access permissions of a slave pseudo terminal.</para>
|
---|
426 | </listitem>
|
---|
427 | </varlistentry>
|
---|
428 |
|
---|
429 | <varlistentry id="rpcgen">
|
---|
430 | <term><command>rpcgen</command></term>
|
---|
431 | <listitem>
|
---|
432 | <indexterm zone="ch-system-glibc rpcgen"><primary sortas="b-rpcgen">rpcgen</primary></indexterm>
|
---|
433 | <para>generates C code to implement the RPC protocol.</para>
|
---|
434 | </listitem>
|
---|
435 | </varlistentry>
|
---|
436 |
|
---|
437 | <varlistentry id="rpcinfo">
|
---|
438 | <term><command>rpcinfo</command></term>
|
---|
439 | <listitem>
|
---|
440 | <indexterm zone="ch-system-glibc rpcinfo"><primary sortas="b-rpcinfo">rpcinfo</primary></indexterm>
|
---|
441 | <para>makes an RPC call to an RPC server.</para>
|
---|
442 | </listitem>
|
---|
443 | </varlistentry>
|
---|
444 |
|
---|
445 | <varlistentry id="sln">
|
---|
446 | <term><command>sln</command></term>
|
---|
447 | <listitem>
|
---|
448 | <indexterm zone="ch-system-glibc sln"><primary sortas="b-sln">sln</primary></indexterm>
|
---|
449 | <para>is used to make symbolic links. The program
|
---|
450 | is statically linked, so it is useful for making symbolic links to dynamic
|
---|
451 | libraries if the dynamic linking system for some reason is nonfunctional.</para>
|
---|
452 | </listitem>
|
---|
453 | </varlistentry>
|
---|
454 |
|
---|
455 | <varlistentry id="sprof">
|
---|
456 | <term><command>sprof</command></term>
|
---|
457 | <listitem>
|
---|
458 | <indexterm zone="ch-system-glibc sprof"><primary sortas="b-sprof">sprof</primary></indexterm>
|
---|
459 | <para>reads and displays shared object profiling data.</para>
|
---|
460 | </listitem>
|
---|
461 | </varlistentry>
|
---|
462 |
|
---|
463 | <varlistentry id="tzselect">
|
---|
464 | <term><command>tzselect</command></term>
|
---|
465 | <listitem>
|
---|
466 | <indexterm zone="ch-system-glibc tzselect"><primary sortas="b-tzselect">tzselect</primary></indexterm>
|
---|
467 | <para>asks the user about the location of the
|
---|
468 | system and reports the corresponding time zone description.</para>
|
---|
469 | </listitem>
|
---|
470 | </varlistentry>
|
---|
471 |
|
---|
472 | <varlistentry id="xtrace">
|
---|
473 | <term><command>xtrace</command></term>
|
---|
474 | <listitem>
|
---|
475 | <indexterm zone="ch-system-glibc xtrace"><primary sortas="b-xtrace">xtrace</primary></indexterm>
|
---|
476 | <para>traces the execution of a program by
|
---|
477 | printing the currently executed function.</para>
|
---|
478 | </listitem>
|
---|
479 | </varlistentry>
|
---|
480 |
|
---|
481 | <varlistentry id="zdump">
|
---|
482 | <term><command>zdump</command></term>
|
---|
483 | <listitem>
|
---|
484 | <indexterm zone="ch-system-glibc zdump"><primary sortas="b-zdump">zdump</primary></indexterm>
|
---|
485 | <para>is the time zone dumper.</para>
|
---|
486 | </listitem>
|
---|
487 | </varlistentry>
|
---|
488 |
|
---|
489 | <varlistentry id="zic">
|
---|
490 | <term><command>zic</command></term>
|
---|
491 | <listitem>
|
---|
492 | <indexterm zone="ch-system-glibc zic"><primary sortas="b-zic">zic</primary></indexterm>
|
---|
493 | <para>is the time zone compiler.</para>
|
---|
494 | </listitem>
|
---|
495 | </varlistentry>
|
---|
496 |
|
---|
497 | <varlistentry id="ld.so">
|
---|
498 | <term><filename class="libraryfile">ld.so</filename></term>
|
---|
499 | <listitem>
|
---|
500 | <indexterm zone="ch-system-glibc ld.so"><primary sortas="c-ld.so">ld.so</primary></indexterm>
|
---|
501 | <para>is the helper program for shared library executables.</para>
|
---|
502 | </listitem>
|
---|
503 | </varlistentry>
|
---|
504 |
|
---|
505 | <varlistentry id="libBrokenLocale">
|
---|
506 | <term><filename class="libraryfile">libBrokenLocale</filename></term>
|
---|
507 | <listitem>
|
---|
508 | <indexterm zone="ch-system-glibc libBrokenLocale"><primary sortas="c-libBrokenLocale">libBrokenLocale</primary></indexterm>
|
---|
509 | <para>is used by programs, such as Mozilla, to solve broken locales.</para>
|
---|
510 | </listitem>
|
---|
511 | </varlistentry>
|
---|
512 |
|
---|
513 | <varlistentry id="libSegFault">
|
---|
514 | <term><filename class="libraryfile">libSegFault</filename></term>
|
---|
515 | <listitem>
|
---|
516 | <indexterm zone="ch-system-glibc libSegFault"><primary sortas="c-libSegFault">libSegFault</primary></indexterm>
|
---|
517 | <para>is a segmentation fault signal handler. It tries to catch segfaults.</para>
|
---|
518 | </listitem>
|
---|
519 | </varlistentry>
|
---|
520 |
|
---|
521 | <varlistentry id="libanl">
|
---|
522 | <term><filename class="libraryfile">libanl</filename></term>
|
---|
523 | <listitem>
|
---|
524 | <indexterm zone="ch-system-glibc libanl"><primary sortas="c-libanl">libanl</primary></indexterm>
|
---|
525 | <para>is an asynchronous name lookup library.</para>
|
---|
526 | </listitem>
|
---|
527 | </varlistentry>
|
---|
528 |
|
---|
529 | <varlistentry id="libbsd-compat">
|
---|
530 | <term><filename class="libraryfile">libbsd-compat</filename></term>
|
---|
531 | <listitem>
|
---|
532 | <indexterm zone="ch-system-glibc libbsd-compat"><primary sortas="c-libbsd-compat">libbsd-compat</primary></indexterm>
|
---|
533 | <para>provides the portability needed
|
---|
534 | in order to run certain BSD programs under Linux.</para>
|
---|
535 | </listitem>
|
---|
536 | </varlistentry>
|
---|
537 |
|
---|
538 | <varlistentry id="libc">
|
---|
539 | <term><filename class="libraryfile">libc</filename></term>
|
---|
540 | <listitem>
|
---|
541 | <indexterm zone="ch-system-glibc libc"><primary sortas="c-libc">libc</primary></indexterm>
|
---|
542 | <para>is the main C library -- a collection of commonly used functions.</para>
|
---|
543 | </listitem>
|
---|
544 | </varlistentry>
|
---|
545 |
|
---|
546 | <varlistentry id="libcrypt">
|
---|
547 | <term><filename class="libraryfile">libcrypt</filename></term>
|
---|
548 | <listitem>
|
---|
549 | <indexterm zone="ch-system-glibc libcrypt"><primary sortas="c-libcrypt">libcrypt</primary></indexterm>
|
---|
550 | <para>is the cryptography library.</para>
|
---|
551 | </listitem>
|
---|
552 | </varlistentry>
|
---|
553 |
|
---|
554 | <varlistentry id="libdl">
|
---|
555 | <term><filename class="libraryfile">libdl</filename></term>
|
---|
556 | <listitem>
|
---|
557 | <indexterm zone="ch-system-glibc libdl"><primary sortas="c-libdl">libdl</primary></indexterm>
|
---|
558 | <para>is the dynamic linking interface library.</para>
|
---|
559 | </listitem>
|
---|
560 | </varlistentry>
|
---|
561 |
|
---|
562 | <varlistentry id="libg">
|
---|
563 | <term><filename class="libraryfile">libg</filename></term>
|
---|
564 | <listitem>
|
---|
565 | <indexterm zone="ch-system-glibc libg"><primary sortas="c-libg">libg</primary></indexterm>
|
---|
566 | <para>is a runtime library for <command>g++</command>.</para>
|
---|
567 | </listitem>
|
---|
568 | </varlistentry>
|
---|
569 |
|
---|
570 | <varlistentry id="libieee">
|
---|
571 | <term><filename class="libraryfile">libieee</filename></term>
|
---|
572 | <listitem>
|
---|
573 | <indexterm zone="ch-system-glibc libieee"><primary sortas="c-libieee">libieee</primary></indexterm>
|
---|
574 | <para>is the IEEE floating point library.</para>
|
---|
575 | </listitem>
|
---|
576 | </varlistentry>
|
---|
577 |
|
---|
578 | <varlistentry id="libm">
|
---|
579 | <term><filename class="libraryfile">libm</filename></term>
|
---|
580 | <listitem>
|
---|
581 | <indexterm zone="ch-system-glibc libm"><primary sortas="c-libm">libm</primary></indexterm>
|
---|
582 | <para>is the mathematical library.</para>
|
---|
583 | </listitem>
|
---|
584 | </varlistentry>
|
---|
585 |
|
---|
586 | <varlistentry id="libmcheck">
|
---|
587 | <term><filename class="libraryfile">libmcheck</filename></term>
|
---|
588 | <listitem>
|
---|
589 | <indexterm zone="ch-system-glibc libmcheck"><primary sortas="c-libmcheck">libmcheck</primary></indexterm>
|
---|
590 | <para>contains code run at boot.</para>
|
---|
591 | </listitem>
|
---|
592 | </varlistentry>
|
---|
593 |
|
---|
594 | <varlistentry id="libmemusage">
|
---|
595 | <term><filename class="libraryfile">libmemusage</filename></term>
|
---|
596 | <listitem>
|
---|
597 | <indexterm zone="ch-system-glibc libmemusage"><primary sortas="c-libmemusage">libmemusage</primary></indexterm>
|
---|
598 | <para>is used by <command>memusage</command> to help collect
|
---|
599 | information about the memory usage of a program.</para>
|
---|
600 | </listitem>
|
---|
601 | </varlistentry>
|
---|
602 |
|
---|
603 | <varlistentry id="libnsl">
|
---|
604 | <term><filename class="libraryfile">libnsl</filename></term>
|
---|
605 | <listitem>
|
---|
606 | <indexterm zone="ch-system-glibc libnsl"><primary sortas="c-libnsl">libnsl</primary></indexterm>
|
---|
607 | <para>is the network services library.</para>
|
---|
608 | </listitem>
|
---|
609 | </varlistentry>
|
---|
610 |
|
---|
611 | <varlistentry id="libnss">
|
---|
612 | <term><filename class="libraryfile">libnss*</filename></term>
|
---|
613 | <listitem>
|
---|
614 | <indexterm zone="ch-system-glibc libnss"><primary sortas="c-libnss*">libnss*</primary></indexterm>
|
---|
615 | <para>are the Name Service Switch libraries,
|
---|
616 | containing functions for resolving host names, user names, group names,
|
---|
617 | aliases, services, protocols, and the like.</para>
|
---|
618 | </listitem>
|
---|
619 | </varlistentry>
|
---|
620 |
|
---|
621 | <varlistentry id="libpcprofile">
|
---|
622 | <term><filename class="libraryfile">libpcprofile</filename></term>
|
---|
623 | <listitem>
|
---|
624 | <indexterm zone="ch-system-glibc libpcprofile"><primary sortas="c-libpcprofile">libpcprofile</primary></indexterm>
|
---|
625 | <para>contains profiling functions used
|
---|
626 | to track the amount of CPU time spent in which source code lines.</para>
|
---|
627 | </listitem>
|
---|
628 | </varlistentry>
|
---|
629 |
|
---|
630 | <varlistentry id="libpthread">
|
---|
631 | <term><filename class="libraryfile">libpthread</filename></term>
|
---|
632 | <listitem>
|
---|
633 | <indexterm zone="ch-system-glibc libpthread"><primary sortas="c-libpthread">libpthread</primary></indexterm>
|
---|
634 | <para>is the POSIX threads library.</para>
|
---|
635 | </listitem>
|
---|
636 | </varlistentry>
|
---|
637 |
|
---|
638 | <varlistentry id="libresolv">
|
---|
639 | <term><filename class="libraryfile">libresolv</filename></term>
|
---|
640 | <listitem>
|
---|
641 | <indexterm zone="ch-system-glibc libresolv"><primary sortas="c-libresolv">libresolv</primary></indexterm>
|
---|
642 | <para>contains functions for creating,
|
---|
643 | sending, and interpreting packets to the Internet domain name servers.</para>
|
---|
644 | </listitem>
|
---|
645 | </varlistentry>
|
---|
646 |
|
---|
647 | <varlistentry id="librpcsvc">
|
---|
648 | <term><filename class="libraryfile">librpcsvc</filename></term>
|
---|
649 | <listitem>
|
---|
650 | <indexterm zone="ch-system-glibc librpcsvc"><primary sortas="c-librpcsvc">librpcsvc</primary></indexterm>
|
---|
651 | <para>contains functions providing miscellaneous RPC services.</para>
|
---|
652 | </listitem>
|
---|
653 | </varlistentry>
|
---|
654 |
|
---|
655 | <varlistentry id="librt">
|
---|
656 | <term><filename class="libraryfile">librt</filename></term>
|
---|
657 | <listitem>
|
---|
658 | <indexterm zone="ch-system-glibc librt"><primary sortas="c-librt">librt</primary></indexterm>
|
---|
659 | <para>contains functions providing most of the
|
---|
660 | interfaces specified by the POSIX.1b Realtime Extension.</para>
|
---|
661 | </listitem>
|
---|
662 | </varlistentry>
|
---|
663 |
|
---|
664 | <varlistentry id="libthread_db">
|
---|
665 | <term><filename class="libraryfile">libthread_db</filename></term>
|
---|
666 | <listitem>
|
---|
667 | <indexterm zone="ch-system-glibc libthread_db"><primary sortas="c-libthread_db">libthread_db</primary></indexterm>
|
---|
668 | <para>contains functions useful for
|
---|
669 | building debuggers for multi-threaded programs.</para>
|
---|
670 | </listitem>
|
---|
671 | </varlistentry>
|
---|
672 |
|
---|
673 | <varlistentry id="libutil">
|
---|
674 | <term><filename class="libraryfile">libutil</filename></term>
|
---|
675 | <listitem>
|
---|
676 | <indexterm zone="ch-system-glibc libutil"><primary sortas="c-libutil">libutil</primary></indexterm>
|
---|
677 | <para>contains code for <quote>standard</quote> functions used in many different Unix utilities.</para>
|
---|
678 | </listitem>
|
---|
679 | </varlistentry>
|
---|
680 | </variablelist>
|
---|
681 |
|
---|
682 | </sect2>
|
---|
683 |
|
---|
684 | </sect1>
|
---|