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