摘要: 缓存同步 : 为了保证磁盘系统与缓冲区中内容一致,Linux 系统提供了 sync、fsync 和fdatasync 三个函数. 函数描述:向打开的文件写数据; 成功返回0,若出错,返回-1。 头文件:#include <unistd.h> int fsync(int fd); int fdatas 阅读全文
posted @ 2021-07-10 16:53 youlj 阅读(300) 评论(0) 推荐(0) 编辑