sync.c

来自「geekos 0.3.0简单的操作系统」· C语言 代码 · 共 25 行

C
25
字号
/* * sync - Flush all cached filesystem data to disk * Copyright (c) 2004, David H. Hovemeyer <daveho@cs.umd.edu> * $Revision: 1.2 $ * * This is free software.  You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". */#include <conio.h>#include <process.h>#include <fileio.h>int main(int argc, char **argv){    int rc;    rc = Sync();    if (rc != 0)	Print("Could not sync filesystems: %s\n", Get_Error_String(rc));    return !(rc == 0);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?