c*******i 发帖数: 2 | 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! | k****f 发帖数: 3794 | 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!
| t*****g 发帖数: 1275 | 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!
|
|