sync 函数

来源:互联网 发布:淘宝网二手市场在哪 编辑:程序博客网 时间:2024/06/08 03:15

sync(将缓冲区数据写回磁盘)
相关函数
fsync
表头文件
#include<unistd.h>
定义函数
int sync(void)
函数说明
sync()负责将系统缓冲区数据写回磁盘,以确保数据同步。
返回值
返回0。
本文来自: (www.91linux.com) 详细出处参考:http://www.91linux.com/html/article/program/cpp/20071203/8770_5.html

原创粉丝点击