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