在 Debian(以及其他 Linux 系统)中,readdir 是 C 库函数,用于读取目录内容,其手册位于 第 3 节(Library calls,库函数)。
你可以通过以下方式查看:
man 3 readdir
如果提示找不到手册,通常是没有安装 manpages-dev(C 库函数手册):
sudo apt update
sudo apt install manpages-dev
然后:
man 3 readdir
相关函数还有:
man 3 opendirman 3 closedirman 3 readdir_rman 2 getdents(系统调用层面)总结:readdir 在 Debian 的 man 3 手册中,属于 libc 库函数文档。