系统调用中的数字代表什么

发布于 2024-11-29 19:53:46 字数 76 浏览 2 评论 0原文

我见过其中包含数字的系统调用。例如:xterm(1)、efence(3)。我想知道 1 和 3 或这些系统调用中的任何其他数字是什么意思?

I've seen system calls with numbers in them. For example: xterm(1), efence(3). I wanted to know what does 1 and 3 or for that matter any other number in these system calls mean?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谎言月老 2024-12-06 19:53:46

这些数字是手册的章节,来自 man 的手册页:

   The standard sections of the manual include:

   1      User Commands

   2      System Calls

   3      C Library Functions

   4      Devices and Special Files

   5      File Formats and Conventions

   6      Games et. Al.

   7      Miscellanea

   8      System Administration tools and Deamons

您可以通过在要查找的页面前添加章节编号来指定所需的手册章节,默认结果是是您要查找的条目中编号最低的部分。例如,man execman 1 exec 将带您进入 shell 命令,man 3 exec 将带您进入 C 库页面。

Those numbers are the section of the manual, from the man page on man:

   The standard sections of the manual include:

   1      User Commands

   2      System Calls

   3      C Library Functions

   4      Devices and Special Files

   5      File Formats and Conventions

   6      Games et. Al.

   7      Miscellanea

   8      System Administration tools and Deamons

You can specify which section of the manual you want by adding the section number before the page you are looking for, the default result will be the lowest numbered section with the entry you are looking for. For example man exec and man 1 exec will take you to the shell command, and man 3 exec will take you to the C library page.

岁吢 2024-12-06 19:53:46

(这些不是系统调用。)

该数字通常指手册页中的部分,您可以在其中找到该实用程序/系统调用/库函数/概念的文档。

来自男人男人

手册的标准部分包括:

   1      User Commands

   2      System Calls

   3      C Library Functions

   4      Devices and Special Files

   5      File Formats and Conventions

   6      Games et. Al.

   7      Miscellanea

   8      System Administration tools and Deamons

发行版根据其具体情况定制手册部分,其中通常包括其他部分。

xterm 是一个用户命令,因此它位于第 1 部分。efence 是一个函数,因此位于第 3 部分。

(Those are not syscalls.)

The number usually refers to the section in the man pages where you'll find the documentation for that utility/syscall/library function/concept.

From man man:

The standard sections of the manual include:

   1      User Commands

   2      System Calls

   3      C Library Functions

   4      Devices and Special Files

   5      File Formats and Conventions

   6      Games et. Al.

   7      Miscellanea

   8      System Administration tools and Deamons

Distributions customize the manual section to their specifics, which often include additional sections.

xterm is a user command, so it goes in section 1. efence is a function, hence section 3.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文