声明:此调查结果如有错误,敬请指正。谢谢^_^
Linux下文件对应的属性
struct stat {
mode_t st_mode; //文件对应的模式,文件、目录等
ino_t st_ino; //inode节点号
dev_t st_dev; //设备号码
dev_t st_rdev; //特殊设备号码
nlink_t st_nlink; //文件的连接数
uid_t st_uid; //文件所有者
gid_t st_gid; //文件所有者对应的组
off_t st_size; //普通文件对应的文件字节数
time_t st_atime; //文件最后被访问的时间
time_t st_mtime; //文件内容最后被修改的时间
time_t st_ctime; //文件状态改变时间
blksize_t st_blksize; //文件内容对应原块大小
blkcnt_t st_blocks; //文件内容对应的块数量
}
Windows下对应于上述st_blksize的值为“一个簇的大小 = 一个簇的扇区数 * 一个扇区的字节数”。
Windows下,如果用GetDiskFreeSpace函数来取得磁盘信息</