c++ - fileno, errno : What does the "no" mean?(非母语英语)

标签 c++ c linux

非英语母语,因此有些惯用术语我不懂。

函数 fileno() 或 header errno.h 中的“no”真正含义是什么?

no”是“number”的缩写吗?

如果是,为什么?

最佳答案

man documentation of fileno()这不是明确的,但这样写:

The function fileno() examines the argument stream and returns its integer descriptor.

因此,根据这个解释,我们应该说“no”表示文件描述符

但是在 man description of errno有明确的描述:

errno - number of last error

因此我们可以推断“no”实际上意味着“number”。

无论如何,维基百科明确了 Numero sign 的解释:

The numero sign or numero symbol, № (also represented as Nº, No, No./no. (US English),1 or No/no (UK English); plural Nos./nos. (US English) or Nos/nos (UK English)2), is a typographic abbreviation of the word number(s) indicating ordinal numeration, especially in names and titles.

如果您仍有疑问,还有 Wikipedia page for errno.h上面写着:

It defines macros for reporting and retrieving error conditions using the symbol errno (short for "error number").

关于c++ - fileno, errno : What does the "no" mean?(非母语英语),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59391062/

相关文章:

c - Popen 导致程序卡住

c - 为什么错误: expected expression before '{' token happen when i try to initialize a struct variable

java - KeyEvent.VK_CONTEXT_MENU 在 Linux 上由 Robot 发送时不起作用

c++ - 如何使用用户输入打破循环?

c++ - DJGPP 的恐惧错误

c++ - 在派生类中定义析构函数需要复制赋值运算符

c - C 中的简单垃圾收集

python - 使用 SUDS 清空 cookiejar

linux - 使用grep命令查找Joomla版本1.6

c++ - 哪个 union 成员在安置新人后变得活跃