Linux man 命令后面的圆括号的意义

来源:Linux社区  作者:niniwzw

我们经常会看到 在说一对象的man page 的时候,会这样的格式:

mmap(2)

shm_open(3)

后面的数字是什么意思呢,通过 man man 命令就可以知道,这是数字是,section

大多数类unix 操作系统,都采用相同的section 的约定:

Section 1

user commands (introduction)


Section 2 
system calls (introduction) 
Section 3 
library functions (introduction) 
Section 4 
special files (introduction) 
Section 5 
file formats (introduction) 
Section 6 
games (introduction) 
Section 7 
conventions and miscellany (introduction) 
Section 8 
administration and privileged commands (introduction) 
Section L 
math library functions 
Section N 
tcl functions 
通过后面的数字,你就能明白一函数是系统调用,还是只是一类库中的一函数。这数字还是相当意义的。

posted @ 2011-07-13 09:14  magicyang1987  阅读(298)  评论(0)    收藏  举报