Linux内核中libc.so.6的相关性 [英] Relevance of libc.so.6 in Linux kernel
本文介绍了Linux内核中libc.so.6的相关性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的问题是Linux内核是否包含libc.so.6
?仔细研究并浏览不同的链接后,我们发现libc.so.6
不是Linux内核的一部分,因为内核具有相同的库,供内核空间使用. libc.so.6
是一个用户空间库.但是,仍然有一个问题,如果从"/lib"中删除了libc.so.6,它将崩溃,因为Linux的所有基本应用程序都崩溃了.
My question is whether Linux kernel contains libc.so.6
? After googling and going through different links, we found that libc.so.6
, is not a part of Linux kernel, as the kernel has same libraries implemented for its own use in kernel space. libc.so.6
is a userspace library. But, still, the question was left, if the libc.so.6 is removed from "/lib", it crashes, as all the basic applications of Linux crashes.
因此,剩下的基本问题是:
So, the basic questions were left on:
- Linux是否可以在没有
libc.so.6
的情况下运行?如果是,那么在哪里使用这种实现? - 谁提供
libc.so.6
?它仅由Linux发行版提供吗? - Linux内部是否支持线程化?
- Can Linux run without
libc.so.6
? If yes, where such implementation is used? - Who provides
libc.so.6
? Is it provided by Linux distributions only? - Does Linux internally supports threading or not?
推荐答案
- 是的.例如,我可以在不使用libc的程序集中编写一个应用程序.以下是一些示例: https://stackoverflow.com/questions/284797/hello少于20个字节的世界
- 在Linux上,glibc是libc的常见实现: https://www.gnu.org /software/libc/
- 是的. glibc提供的线程选项是内核接口上的垫片层.
- Yes. For example, I could write an application in assembly that did not use libc. Here are some examples: https://stackoverflow.com/questions/284797/hello-world-in-less-than-20-bytes
- On Linux, glibc is a common implementation of libc: https://www.gnu.org/software/libc/
- Yes. The threading options that glibc provides are a shim layer over a kernel interface.
这篇关于Linux内核中libc.so.6的相关性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文