为什么有些Linux系统调用有两个手册页?

为什么有些Linux系统调用有两个手册页?,第1张

概述例: http://linux.die.net/man/2/socket http://linux.die.net/man/7/socket 它们以何种方式不同? socket(2)提供socket()系统调用的文档; socket(7)描述了如何在Linux上使用套接字(通常). man man为您提供部分概述: 1 Executable programs or shell commands 例:

http://linux.die.net/man/2/socket
http://linux.die.net/man/7/socket

它们以何种方式不同?

解决方法 socket(2)提供socket()系统调用的文档; socket(7)描述了如何在linux上使用套接字(通常).

man man为您提供部分概述:

1   Executable programs or shell commands   2   System calls (functions provIDed by the kernel)   3   library calls (functions within program librarIEs)   4   Special files (usually found in /dev)   5   file formats and conventions eg /etc/passwd   6   Games   7   Miscellaneous  (including  macro  packages  and  conventions),e.g.       man(7),groff(7)   8   System administration commands (usually only for root)   9   Kernel routines [Non standard]

这个列表在UNIX系统中或多或少(尽管不是很)“通用”,以及大多数时候你感兴趣的部分.各种UNIX系统中使用的Wikipedia has more documentation on man sections.

有许多“重复”联机帮助页,例如crontab(1)描述了/ sbin / crontab,crontab(5)描述了crontab文件格式.

如果没有使用MANSECT环境变量显式添加节,则可以配置man使用哪个节;在linux上默认为1 n l 8 3 0 2 5 4 9 6 7.

有关每个部分的介绍,请查看man< n>介绍(即man 7 intro).

奖金提示:
apropos是你的朋友:

$apropos crontabanacrontab (5)       - configuration file for Anacroncrontab (1)          - maintains crontab files for indivIDual userscrontab (1p)         - schedule periodic background workcrontab (5)          - files used to schedule the execution of programs
总结

以上是内存溢出为你收集整理的为什么有些Linux系统调用有两个手册页?全部内容,希望文章能够帮你解决为什么有些Linux系统调用有两个手册页?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1027310.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存