klibc
It has been suggested that this article or section be merged into [[::Linux startup process|Linux startup process]]. (Discuss) |
Developer(s) | H. Peter Anvin |
---|---|
Stable release | 1.5 / March 4, 2007 |
Operating system | Linux |
Type | C standard library |
License | GNU General Public License |
In computing, klibc is a minimalistic subset of the standard C library developed by H. Peter Anvin. It was developed mainly to be used during the Linux startup process, and it is part of the early user space, i.e. components used during kernel startup, but which do not run in kernel mode.[1] These components do not have access to the standard library (usually glibc) used by normal userspace programs.
The development of klibc library was part of the 2002 effort to move some Linux initialization code out of the kernel.[2][3][4] According to its documentation, the klibc library is optimized for correctness and small size.[1] Because of its design, klibc is also technically suitable for embedded software in general. Unlike many other open source libraries, kblic is licensed under the full GPL license, which (unlike LGPL) imposes itself on any code linked with it. This may limit its applicability to commercial embedded software.[5]
During the Linux startup process, klibc is loaded from within a temporary RAM file system, initramfs. It is incorporated by default into initial RAM file systems that are created by the mkinitramfs
script in Debian and Ubuntu. Furthermore it has a set of small Unix utilities that are useful in early user space: cpio, dash, fstype, mkdir, mknod, mount, nfsmount, run-init, etc.
See also
References
- ↑ 1.0 1.1 http://lxr.linux.no/#linux+v2.6.32/Documentation/early-userspace/README
- ↑ Jonathan Corbet, (November 2002) Initramfs arrives, LWN.net
- ↑ "initramfs merge, part 1 of N". 2002-02-11. http://marc.info/?l=linux-kernel&m=103622506919278&w=2.
- ↑ "Re: initramfs merge, part 1 of N". 2002-02-11. http://marc.info/?l=linux-kernel&m=103626389507412&w=2.
- ↑ Hagen, p. 286
General references
- Hagen, William W. (2006). The Definitive Guide to GCC, Second Edition. Berkeley, CA: APress. pp. 286–289. ISBN 1-59059-585-8.
External links
|
If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...