• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* sync.c - Write all pending data to disk.
2  *
3  * Copyright 2007 Rob Landley <rob@landley.net>
4  *
5  * http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/sync.html
6 
7 USE_SYNC(NEWTOY(sync, NULL, TOYFLAG_BIN))
8 
9 config SYNC
10   bool "sync"
11   default y
12   help
13     usage: sync
14 
15     Write pending cached data to disk (synchronize), blocking until done.
16 */
17 
18 #include "toys.h"
19 
sync_main(void)20 void sync_main(void)
21 {
22   sync();
23 }
24