**披露 - 我是初学者C程序员,并且我不完全熟悉如何解释手册页以及在谈到C时的正确单词选择 - 对此问题的任何编辑或澄清是赞赏。*
问题: 我正在阅读信号(7)上的手册页,并且通常会看到对信号(2)的引用。
如果我说“#7”信号(7)'信号的参考如何不同?而不是信号(2)'? 这是否与7是库调用有关,2是系统调用?
答案 0 :(得分:3)
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
无论如何,这里是man-pages的部分概述: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
答案 1 :(得分:-1)
嗯,signal()依赖于系统,它取决于您的操作系统。如此处所述:
The behavior of signal() varies across UNIX versions, and has also
varied historically across different versions of Linux. Avoid its
use: use sigaction(2) instead. See Portability below.
linux access the manual, however上的信号(2)