我见过带有数字的系统调用。例如:xterm(1)、efence(3)。我想知道 1 和 3 或这些系统调用中的任何其他数字是什么意思?
问问题
100 次
2 回答
4
这些数字是手册的部分,来自手册页man
:
The standard sections of the manual include:
1 User Commands
2 System Calls
3 C Library Functions
4 Devices and Special Files
5 File Formats and Conventions
6 Games et. Al.
7 Miscellanea
8 System Administration tools and Deamons
您可以通过在您要查找的页面之前添加节号来指定您想要的手册的哪个部分,默认结果将是您要查找的条目编号最小的部分。例如man exec
,andman 1 exec
会带你到 shell 命令,并且man 3 exec
会带你到 C 库页面。
于 2011-08-15T18:13:27.723 回答
1
(那些不是系统调用。)
该数字通常指的是手册页中的部分,您可以在其中找到该实用程序/系统调用/库函数/概念的文档。
来自man man
:
手册的标准部分包括:
1 User Commands
2 System Calls
3 C Library Functions
4 Devices and Special Files
5 File Formats and Conventions
6 Games et. Al.
7 Miscellanea
8 System Administration tools and Deamons
发行版根据其具体情况自定义手册部分,其中通常包括其他部分。
xterm
是一个用户命令,所以它在第 1 节中。efence
是一个函数,因此在第 3 节中。
于 2011-08-15T18:14:15.450 回答