信号(7)和信号(2)有什么区别?

Dan*_*eta 3 c manpage

**披露- 我是一名初学者 C 程序员,并不完全熟悉如何解释手册页,也不完全熟悉谈论 C 时的正确单词选择 - 感谢对此问题的任何编辑或澄清。*

问题: 我正在阅读有关 signal(7) 的手册页,通常会看到对 signal(2) 的引用。

如果我说“信号(7)”而不是“信号(2)”,对信号的引用有何不同?这与 7 是库调用而 2 是系统调用有关吗?

Ded*_*tor 6

signal(7) 是信号处理概述。
http://man7.org/linux/man-pages/man7/signal.7.html

signal(2) 是 API 函数(系统调用)。
http://man7.org/linux/man-pages/man2/signal.2.html

无论如何,这里是手册页的部分概述:http://linux.die.net/man

1 user commands (introduction)
2 system calls (introduction)
3 library functions (introduction)
4 special files (introduction)
5 file formats (introduction)
6 games (introduction)
7 conventions and miscellany (introduction)
8 administration and privileged commands (introduction)
L math library functions
N tcl functions 
Run Code Online (Sandbox Code Playgroud)