?? update.c
字號(hào):
/* update - do sync periodically Author: Andy Tanenbaum */#include <sys/types.h>#include <signal.h>#include <unistd.h>_PROTOTYPE(int main, (void));int main(){ /* Release all (?) open file descriptors. */ close(0); close(1); close(2); /* Release current directory to avoid locking current device. */ chdir("/"); /* Flush the cache every 30 seconds. */ while (1) { sync(); sleep(30); }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -