blob: e6990fd8a7c2760a2eed2cffb696c69d9c88af3b [file] [log] [blame]
Rob Landley28964802008-01-19 17:08:39 -06001/* vi: set sw=4 ts=4:
2 *
Rob Landleyc92fde02007-04-23 15:45:55 -04003 * sync.c - Write all pending data to disk.
Rob Landleyfece5cb2007-12-03 20:05:57 -06004 *
Rob Landley28964802008-01-19 17:08:39 -06005 * Copyright 2007 Rob Landley <rob@landley.net>
6 *
Rob Landleyfece5cb2007-12-03 20:05:57 -06007 * Not in SUSv3.
Rob Landley28964802008-01-19 17:08:39 -06008
Rob Landley55928b12008-01-19 17:43:27 -06009USE_SYNC(NEWTOY(sync, NULL, TOYFLAG_BIN))
10
Rob Landley28964802008-01-19 17:08:39 -060011config SYNC
12 bool "sync"
13 default y
14 help
15 usage: sync
16
17 Write pending cached data to disk (synchronize), blocking until done.
18*/
Rob Landleyc92fde02007-04-23 15:45:55 -040019
20#include "toys.h"
21
Rob Landleyefda21c2007-11-29 18:14:37 -060022void sync_main(void)
Rob Landleyc92fde02007-04-23 15:45:55 -040023{
24 sync();
Rob Landleyc92fde02007-04-23 15:45:55 -040025}