statfs函数

由于要读取SD卡的大小和使用状况,因此用到statfs这个函数,功能相似于df命令。函数 须要的头文件:#include <sys/vfs.h>  优化 int statfs(const char *path, struct statfs *buf);spa struct statfs { long f_type; /* 文件系统类型 */ long f_bsize; /* 通过优化的传输块大小
相关文章
相关标签/搜索