OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / original / man7 / libc.7
1 .\" Copyright (c) 2009 Linux Foundation, written by Michael Kerrisk
2 .\"     <mtk.manpages@gmail.com>
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
24 .TH LIBC 7 2009-01-13 "Linux" "Linux Programmer's Manual"
25 .SH NAME
26 libc \- Overview of standard C libraries on Linux
27 .SH DESCRIPTION
28 The term "libc" is commonly used as a shorthand for
29 the "standard C library",
30 a library of standard functions that can be used by all C programs
31 (and sometimes by programs in other languages).
32 Because of some history (see below), use of the term "libc"
33 to refer to the standard C library is somewhat ambiguous on Linux.
34 .SS glibc
35 By far the most widely used C library on Linux is the GNU C Library
36 .RI ( http://www.gnu.org/software/libc/ ),
37 often referred to as
38 .IR glibc .
39 This is the C library that is nowadays used in all
40 major Linux distributions.
41 It is also the C library whose details are documented
42 in the relevant pages of the
43 .I man-pages
44 project (primarily in Section 3 of the manual).
45 Documentation of glibc is also available in the glibc manual,
46 available via the command
47 .IR "info libc" .
48 Release 1.0 of glibc was made in September 1992.
49 (There were earlier 0.x releases.)
50 The next major release of glibc was 2.0, at the beginning of 1997.
51
52 The pathname
53 .I /lib/libc.so.6
54 (or something similar) is normally a symbolic link that
55 points to the location of the glibc library,
56 and executing this pathname will cause glibc to display
57 various information about the version installed on your system.
58 .SS Linux libc
59 In the early to mid 1990s, there was for a while
60 .IR "Linux libc" ,
61 a fork of glibc 1.x created by Linux developers who felt that glibc
62 development at the time was not sufficing for the needs of Linux.
63 Often, this library was referred to (ambiguously) as just "libc".
64 Linux libc released major versions 2, 3, 4, and 5
65 (as well as many minor versions of those releases).
66 For a while,
67 Linux libc was the standard C library in many Linux distributions.
68 However, notwithstanding the original motivations of the Linux libc effort,
69 by the time glibc 2.0 was released, it was clearly superior to Linux libc,
70 and all major Linux distributions that had been using Linux libc
71 soon switched back to glibc.
72 (Since this switch occurred over a decade ago,
73 .I man-pages
74 no longer takes care to document Linux libc details.
75 Nevertheless, the history is visible in vestiges of information
76 about Linux libc that remain in some manual pages,
77 in particular, references to
78 .IR libc4
79 and
80 .IR libc5 .)
81 .SS Other C libraries
82 There are various other less widely used C libraries for Linux.
83 These libraries are generally smaller than glibc,
84 both in terms of features and memory footprint,
85 and often intended for building small binaries,
86 perhaps targeted at development for embedded Linux systems.
87 Among such libraries are
88 .I uClibc
89 .RI ( http://www.uclibc.org/ )
90 and
91 .I dietlibc
92 .RI ( http://www.fefe.de/dietlibc/ ).
93 Details of these libraries are generally not covered by the
94 .I man-pages
95 project.
96 .SH SEE ALSO
97 .BR syscalls (2),
98 .BR feature_test_macros (7),
99 .BR man-pages (7),
100 .BR standards (7)