摘要:
获取文件属性(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 阅读全文
摘要:
创建一个空洞文件#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... 阅读全文