当有人在指定系统调用时写入read(2)时,'2'究竟是什么意思?

Rau*_*har 2 c operating-system

当他们说read(2)或open(1)时,有什么意思?括号中的数字实际上是什么意思?

编辑:改述问题的标题.

tas*_*oor 7

括号用于指定手册页的部分.手册页被组织成不同的部分,而部分编号指定它是什么类型的"事物".从维基百科,一个常见的部门组织(在研究Unix,BSD,OS X和Linux上)是这样的:

1   General commands
2   System calls
3   Library functions, covering in particular the C standard library
4   Special files (usually devices, those found in /dev) and drivers
5   File formats and conventions
6   Games and screensavers
7   Miscellanea
8   System administration commands and daemons
Run Code Online (Sandbox Code Playgroud)

例如,read(2)它意味着它正在谈论OS系统调用read.