xref: /third_party/toybox/toys/lsb/sync.c (revision 0f66f451)
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
7USE_SYNC(NEWTOY(sync, NULL, TOYFLAG_BIN))
8
9config 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
20void sync_main(void)
21{
22  sync();
23}
24