aboutsummaryrefslogtreecommitdiff
path: root/toys/sync.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-04-23 15:45:55 -0400
committerRob Landley <rob@landley.net>2007-04-23 15:45:55 -0400
commitc92fde0bc75ade9d06c0d843c4693b9e2e338938 (patch)
treeae47a9a3ea727cc9170c67fbc044aa039f22a480 /toys/sync.c
parent4f34f0aa4d4f0874a6dbcafe8e43cc8ef2182092 (diff)
downloadtoybox-c92fde0bc75ade9d06c0d843c4693b9e2e338938.tar.gz
Add sync and an incomplete version of mdev.
Diffstat (limited to 'toys/sync.c')
-rw-r--r--toys/sync.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/toys/sync.c b/toys/sync.c
new file mode 100644
index 00000000..4918dc47
--- /dev/null
+++ b/toys/sync.c
@@ -0,0 +1,12 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * sync.c - Write all pending data to disk.
+ */
+
+#include "toys.h"
+
+int sync_main(void)
+{
+ sync();
+ return 0;
+}