LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 571|回复: 1

取得文件列表 系统调用 的参数

[复制链接]
发表于 2006-1-9 18:38:00 | 显示全部楼层 |阅读模式
int sys_getdents (unsigned int fd, struct dirent *dirent, unsigned int count);

  用于取得文件列表的系统调用(ls...命令)

unsigned int fd, struct dirent *dirent, unsigned int count
含义是什么?谢谢!!
发表于 2006-1-9 20:34:51 | 显示全部楼层
man getdents:
int getdents(unsigned int fd, struct dirent *dirp, unsigned int count);

       The  system  call  getdents  reads  several  dirent structures from the
       directory pointed at by fd into the memory area  pointed  to  by  dirp.
       The parameter count is the size of the memory area.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表