请输入您要查询的百科知识:

 

词条 Klibc
释义

  1. See also

  2. References

  3. External links

{{Infobox software
|name = klibc
|logo =
|caption =
|screenshot =
|developer = H. Peter Anvin
|latest release version = 2.0.6
|latest release date = {{Start date and age|2019|01|31}}
|operating system = Linux
|genre = Runtime library
|license = GNU General Public License or BSD licence
|website = {{URL|https://www.kernel.org/pub/linux/libs/klibc/}}
}}

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, and even some full-featured programs such as the MirBSD Korn Shell. klibc is licensed under the full GPL license, which (unlike LGPL) imposes itself on any code linked with it. (This only applies to klibc as a whole due to embedding some Linux kernel derived files; most of the library source code is actually[5] available under a BSD licence from UCB or the Historical Permission Notice and Disclaimer.) This may limit its applicability to commercial embedded software.[6]

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[7] 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. all using the klibc library.[8] An alternate strategy is to include everything in one executable, like BusyBox, which determines the requested applet via arguments or a symlink.

See also

{{Portal|Free and open-source software}}
Other
//C standard library">C standard libraries:
{{Div col|colwidth=20em}}
  • Bionic libc
  • dietlibc
  • EGLIBC
  • glibc
  • musl
  • Newlib
  • uClibc
{{div col end}}

References

1. ^http://free-electrons.com/kerneldoc/latest/early-userspace/README
2. ^Jonathan Corbet, (November 2002) [https://lwn.net/Articles/14776/ Initramfs arrives], LWN.net
3. ^{{cite web |url=http://marc.info/?l=linux-kernel&m=103622506919278&w=2 |title=initramfs merge, part 1 of N |date=2002-02-11 }}
4. ^{{cite web |url= http://marc.info/?l=linux-kernel&m=103626389507412&w=2 |title= Re: initramfs merge, part 1 of N |date=2002-02-11 }}
5. ^{{cite web|url=https://git.kernel.org/?p=libs/klibc/klibc.git;a=blob;f=usr/klibc/LICENSE;h=aa6d7a7e37015f95f852ceb29cc417519919d806;hb=75216b5c62b3b3635ae0c6cf7ee47757d7d99100|title=LICENSE\\klibc\\usr - klibc/klibc.git - klibc main development tree|author=|date=|website=git.kernel.org|accessdate=23 April 2018}}
6. ^{{cite book |author=Hagen, William W. |title=The Definitive Guide to GCC, Second Edition |publisher=APress |location=Berkeley, CA |year=2006 |pages=286–289 |isbn=1-59059-585-8}}
7. ^Debian Wheezy Klibc.
8. ^{{cite web |url=https://git.kernel.org/?p=libs/klibc/klibc.git;a=tree;f=usr;h=f3224b691ca990bed5081ea31106bed47ce23653;hb=HEAD|title=libs/klibc/klibc.git / tree }}

External links

  • [https://kernel.org/pub/linux/libs/klibc/ Source archive]
  • [https://git.kernel.org/pub/scm/libs/klibc/klibc.git Browsable development tree]
  • Mailing list
  • [https://lwn.net/Articles/191004/ initramfs and where user space truly begins] - LWN, Jonathan Corbet, July 11, 2006.
{{DISPLAYTITLE:klibc}}{{CProLang}}

7 : C standard library|Free computer libraries|Free software programmed in C|Interfaces of the Linux kernel|Linux APIs|Software using the BSD license|Software using the GPL license

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/27 5:50:52