malloc(3)
只是一个提示,它malloc
是手册页第 3 节的一部分。第 3 节是库函数的位置。这与系统调用所在的手册页的第 2 节相反。没有malloc(2)
。
例如:
fwrite
是一个库函数,所以有时写成fwrite(3)
write
是一个系统调用,所以有时写成write(2)
如果你运行命令:
$ 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 convenâ
tions), e.g. man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]