替代Windows的Fsync c
发布时间:2020-05-22 11:59:40 所属栏目:Windows 来源:互联网
导读:是否有替代 Windows的fsync? (C建造者) Fsync需要包含unistd.h,它仅适用于unix系统 谢谢! 从手册页: fflush() forces a write of all user-space buffered data for the given output or update stream via the stream’s underlying write func
|
是否有替代 Windows的fsync? (C建造者) Fsync需要包含unistd.h,它仅适用于unix系统 谢谢! 从手册页:
提到的write函数告诉操作系统文件的内容应该是什么.此时,所有更改将在实际提交到磁盘之前保存在文件系统缓存中. POSIX函数fsync()告诉操作系统将其缓存中的所有更改同步到磁盘.正如其他人所说,你可以在Windows平台上使用FlushFileBuffers. (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- windows-7 – Windows 7上的Visual Studio 2012仍
- 使用autohotkey定制windows 10 虚拟桌面的快捷键
- Windows Server 2016-增强IPAM
- windows平台xFsRedir程序更新(虚拟磁盘镜像存储
- winapi – Vista BEX错误
- Windows BATCH:如何为单个脚本禁用QuickEdit模式
- libglog.dll CMake 在Windows上编译、应用glog
- Windows上的Vim设置文件
- SAP ECC6 SOLUTION MANAGER KEY 生成脚本 (VBS)
- windows-services – 监控单个窗口服务的性能
热点阅读
