现在的位置: 首页 > 综合 > 正文

sync 函数

2013年08月08日 ⁄ 综合 ⁄ 共 201字 ⁄ 字号 评论关闭

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

抱歉!评论已关闭.