手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

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

[日期:2011-01-28] 来源: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
通过后面的数字,你就能明白一个函数是系统调用,还是只是一个类库中的一个函数。这个数字还是相当有意义的。

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款