Redian新闻
>
what's the system call for get file num of a dir?
avatar
what's the system call for get file num of a dir?# Programming - 葵花宝典
c*i
1
【 以下文字转载自 Linux 讨论区 】
发信人: clairecai (claire), 信区: Linux
标 题: what's the system call for get file num of a dir?
发信站: BBS 未名空间站 (Mon Jan 14 00:05:22 2008), 转信
for unix,
and what's the system call to tell if it's a file or dir?
3x very much!
avatar
k*f
2
access??

【在 c*******i 的大作中提到】
: 【 以下文字转载自 Linux 讨论区 】
: 发信人: clairecai (claire), 信区: Linux
: 标 题: what's the system call for get file num of a dir?
: 发信站: BBS 未名空间站 (Mon Jan 14 00:05:22 2008), 转信
: for unix,
: and what's the system call to tell if it's a file or dir?
: 3x very much!

avatar
t*g
3
glob and stat can do. glob may not be the most efficient way though.

【在 c*******i 的大作中提到】
: 【 以下文字转载自 Linux 讨论区 】
: 发信人: clairecai (claire), 信区: Linux
: 标 题: what's the system call for get file num of a dir?
: 发信站: BBS 未名空间站 (Mon Jan 14 00:05:22 2008), 转信
: for unix,
: and what's the system call to tell if it's a file or dir?
: 3x very much!

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。