summaryrefslogtreecommitdiff
path: root/i/pc104/initrd/conf/busybox/coreutils/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'i/pc104/initrd/conf/busybox/coreutils/sync.c')
-rw-r--r--i/pc104/initrd/conf/busybox/coreutils/sync.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/i/pc104/initrd/conf/busybox/coreutils/sync.c b/i/pc104/initrd/conf/busybox/coreutils/sync.c
new file mode 100644
index 0000000..536c57a
--- /dev/null
+++ b/i/pc104/initrd/conf/busybox/coreutils/sync.c
@@ -0,0 +1,24 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * Mini sync implementation for busybox
+ *
+ * Copyright (C) 1995, 1996 by Bruce Perens <bruce@pixar.com>.
+ *
+ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ */
+
+/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
+
+#include <stdlib.h>
+#include <unistd.h>
+#include "busybox.h"
+
+int sync_main(int argc, char **argv);
+int sync_main(int argc, char **argv)
+{
+ bb_warn_ignoring_args(argc - 1);
+
+ sync();
+
+ return EXIT_SUCCESS;
+}