摘要: 获取文件属性(struct stat):<sys/stat.h> int stat(const char* restrict pathname,struct stat* restrict buf); int fstat(int fd,struct stat* restrict buf); int l 阅读全文
posted @ 2014-11-14 16:09 suo_suo 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 创建一个空洞文件#include #include #include int main(){ int fd=open("hole",O_WRONLY | O_CREAT,0666); write(fd,"1G hole are coming",strlen("1G hole are co... 阅读全文
posted @ 2014-11-14 16:08 suo_suo 阅读(178) 评论(0) 推荐(0) 编辑