是否有任何地方可以解释所有缩写库名称?我不需要关于这些库的文档,我只想知道这些标题是什么的缩写。它们是缩写吗?
好的,那我们开始列一个列表:
标准输入/输出(I/O)和标准库
man fcntl
即可。如果这样不起作用,请安装 man 手册。 - Dietrich Epp您想知道如何自己查找这些内容。(我喜欢Kerrek SB的列表,但是我不怪您想知道如何自己查找这些内容。)
首先:如果您使用Debian或Ubuntu,请强烈建议您安装manpages-posix
和manpages-posix-dev
软件包,除了通常的manpages
软件包外。这将使您可以访问标准以及Linux man-pages项目。
通过以下命令可以立即看到区别:
man 2 close # gives you the Linux documentation of the system call
man 3posix close # gives you the POSIX definition of the function
对于不太可能是系统调用的函数,您也可以看到它们之间的差异:
man 3 qsort # Linux man-pages project describing the glibc function
man 3posix qsort # POSIX standard definition of the function, should be useful
description for any POSIX-compliant system
我还建议安装 dict
, dictd
, 以及 dict-jargon
或 dict-foldoc
(或者两者都安装)软件包:
$ dict stdin
2 definitions found
From The Free On-line Dictionary of Computing (26 July 2010) [foldoc]:
standard input/output
standard I/O
stderr
stdin
stdio
stdout
<programming, operating system> The predefined input/output
channels which every {Unix} process is initialised with.
Standard input is by default from the terminal, and standard
output and standard error are to the terminal. Each of these
channels (controlled via a {file descriptor} 0, 1, or 2 -
stdin, stdout, stderr) can be redirected to a file, another
device or a {pipe} connecting its process to another process.
The process is normally unaware of such {I/O redirection},
thus simplifying prototyping of combinations of commands.
The {C} programming language library includes routines to
perform basic operations on standard I/O. Examples are
"printf", allowing text to be sent to standard output, and
"scanf", allowing the program to read from standard input.
(1996-06-07)
From V.E.R.A. -- Virtual Entity of Relevant Acronyms (June 2006) [vera]:
STDIN
STandarD INput
$ dict stdlib
No definitions found for "stdlib"
$
(很滑稽,对吧?没有你想要的其中之一。但是它们仍然是非常好用的工具。)
stdio:标准输入/输出
http://www.cplusplus.com/reference/clibrary/cstdio/
"……使用C标准输入输出库(在C语言中称为stdio.h)"
stdlib:标准库
http://www.cplusplus.com/reference/clibrary/cstdlib/
"C标准通用工具库 此头文件定义了几个通用函数……"
usleep
中的u
不是命令式的。它代表微秒(micro)的希腊字母μ(即µ),因为该函数参数是以微秒为单位的。 - R.. GitHub STOP HELPING ICEcalloc
并没有明确(检查)初始状态是否为零,它会主动将位模式设置为零。请注意,usleep 让我有点发笑,但不幸的是,答案的某些部分是错误的,无法获得赞同 :-) - paxdiablofrexp
是用于获取一个数的 小数 部分和 指数 部分。而我认为calloc
更像是 _清空分配_。 - sarnold