OSDN Git Service

du: 32 bit systems were maxing out at 2GB when they should max out at 2TB
[android-x86/external-toybox.git] / toys / lsb / sync.c
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
20 void sync_main(void)
21 {
22   sync();
23 }