[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
[3e36a78] | 4 | <!ENTITY % patches-entities SYSTEM "../patches.ent">
|
---|
[673b0d8] | 5 | %general-entities;
|
---|
[3e36a78] | 6 | %patches-entities;
|
---|
[673b0d8] | 7 | ]>
|
---|
[81fd230] | 8 | <sect1 id="ch-system-glibc" role="wrap">
|
---|
[673b0d8] | 9 | <title>Glibc-&glibc-version;</title>
|
---|
| 10 | <?dbhtml filename="glibc.html"?>
|
---|
| 11 |
|
---|
| 12 | <indexterm zone="ch-system-glibc"><primary sortas="a-Glibc">Glibc</primary></indexterm>
|
---|
[6370fa6] | 13 |
|
---|
[a001133] | 14 | <sect2 role="package"><title/>
|
---|
[81fd230] | 15 | <para>The Glibc package contains the main C library. This library provides
|
---|
| 16 | the basic routines for allocating memory, searching directories, opening and
|
---|
| 17 | closing files, reading and writing files, string handling, pattern matching,
|
---|
| 18 | arithmetic, and so on.</para>
|
---|
[5888299] | 19 |
|
---|
[a001133] | 20 | <segmentedlist>
|
---|
| 21 | <segtitle>&buildtime;</segtitle>
|
---|
| 22 | <segtitle>&diskspace;</segtitle>
|
---|
[2e02c35] | 23 | <seglistitem><seg>16.7 SBU</seg><seg>500</seg></seglistitem>
|
---|
[a001133] | 24 | </segmentedlist>
|
---|
[673b0d8] | 25 |
|
---|
[81fd230] | 26 | <segmentedlist>
|
---|
[45992ae] | 27 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 28 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 29 | Gawk, GCC, Gettext, Grep, Make, Perl, Sed, and Texinfo</seg></seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
[a001133] | 31 | </sect2>
|
---|
[3554fa3a] | 32 |
|
---|
[a001133] | 33 | <sect2 role="installation">
|
---|
[5888299] | 34 | <title>Installation of Glibc</title>
|
---|
[73aedd1d] | 35 |
|
---|
[791a9ec] | 36 | <note><para>Some packages outside of LFS suggest installing GNU libiconv in
|
---|
| 37 | order to translate data from one encoding to another. The project's home page
|
---|
| 38 | (<ulink url="http://www.gnu.org/software/libiconv/"/>) says <quote>This library
|
---|
| 39 | provides an <function>iconv()</function> implementation, for use on systems
|
---|
| 40 | which don't have one, or whose implementation cannot convert from/to Unicode.
|
---|
| 41 | </quote> Glibc provides an <function>iconv()</function> implementation and can
|
---|
| 42 | convert from/to Unicode, therefore libiconv is not required on an LFS
|
---|
| 43 | system.</para></note>
|
---|
| 44 |
|
---|
[81fd230] | 45 | <para>This package is known to have issues when its default
|
---|
| 46 | optimization flags (including the <parameter>-march</parameter> and
|
---|
| 47 | <parameter>-mcpu</parameter> options) are changed. If any environment
|
---|
| 48 | variables that override default optimizations have been defined, such
|
---|
| 49 | as <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar>,
|
---|
| 50 | unset them when building Glibc.</para>
|
---|
| 51 |
|
---|
| 52 | <para>The Glibc build system is self-contained and will install
|
---|
| 53 | perfectly, even though the compiler specs file and linker are still
|
---|
| 54 | pointing at <filename class="directory">/tools</filename>. The specs
|
---|
| 55 | and linker cannot be adjusted before the Glibc install because the
|
---|
| 56 | Glibc autoconf tests would give false results and defeat the goal
|
---|
| 57 | of achieving a clean build.</para>
|
---|
[73941fd] | 58 |
|
---|
[81fd230] | 59 | <para>The linuxthreads tarball contains the man pages for the
|
---|
[cb93a88] | 60 | threading libraries installed by Glibc. Unpack the tarball from
|
---|
| 61 | within the Glibc source directory:</para>
|
---|
[73941fd] | 62 |
|
---|
[01674db2] | 63 | <screen><userinput>tar -xf /sources/glibc-linuxthreads-&glibc-version;.tar.bz2</userinput></screen>
|
---|
[81fd230] | 64 |
|
---|
[a7e97df7] | 65 | <para>Glibc has two tests which fail when the running kernel is 2.6.11 or later.
|
---|
| 66 | The problem has been determined to be with the tests themselves, not with the
|
---|
| 67 | C library or the kernel. This patch fixes the problem:</para>
|
---|
[c3bb6d8] | 68 |
|
---|
[3e36a78] | 69 | <screen><userinput>patch -Np1 -i ../&glibc-testfix-patch;</userinput></screen>
|
---|
[c3bb6d8] | 70 |
|
---|
[2e02c35] | 71 | <para>Apply the following patches to enable Glibc to compile with
|
---|
| 72 | GCC-&gcc-version;:</para>
|
---|
| 73 |
|
---|
| 74 | <screen><userinput>patch -Np1 -i ../&glibc-gcc4_symbols-patch;
|
---|
| 75 | patch -Np1 -i ../&glibc-gcc4_string-patch;
|
---|
| 76 | patch -Np1 -i ../&glibc-gcc4_elf-patch;
|
---|
| 77 | patch -Np1 -i ../&glibc-gcc4_iconvdata-patch;</userinput></screen>
|
---|
| 78 |
|
---|
| 79 | <para>The following patch corrects the expected results for some of the math
|
---|
| 80 | tests on x86 processors when compiled with GCC-&gcc-version;:</para>
|
---|
| 81 |
|
---|
| 82 | <screen><userinput>patch -Np1 -i ../&glibc-gcc4_mathtest-patch;</userinput></screen>
|
---|
| 83 |
|
---|
[81fd230] | 84 | <para>The Glibc documentation recommends building Glibc outside of the source
|
---|
| 85 | directory in a dedicated build directory:</para>
|
---|
[73aedd1d] | 86 |
|
---|
| 87 | <screen><userinput>mkdir ../glibc-build
|
---|
| 88 | cd ../glibc-build</userinput></screen>
|
---|
| 89 |
|
---|
[81fd230] | 90 | <para>Prepare Glibc for compilation:</para>
|
---|
[73aedd1d] | 91 |
|
---|
[9dfc02f] | 92 | <screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
|
---|
[084db8d] | 93 | --disable-profile --enable-add-ons \
|
---|
[8e97f32] | 94 | --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>
|
---|
[73aedd1d] | 95 |
|
---|
[fc298480] | 96 | <para>The meaning of the new configure options:</para>
|
---|
[81fd230] | 97 |
|
---|
| 98 | <variablelist>
|
---|
| 99 | <varlistentry>
|
---|
| 100 | <term><parameter>--libexecdir=/usr/lib/glibc</parameter></term>
|
---|
| 101 | <listitem><para>This changes the location of the
|
---|
| 102 | <command>pt_chown</command> program from its default of <filename
|
---|
| 103 | class="directory">/usr/libexec</filename> to <filename
|
---|
| 104 | class="directory">/usr/lib/glibc</filename>.</para></listitem>
|
---|
| 105 | </varlistentry>
|
---|
| 106 | </variablelist>
|
---|
| 107 |
|
---|
[73aedd1d] | 108 | <para>Compile the package:</para>
|
---|
| 109 |
|
---|
| 110 | <screen><userinput>make</userinput></screen>
|
---|
| 111 |
|
---|
[81fd230] | 112 | <important><para>In this section, the test suite for Glibc is
|
---|
| 113 | considered critical. Do not skip it under any
|
---|
| 114 | circumstance.</para></important>
|
---|
| 115 |
|
---|
[73aedd1d] | 116 | <para>Test the results:</para>
|
---|
| 117 |
|
---|
[2e02c35] | 118 | <screen><userinput>
|
---|
| 119 | make -k check >glibc-check-log 2>&1 ; grep Error glibc-check-log
|
---|
| 120 | </userinput></screen>
|
---|
| 121 |
|
---|
| 122 | <para>On at least i686 you can expect to see failures in the <emphasis>test-double
|
---|
| 123 | </emphasis> and <emphasis>test-idouble</emphasis> math tests with
|
---|
| 124 | gcc-&gcc-version;, as well as an expected (ignored) failure in <emphasis>
|
---|
| 125 | posix/annexc</emphasis>. These two failures in the math tests appear to be
|
---|
| 126 | harmless.</para>
|
---|
[73aedd1d] | 127 |
|
---|
[81fd230] | 128 | <para>The Glibc test suite is highly dependent on certain functions of
|
---|
[2e02c35] | 129 | the host system, in particular the kernel. In certain circumstances,
|
---|
[81fd230] | 130 | some failures are unavoidable. This is a list of the most common
|
---|
| 131 | issues:</para>
|
---|
| 132 |
|
---|
| 133 | <itemizedlist>
|
---|
[2e02c35] | 134 | <listitem><para>The <emphasis>math</emphasis> tests sometimes fail in other tests
|
---|
| 135 | when running
|
---|
[81fd230] | 136 | on systems where the CPU is not a relatively new genuine Intel or authentic AMD.
|
---|
| 137 | Certain optimization settings are also known to be a factor here.</para></listitem>
|
---|
| 138 |
|
---|
| 139 | <listitem><para>The <emphasis>gettext</emphasis> test sometimes fails due to
|
---|
| 140 | host system issues. The exact reasons are not yet clear.</para></listitem>
|
---|
| 141 |
|
---|
[c4d687f] | 142 | <listitem><para>If you have mounted the LFS partition with the
|
---|
[2645ec6] | 143 | <parameter>noatime</parameter> option, the <emphasis>atime</emphasis> test will
|
---|
| 144 | fail. As mentioned in <xref linkend="space-mounting"/>, do not use the
|
---|
| 145 | <parameter>noatime</parameter> option while building LFS.</para></listitem>
|
---|
[81fd230] | 146 |
|
---|
| 147 | <listitem><para>When running on older and slower hardware, some tests
|
---|
| 148 | can fail because of test timeouts being exceeded.</para></listitem>
|
---|
| 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>
|
---|
[1caa48e] | 154 |
|
---|
| 155 | <screen><userinput>touch /etc/ld.so.conf</userinput></screen>
|
---|
| 156 |
|
---|
[81fd230] | 157 | <para>Install the package:</para>
|
---|
[73aedd1d] | 158 |
|
---|
| 159 | <screen><userinput>make install</userinput></screen>
|
---|
| 160 |
|
---|
[81fd230] | 161 | <para>The locales that can make the system respond in a different
|
---|
| 162 | language were not installed by the above command. Install this
|
---|
| 163 | with:</para>
|
---|
[73aedd1d] | 164 |
|
---|
| 165 | <screen><userinput>make localedata/install-locales</userinput></screen>
|
---|
| 166 |
|
---|
[81fd230] | 167 | <para>To save time, an alternative to running the
|
---|
| 168 | previous command (which generates and installs every locale Glibc is
|
---|
| 169 | aware of) is to install only those locales that are wanted and needed.
|
---|
| 170 | This can be achieved by using the <command>localedef</command>
|
---|
| 171 | command. Information on this command is located in the
|
---|
| 172 | <filename>INSTALL</filename> file in the Glibc source. However, there
|
---|
| 173 | are a number of locales that are essential in order for the tests of
|
---|
| 174 | future packages to pass, in particular, the
|
---|
| 175 | <emphasis>libstdc++</emphasis> tests from GCC. The following
|
---|
| 176 | instructions, instead of the <parameter>install-locales</parameter>
|
---|
| 177 | target used above, will install the minimum set of locales necessary
|
---|
[3f0c882] | 178 | for the tests to run successfully:</para>
|
---|
| 179 |
|
---|
[ad9b084] | 180 | <screen><userinput>mkdir -p /usr/lib/locale
|
---|
[73aedd1d] | 181 | localedef -i de_DE -f ISO-8859-1 de_DE
|
---|
| 182 | localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
|
---|
| 183 | localedef -i en_HK -f ISO-8859-1 en_HK
|
---|
| 184 | localedef -i en_PH -f ISO-8859-1 en_PH
|
---|
| 185 | localedef -i en_US -f ISO-8859-1 en_US
|
---|
| 186 | localedef -i es_MX -f ISO-8859-1 es_MX
|
---|
[673b0d8] | 187 | localedef -i fa_IR -f UTF-8 fa_IR
|
---|
[73aedd1d] | 188 | localedef -i fr_FR -f ISO-8859-1 fr_FR
|
---|
| 189 | localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
|
---|
| 190 | localedef -i it_IT -f ISO-8859-1 it_IT
|
---|
| 191 | localedef -i ja_JP -f EUC-JP ja_JP</userinput></screen>
|
---|
| 192 |
|
---|
[81fd230] | 193 | <para>Some locales installed by the <command>make
|
---|
| 194 | localedata/install-locales</command> command above are not properly
|
---|
| 195 | supported by some applications that are in the LFS and BLFS books.
|
---|
| 196 | Because of the various problems that arise due to application
|
---|
| 197 | programmers making assumptions that break in such locales, LFS should
|
---|
| 198 | not be used in locales that utilize multibyte character sets
|
---|
| 199 | (including UTF-8) or right-to-left writing order. Numerous unofficial
|
---|
| 200 | and unstable patches are required to fix these problems, and it has
|
---|
| 201 | been decided by the LFS developers not to support such complex locales. This applies to the
|
---|
| 202 | ja_JP and fa_IR locales as well—they have been installed only for
|
---|
| 203 | GCC and Gettext tests to pass, and the <command>watch</command> program
|
---|
| 204 | (part of the Procps package) does not work properly in them. Various
|
---|
| 205 | attempts to circumvent these restrictions are documented in
|
---|
| 206 | internationalization-related hints.</para>
|
---|
| 207 |
|
---|
| 208 | <para>Build the linuxthreads man pages, which are a great reference
|
---|
| 209 | on the threading API (applicable to NPTL as well):</para>
|
---|
[73aedd1d] | 210 |
|
---|
[9dfc02f] | 211 | <screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man</userinput></screen>
|
---|
[73aedd1d] | 212 |
|
---|
[81fd230] | 213 | <para>Install these pages:</para>
|
---|
[73aedd1d] | 214 |
|
---|
[9dfc02f] | 215 | <screen><userinput>make -C ../glibc-&glibc-version;/linuxthreads/man install</userinput></screen>
|
---|
[73aedd1d] | 216 |
|
---|
| 217 | </sect2>
|
---|
[5888299] | 218 |
|
---|
[8c16bf7] | 219 | <sect2 id="conf-glibc" role="configuration"><title>Configuring Glibc</title>
|
---|
[81fd230] | 220 | <indexterm zone="conf-glibc"><primary sortas="e-/etc/nsswitch.conf">/etc/nsswitch.conf</primary></indexterm>
|
---|
| 221 | <indexterm zone="conf-glibc"><primary sortas="e-/etc/localtime">/etc/localtime</primary></indexterm>
|
---|
| 222 |
|
---|
[2645ec6] | 223 | <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created
|
---|
| 224 | because, although Glibc provides defaults when this file is missing or corrupt,
|
---|
| 225 | the Glibc defaults do not work well in a networked environment. The time zone
|
---|
| 226 | also needs to be configured.</para>
|
---|
[342b176] | 227 |
|
---|
| 228 | <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the
|
---|
| 229 | following:</para>
|
---|
| 230 |
|
---|
[bb55064] | 231 | <screen><userinput>cat > /etc/nsswitch.conf << "EOF"
|
---|
[d72e04a] | 232 | <literal># Begin /etc/nsswitch.conf
|
---|
[342b176] | 233 |
|
---|
| 234 | passwd: files
|
---|
| 235 | group: files
|
---|
| 236 | shadow: files
|
---|
| 237 |
|
---|
| 238 | hosts: files dns
|
---|
| 239 | networks: files
|
---|
| 240 |
|
---|
[4a80bec] | 241 | protocols: files
|
---|
| 242 | services: files
|
---|
| 243 | ethers: files
|
---|
| 244 | rpc: files
|
---|
[342b176] | 245 |
|
---|
[d72e04a] | 246 | # End /etc/nsswitch.conf</literal>
|
---|
[bb55064] | 247 | EOF</userinput></screen>
|
---|
[342b176] | 248 |
|
---|
[81fd230] | 249 | <para>To determine the local time zone, run the following script:</para>
|
---|
[342b176] | 250 |
|
---|
| 251 | <screen><userinput>tzselect</userinput></screen>
|
---|
| 252 |
|
---|
[81fd230] | 253 | <para>After answering a few questions about the location, the script
|
---|
| 254 | will output the name of the time zone (e.g.,
|
---|
| 255 | <emphasis>EST5EDT</emphasis> or <emphasis>Canada/Eastern</emphasis>).
|
---|
| 256 | Then create the <filename>/etc/localtime</filename> file by
|
---|
| 257 | running:</para>
|
---|
[342b176] | 258 |
|
---|
[3f0c882] | 259 | <screen><userinput>cp --remove-destination /usr/share/zoneinfo/<replaceable>[xxx]</replaceable> \
|
---|
| 260 | /etc/localtime</userinput></screen>
|
---|
[342b176] | 261 |
|
---|
[2645ec6] | 262 | <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone
|
---|
| 263 | that <command>tzselect</command> provided (e.g., Canada/Eastern).</para>
|
---|
[81fd230] | 264 |
|
---|
| 265 | <para>The meaning of the cp option:</para>
|
---|
| 266 |
|
---|
| 267 | <variablelist>
|
---|
| 268 | <varlistentry>
|
---|
| 269 | <term><parameter>--remove-destination</parameter></term>
|
---|
| 270 | <listitem><para>This is needed to force removal of the already
|
---|
| 271 | existing symbolic link. The reason for copying the file instead of
|
---|
| 272 | using a symlink is to cover the situation where <filename
|
---|
| 273 | class="directory">/usr</filename> is on a separate partition. This
|
---|
| 274 | could be important when booted into single user
|
---|
| 275 | mode.</para></listitem>
|
---|
| 276 | </varlistentry>
|
---|
| 277 | </variablelist>
|
---|
| 278 |
|
---|
[342b176] | 279 | </sect2>
|
---|
| 280 |
|
---|
| 281 |
|
---|
[8c16bf7] | 282 | <sect2 id="conf-ld" role="configuration">
|
---|
[342b176] | 283 | <title>Configuring Dynamic Loader</title>
|
---|
[81fd230] | 284 | <indexterm zone="conf-ld"><primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary></indexterm>
|
---|
| 285 |
|
---|
| 286 | <para>By default, the dynamic loader (<filename
|
---|
| 287 | class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
|
---|
| 288 | <filename class="directory">/lib</filename> and <filename
|
---|
| 289 | class="directory">/usr/lib</filename> for dynamic libraries that are
|
---|
| 290 | needed by programs as they are run. However, if there are libraries in
|
---|
| 291 | directories other than <filename class="directory">/lib</filename> and
|
---|
| 292 | <filename class="directory">/usr/lib</filename>, these need to be
|
---|
| 293 | added to the <filename>/etc/ld.so.conf</filename> file in order
|
---|
| 294 | for the dynamic loader to find them. Two directories that are commonly
|
---|
| 295 | known to contain additional libraries are <filename
|
---|
| 296 | class="directory">/usr/local/lib</filename> and <filename
|
---|
| 297 | class="directory">/opt/lib</filename>, so add those directories to the
|
---|
| 298 | dynamic loader's search path.</para>
|
---|
[342b176] | 299 |
|
---|
| 300 | <para>Create a new file <filename>/etc/ld.so.conf</filename> by running the
|
---|
| 301 | following:</para>
|
---|
| 302 |
|
---|
[bb55064] | 303 | <screen><userinput>cat > /etc/ld.so.conf << "EOF"
|
---|
[d72e04a] | 304 | <literal># Begin /etc/ld.so.conf
|
---|
[342b176] | 305 |
|
---|
| 306 | /usr/local/lib
|
---|
| 307 | /opt/lib
|
---|
| 308 |
|
---|
[d72e04a] | 309 | # End /etc/ld.so.conf</literal>
|
---|
[bb55064] | 310 | EOF</userinput></screen>
|
---|
[342b176] | 311 |
|
---|
| 312 | </sect2>
|
---|
[5888299] | 313 |
|
---|
[c6cb3aa] | 314 | <sect2 id="contents-glibc" role="content"><title>Contents of Glibc</title>
|
---|
[673b0d8] | 315 |
|
---|
[81fd230] | 316 | <segmentedlist>
|
---|
| 317 | <segtitle>Installed programs</segtitle>
|
---|
| 318 | <segtitle>Installed libraries</segtitle>
|
---|
| 319 | <seglistitem><seg>catchsegv, gencat, getconf,
|
---|
| 320 | getent, iconv, iconvconfig, ldconfig, ldd, lddlibc4, locale,
|
---|
| 321 | localedef, mtrace, nscd, nscd_nischeck, pcprofiledump, pt_chown, rpcgen,
|
---|
| 322 | rpcinfo, sln, sprof, tzselect, xtrace, zdump, and zic</seg>
|
---|
| 323 | <seg>ld.so, libBrokenLocale.[a,so],
|
---|
| 324 | libSegFault.so, libanl.[a,so], libbsd-compat.a, libc.[a,so],
|
---|
| 325 | libcrypt.[a,so], libdl.[a,so], libg.a, libieee.a, libm.[a,so], libmcheck.a,
|
---|
| 326 | libmemusage.so, libnsl.a, libnss_compat.so, libnss_dns.so, libnss_files.so,
|
---|
| 327 | libnss_hesiod.so, libnss_nis.so, libnss_nisplus.so, libpcprofile.so,
|
---|
| 328 | libpthread.[a,so], libresolv.[a,so], librpcsvc.a, librt.[a,so],
|
---|
| 329 | libthread_db.so, and libutil.[a,so]</seg></seglistitem>
|
---|
| 330 | </segmentedlist>
|
---|
| 331 |
|
---|
| 332 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 333 | <?dbfo list-presentation="list"?>
|
---|
[bab5592] | 334 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 335 |
|
---|
| 336 | <varlistentry id="catchsegv">
|
---|
| 337 | <term><command>catchsegv</command></term>
|
---|
| 338 | <listitem>
|
---|
| 339 | <para>Can be used to create a stack trace when a program
|
---|
| 340 | terminates with a segmentation fault</para>
|
---|
| 341 | <indexterm zone="ch-system-glibc catchsegv"><primary sortas="b-catchsegv">catchsegv</primary></indexterm>
|
---|
| 342 | </listitem>
|
---|
| 343 | </varlistentry>
|
---|
| 344 |
|
---|
| 345 | <varlistentry id="gencat">
|
---|
| 346 | <term><command>gencat</command></term>
|
---|
| 347 | <listitem>
|
---|
| 348 | <para>Generates message catalogues</para>
|
---|
| 349 | <indexterm zone="ch-system-glibc gencat"><primary sortas="b-gencat">gencat</primary></indexterm>
|
---|
| 350 | </listitem>
|
---|
| 351 | </varlistentry>
|
---|
| 352 |
|
---|
| 353 | <varlistentry id="getconf">
|
---|
| 354 | <term><command>getconf</command></term>
|
---|
| 355 | <listitem>
|
---|
| 356 | <para>Displays the system configuration values for file system specific variables</para>
|
---|
| 357 | <indexterm zone="ch-system-glibc getconf"><primary sortas="b-getconf">getconf</primary></indexterm>
|
---|
| 358 | </listitem>
|
---|
| 359 | </varlistentry>
|
---|
| 360 |
|
---|
| 361 | <varlistentry id="getent">
|
---|
| 362 | <term><command>getent</command></term>
|
---|
| 363 | <listitem>
|
---|
| 364 | <para>Gets entries from an administrative database</para>
|
---|
| 365 | <indexterm zone="ch-system-glibc getent"><primary sortas="b-getent">getent</primary></indexterm>
|
---|
| 366 | </listitem>
|
---|
| 367 | </varlistentry>
|
---|
| 368 |
|
---|
| 369 | <varlistentry id="iconv">
|
---|
| 370 | <term><command>iconv</command></term>
|
---|
| 371 | <listitem>
|
---|
| 372 | <para>Performs character set conversion</para>
|
---|
| 373 | <indexterm zone="ch-system-glibc iconv"><primary sortas="b-iconv">iconv</primary></indexterm>
|
---|
| 374 | </listitem>
|
---|
| 375 | </varlistentry>
|
---|
| 376 |
|
---|
| 377 | <varlistentry id="iconvconfig">
|
---|
| 378 | <term><command>iconvconfig</command></term>
|
---|
| 379 | <listitem>
|
---|
| 380 | <para>Creates fastloading <command>iconv</command> module configuration files</para>
|
---|
| 381 | <indexterm zone="ch-system-glibc iconvconfig"><primary sortas="b-iconvconfig">iconvconfig</primary></indexterm>
|
---|
| 382 | </listitem>
|
---|
| 383 | </varlistentry>
|
---|
| 384 |
|
---|
| 385 | <varlistentry id="ldconfig">
|
---|
| 386 | <term><command>ldconfig</command></term>
|
---|
| 387 | <listitem>
|
---|
| 388 | <para>Configures the dynamic linker runtime bindings</para>
|
---|
| 389 | <indexterm zone="ch-system-glibc ldconfig"><primary sortas="b-ldconfig">ldconfig</primary></indexterm>
|
---|
| 390 | </listitem>
|
---|
| 391 | </varlistentry>
|
---|
| 392 |
|
---|
| 393 | <varlistentry id="ldd">
|
---|
| 394 | <term><command>ldd</command></term>
|
---|
| 395 | <listitem>
|
---|
| 396 | <para>Reports which shared libraries are required
|
---|
| 397 | by each given program or shared library</para>
|
---|
| 398 | <indexterm zone="ch-system-glibc ldd"><primary sortas="b-ldd">ldd</primary></indexterm>
|
---|
| 399 | </listitem>
|
---|
| 400 | </varlistentry>
|
---|
| 401 |
|
---|
| 402 | <varlistentry id="lddlibc4">
|
---|
| 403 | <term><command>lddlibc4</command></term>
|
---|
| 404 | <listitem>
|
---|
| 405 | <para>Assists <command>ldd</command> with object files</para>
|
---|
| 406 | <indexterm zone="ch-system-glibc lddlibc4"><primary sortas="b-lddlibc4">lddlibc4</primary></indexterm>
|
---|
| 407 | </listitem>
|
---|
| 408 | </varlistentry>
|
---|
| 409 |
|
---|
| 410 | <varlistentry id="locale">
|
---|
| 411 | <term><command>locale</command></term>
|
---|
| 412 | <listitem>
|
---|
| 413 | <para>Tells the compiler to enable or disable the use of POSIX locales
|
---|
| 414 | for built-in operations</para>
|
---|
| 415 | <indexterm zone="ch-system-glibc locale"><primary sortas="b-locale">locale</primary></indexterm>
|
---|
| 416 | </listitem>
|
---|
| 417 | </varlistentry>
|
---|
| 418 |
|
---|
| 419 | <varlistentry id="localedef">
|
---|
| 420 | <term><command>localedef</command></term>
|
---|
| 421 | <listitem>
|
---|
| 422 | <para>Compiles locale specifications</para>
|
---|
| 423 | <indexterm zone="ch-system-glibc localedef"><primary sortas="b-localedef">localedef</primary></indexterm>
|
---|
| 424 | </listitem>
|
---|
| 425 | </varlistentry>
|
---|
| 426 |
|
---|
| 427 | <varlistentry id="mtrace">
|
---|
| 428 | <term><command>mtrace</command></term>
|
---|
| 429 | <listitem>
|
---|
[bc2136e] | 430 | <para>Reads and interprets a memory trace file and displays a summary in human-readable format</para>
|
---|
[81fd230] | 431 | <indexterm zone="ch-system-glibc mtrace"><primary sortas="b-mtrace">mtrace</primary></indexterm>
|
---|
| 432 | </listitem>
|
---|
| 433 | </varlistentry>
|
---|
| 434 |
|
---|
| 435 | <varlistentry id="nscd">
|
---|
| 436 | <term><command>nscd</command></term>
|
---|
| 437 | <listitem>
|
---|
| 438 | <para>A daemon that provides a cache for the most common name
|
---|
| 439 | service requests</para>
|
---|
| 440 | <indexterm zone="ch-system-glibc nscd"><primary sortas="b-nscd">nscd</primary></indexterm>
|
---|
| 441 | </listitem>
|
---|
| 442 | </varlistentry>
|
---|
| 443 |
|
---|
| 444 | <varlistentry id="nscd_nischeck">
|
---|
| 445 | <term><command>nscd_nischeck</command></term>
|
---|
| 446 | <listitem>
|
---|
| 447 | <para>Checks whether or not secure mode is necessary for NIS+ lookup</para>
|
---|
| 448 | <indexterm zone="ch-system-glibc nscd_nischeck"><primary sortas="b-nscd_nischeck">nscd_nischeck</primary></indexterm>
|
---|
| 449 | </listitem>
|
---|
| 450 | </varlistentry>
|
---|
| 451 |
|
---|
| 452 | <varlistentry id="pcprofiledump">
|
---|
| 453 | <term><command>pcprofiledump</command></term>
|
---|
| 454 | <listitem>
|
---|
| 455 | <para>Dumps information generated by PC profiling</para>
|
---|
| 456 | <indexterm zone="ch-system-glibc pcprofiledump"><primary sortas="b-pcprofiledump">pcprofiledump</primary></indexterm>
|
---|
| 457 | </listitem>
|
---|
| 458 | </varlistentry>
|
---|
| 459 |
|
---|
| 460 | <varlistentry id="pt_chown">
|
---|
| 461 | <term><command>pt_chown</command></term>
|
---|
| 462 | <listitem>
|
---|
| 463 | <para>A helper program for <command>grantpt</command> to set
|
---|
| 464 | the owner, group and access permissions of a slave pseudo terminal</para>
|
---|
| 465 | <indexterm zone="ch-system-glibc pt_chown"><primary sortas="b-pt_chown">pt_chown</primary></indexterm>
|
---|
| 466 | </listitem>
|
---|
| 467 | </varlistentry>
|
---|
| 468 |
|
---|
| 469 | <varlistentry id="rpcgen">
|
---|
| 470 | <term><command>rpcgen</command></term>
|
---|
| 471 | <listitem>
|
---|
| 472 | <para>Generates C code to implement the Remote Procecure Call (RPC) protocol</para>
|
---|
| 473 | <indexterm zone="ch-system-glibc rpcgen"><primary sortas="b-rpcgen">rpcgen</primary></indexterm>
|
---|
| 474 | </listitem>
|
---|
| 475 | </varlistentry>
|
---|
| 476 |
|
---|
| 477 | <varlistentry id="rpcinfo">
|
---|
| 478 | <term><command>rpcinfo</command></term>
|
---|
| 479 | <listitem>
|
---|
| 480 | <para>Makes an RPC call to an RPC server</para>
|
---|
| 481 | <indexterm zone="ch-system-glibc rpcinfo"><primary sortas="b-rpcinfo">rpcinfo</primary></indexterm>
|
---|
| 482 | </listitem>
|
---|
| 483 | </varlistentry>
|
---|
| 484 |
|
---|
| 485 | <varlistentry id="sln">
|
---|
| 486 | <term><command>sln</command></term>
|
---|
| 487 | <listitem>
|
---|
| 488 | <para>A statically linked <command>ln</command> program</para>
|
---|
| 489 | <indexterm zone="ch-system-glibc sln"><primary sortas="b-sln">sln</primary></indexterm>
|
---|
| 490 | </listitem>
|
---|
| 491 | </varlistentry>
|
---|
| 492 |
|
---|
| 493 | <varlistentry id="sprof">
|
---|
| 494 | <term><command>sprof</command></term>
|
---|
| 495 | <listitem>
|
---|
| 496 | <para>Reads and displays shared object profiling data</para>
|
---|
| 497 | <indexterm zone="ch-system-glibc sprof"><primary sortas="b-sprof">sprof</primary></indexterm>
|
---|
| 498 | </listitem>
|
---|
| 499 | </varlistentry>
|
---|
| 500 |
|
---|
| 501 | <varlistentry id="tzselect">
|
---|
| 502 | <term><command>tzselect</command></term>
|
---|
| 503 | <listitem>
|
---|
| 504 | <para>Asks the user about the location of the
|
---|
| 505 | system and reports the corresponding time zone description</para>
|
---|
| 506 | <indexterm zone="ch-system-glibc tzselect"><primary sortas="b-tzselect">tzselect</primary></indexterm>
|
---|
| 507 | </listitem>
|
---|
| 508 | </varlistentry>
|
---|
| 509 |
|
---|
| 510 | <varlistentry id="xtrace">
|
---|
| 511 | <term><command>xtrace</command></term>
|
---|
| 512 | <listitem>
|
---|
| 513 | <para>Traces the execution of a program by
|
---|
| 514 | printing the currently executed function</para>
|
---|
| 515 | <indexterm zone="ch-system-glibc xtrace"><primary sortas="b-xtrace">xtrace</primary></indexterm>
|
---|
| 516 | </listitem>
|
---|
| 517 | </varlistentry>
|
---|
| 518 |
|
---|
| 519 | <varlistentry id="zdump">
|
---|
| 520 | <term><command>zdump</command></term>
|
---|
| 521 | <listitem>
|
---|
| 522 | <para>The time zone dumper</para>
|
---|
| 523 | <indexterm zone="ch-system-glibc zdump"><primary sortas="b-zdump">zdump</primary></indexterm>
|
---|
| 524 | </listitem>
|
---|
| 525 | </varlistentry>
|
---|
| 526 |
|
---|
| 527 | <varlistentry id="zic">
|
---|
| 528 | <term><command>zic</command></term>
|
---|
| 529 | <listitem>
|
---|
| 530 | <para>The time zone compiler</para>
|
---|
| 531 | <indexterm zone="ch-system-glibc zic"><primary sortas="b-zic">zic</primary></indexterm>
|
---|
| 532 | </listitem>
|
---|
| 533 | </varlistentry>
|
---|
| 534 |
|
---|
| 535 | <varlistentry id="ld.so">
|
---|
| 536 | <term><filename class="libraryfile">ld.so</filename></term>
|
---|
| 537 | <listitem>
|
---|
| 538 | <para>The helper program for shared library executables</para>
|
---|
| 539 | <indexterm zone="ch-system-glibc ld.so"><primary sortas="c-ld.so">ld.so</primary></indexterm>
|
---|
| 540 | </listitem>
|
---|
| 541 | </varlistentry>
|
---|
| 542 |
|
---|
| 543 | <varlistentry id="libBrokenLocale">
|
---|
| 544 | <term><filename class="libraryfile">libBrokenLocale</filename></term>
|
---|
| 545 | <listitem>
|
---|
| 546 | <para>Used by programs, such as Mozilla, to solve broken locales</para>
|
---|
| 547 | <indexterm zone="ch-system-glibc libBrokenLocale"><primary sortas="c-libBrokenLocale">libBrokenLocale</primary></indexterm>
|
---|
| 548 | </listitem>
|
---|
| 549 | </varlistentry>
|
---|
| 550 |
|
---|
| 551 | <varlistentry id="libSegFault">
|
---|
| 552 | <term><filename class="libraryfile">libSegFault</filename></term>
|
---|
| 553 | <listitem>
|
---|
| 554 | <para>The segmentation fault signal handler</para>
|
---|
| 555 | <indexterm zone="ch-system-glibc libSegFault"><primary sortas="c-libSegFault">libSegFault</primary></indexterm>
|
---|
| 556 | </listitem>
|
---|
| 557 | </varlistentry>
|
---|
| 558 |
|
---|
| 559 | <varlistentry id="libanl">
|
---|
| 560 | <term><filename class="libraryfile">libanl</filename></term>
|
---|
| 561 | <listitem>
|
---|
| 562 | <para>An asynchronous name lookup library</para>
|
---|
| 563 | <indexterm zone="ch-system-glibc libanl"><primary sortas="c-libanl">libanl</primary></indexterm>
|
---|
| 564 | </listitem>
|
---|
| 565 | </varlistentry>
|
---|
| 566 |
|
---|
| 567 | <varlistentry id="libbsd-compat">
|
---|
| 568 | <term><filename class="libraryfile">libbsd-compat</filename></term>
|
---|
| 569 | <listitem>
|
---|
| 570 | <para>Provides the portability needed
|
---|
| 571 | in order to run certain Berkey Software Distribution (BSD) programs under Linux</para>
|
---|
| 572 | <indexterm zone="ch-system-glibc libbsd-compat"><primary sortas="c-libbsd-compat">libbsd-compat</primary></indexterm>
|
---|
| 573 | </listitem>
|
---|
| 574 | </varlistentry>
|
---|
| 575 |
|
---|
| 576 | <varlistentry id="libc">
|
---|
| 577 | <term><filename class="libraryfile">libc</filename></term>
|
---|
| 578 | <listitem>
|
---|
| 579 | <para>The main C library</para>
|
---|
| 580 | <indexterm zone="ch-system-glibc libc"><primary sortas="c-libc">libc</primary></indexterm>
|
---|
| 581 | </listitem>
|
---|
| 582 | </varlistentry>
|
---|
| 583 |
|
---|
| 584 | <varlistentry id="libcrypt">
|
---|
| 585 | <term><filename class="libraryfile">libcrypt</filename></term>
|
---|
| 586 | <listitem>
|
---|
| 587 | <para>The cryptography library</para>
|
---|
| 588 | <indexterm zone="ch-system-glibc libcrypt"><primary sortas="c-libcrypt">libcrypt</primary></indexterm>
|
---|
| 589 | </listitem>
|
---|
| 590 | </varlistentry>
|
---|
| 591 |
|
---|
| 592 | <varlistentry id="libdl">
|
---|
| 593 | <term><filename class="libraryfile">libdl</filename></term>
|
---|
| 594 | <listitem>
|
---|
| 595 | <para>The dynamic linking interface library</para>
|
---|
| 596 | <indexterm zone="ch-system-glibc libdl"><primary sortas="c-libdl">libdl</primary></indexterm>
|
---|
| 597 | </listitem>
|
---|
| 598 | </varlistentry>
|
---|
| 599 |
|
---|
| 600 | <varlistentry id="libg">
|
---|
| 601 | <term><filename class="libraryfile">libg</filename></term>
|
---|
| 602 | <listitem>
|
---|
| 603 | <para>A runtime library for <command>g++</command></para>
|
---|
| 604 | <indexterm zone="ch-system-glibc libg"><primary sortas="c-libg">libg</primary></indexterm>
|
---|
| 605 | </listitem>
|
---|
| 606 | </varlistentry>
|
---|
| 607 |
|
---|
| 608 | <varlistentry id="libieee">
|
---|
| 609 | <term><filename class="libraryfile">libieee</filename></term>
|
---|
| 610 | <listitem>
|
---|
| 611 | <para>The Institute of Electrical and Electronic Engineers (IEEE) floating point library</para>
|
---|
| 612 | <indexterm zone="ch-system-glibc libieee"><primary sortas="c-libieee">libieee</primary></indexterm>
|
---|
| 613 | </listitem>
|
---|
| 614 | </varlistentry>
|
---|
| 615 |
|
---|
| 616 | <varlistentry id="libm">
|
---|
| 617 | <term><filename class="libraryfile">libm</filename></term>
|
---|
| 618 | <listitem>
|
---|
| 619 | <para>The mathematical library</para>
|
---|
| 620 | <indexterm zone="ch-system-glibc libm"><primary sortas="c-libm">libm</primary></indexterm>
|
---|
| 621 | </listitem>
|
---|
| 622 | </varlistentry>
|
---|
| 623 |
|
---|
| 624 | <varlistentry id="libmcheck">
|
---|
| 625 | <term><filename class="libraryfile">libmcheck</filename></term>
|
---|
| 626 | <listitem>
|
---|
| 627 | <para>Contains code run at boot</para>
|
---|
| 628 | <indexterm zone="ch-system-glibc libmcheck"><primary sortas="c-libmcheck">libmcheck</primary></indexterm>
|
---|
| 629 | </listitem>
|
---|
| 630 | </varlistentry>
|
---|
| 631 |
|
---|
| 632 | <varlistentry id="libmemusage">
|
---|
| 633 | <term><filename class="libraryfile">libmemusage</filename></term>
|
---|
| 634 | <listitem>
|
---|
| 635 | <para>Used by <command>memusage</command> to help collect
|
---|
| 636 | information about the memory usage of a program</para>
|
---|
| 637 | <indexterm zone="ch-system-glibc libmemusage"><primary sortas="c-libmemusage">libmemusage</primary></indexterm>
|
---|
| 638 | </listitem>
|
---|
| 639 | </varlistentry>
|
---|
| 640 |
|
---|
| 641 | <varlistentry id="libnsl">
|
---|
| 642 | <term><filename class="libraryfile">libnsl</filename></term>
|
---|
| 643 | <listitem>
|
---|
| 644 | <para>The network services library</para>
|
---|
| 645 | <indexterm zone="ch-system-glibc libnsl"><primary sortas="c-libnsl">libnsl</primary></indexterm>
|
---|
| 646 | </listitem>
|
---|
| 647 | </varlistentry>
|
---|
| 648 |
|
---|
| 649 | <varlistentry id="libnss">
|
---|
| 650 | <term><filename class="libraryfile">libnss</filename></term>
|
---|
| 651 | <listitem>
|
---|
| 652 | <para>The Name Service Switch libraries,
|
---|
| 653 | containing functions for resolving host names, user names, group names,
|
---|
[bc2136e] | 654 | aliases, services, protocols, etc.</para>
|
---|
[81fd230] | 655 | <indexterm zone="ch-system-glibc libnss"><primary sortas="c-libnss">libnss</primary></indexterm>
|
---|
| 656 | </listitem>
|
---|
| 657 | </varlistentry>
|
---|
| 658 |
|
---|
| 659 | <varlistentry id="libpcprofile">
|
---|
| 660 | <term><filename class="libraryfile">libpcprofile</filename></term>
|
---|
| 661 | <listitem>
|
---|
| 662 | <para>Contains profiling functions used
|
---|
| 663 | to track the amount of CPU time spent in specific source code lines</para>
|
---|
| 664 | <indexterm zone="ch-system-glibc libpcprofile"><primary sortas="c-libpcprofile">libpcprofile</primary></indexterm>
|
---|
| 665 | </listitem>
|
---|
| 666 | </varlistentry>
|
---|
| 667 |
|
---|
| 668 | <varlistentry id="libpthread">
|
---|
| 669 | <term><filename class="libraryfile">libpthread</filename></term>
|
---|
| 670 | <listitem>
|
---|
| 671 | <para>The POSIX threads library</para>
|
---|
| 672 | <indexterm zone="ch-system-glibc libpthread"><primary sortas="c-libpthread">libpthread</primary></indexterm>
|
---|
| 673 | </listitem>
|
---|
| 674 | </varlistentry>
|
---|
| 675 |
|
---|
| 676 | <varlistentry id="libresolv">
|
---|
| 677 | <term><filename class="libraryfile">libresolv</filename></term>
|
---|
| 678 | <listitem>
|
---|
| 679 | <para>Contains functions for creating,
|
---|
| 680 | sending, and interpreting packets to the Internet domain name servers</para>
|
---|
| 681 | <indexterm zone="ch-system-glibc libresolv"><primary sortas="c-libresolv">libresolv</primary></indexterm>
|
---|
| 682 | </listitem>
|
---|
| 683 | </varlistentry>
|
---|
| 684 |
|
---|
| 685 | <varlistentry id="librpcsvc">
|
---|
| 686 | <term><filename class="libraryfile">librpcsvc</filename></term>
|
---|
| 687 | <listitem>
|
---|
| 688 | <para>Contains functions providing miscellaneous RPC services</para>
|
---|
| 689 | <indexterm zone="ch-system-glibc librpcsvc"><primary sortas="c-librpcsvc">librpcsvc</primary></indexterm>
|
---|
| 690 | </listitem>
|
---|
| 691 | </varlistentry>
|
---|
| 692 |
|
---|
| 693 | <varlistentry id="librt">
|
---|
| 694 | <term><filename class="libraryfile">librt</filename></term>
|
---|
| 695 | <listitem>
|
---|
| 696 | <para>Contains functions providing most of the
|
---|
| 697 | interfaces specified by the POSIX.1b Realtime Extension</para>
|
---|
| 698 | <indexterm zone="ch-system-glibc librt"><primary sortas="c-librt">librt</primary></indexterm>
|
---|
| 699 | </listitem>
|
---|
| 700 | </varlistentry>
|
---|
| 701 |
|
---|
| 702 | <varlistentry id="libthread_db">
|
---|
| 703 | <term><filename class="libraryfile">libthread_db</filename></term>
|
---|
| 704 | <listitem>
|
---|
| 705 | <para>Contains functions useful for
|
---|
| 706 | building debuggers for multi-threaded programs</para>
|
---|
| 707 | <indexterm zone="ch-system-glibc libthread_db"><primary sortas="c-libthread_db">libthread_db</primary></indexterm>
|
---|
| 708 | </listitem>
|
---|
| 709 | </varlistentry>
|
---|
| 710 |
|
---|
| 711 | <varlistentry id="libutil">
|
---|
| 712 | <term><filename class="libraryfile">libutil</filename></term>
|
---|
| 713 | <listitem>
|
---|
| 714 | <para>Contains code for <quote>standard</quote> functions used in many different Unix utilities</para>
|
---|
| 715 | <indexterm zone="ch-system-glibc libutil"><primary sortas="c-libutil">libutil</primary></indexterm>
|
---|
| 716 | </listitem>
|
---|
| 717 | </varlistentry>
|
---|
| 718 | </variablelist>
|
---|
[673b0d8] | 719 |
|
---|
| 720 | </sect2>
|
---|
| 721 |
|
---|
| 722 | </sect1>
|
---|
[81fd230] | 723 |
|
---|