blob: 8a7f182654d5e74d51f1ac2cb7b16b26b7eccaf0 [file] [log] [blame]
Erik Andersene49d5ec2000-02-08 19:58:47 +00001/* vi: set sw=4 ts=4: */
Eric Andersenc4996011999-10-20 22:08:37 +00002/*
3 * Mini sync implementation for busybox
4 *
Eric Andersenc4996011999-10-20 22:08:37 +00005 * Copyright (C) 1995, 1996 by Bruce Perens <bruce@pixar.com>.
6 *
"Robert P. J. Day"801ab142006-07-12 07:56:04 +00007 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
Eric Andersenc4996011999-10-20 22:08:37 +00008 */
9
Manuel Novoa III cad53642003-03-19 09:13:01 +000010/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
11
Glenn L McGratha9c69762001-02-16 10:21:35 +000012#include <stdlib.h>
Eric Andersened3ef502001-01-27 08:24:39 +000013#include <unistd.h>
Eric Andersencbe31da2001-02-20 06:14:08 +000014#include "busybox.h"
Eric Andersencc8ed391999-10-05 16:24:54 +000015
Rob Landleydfba7412006-03-06 20:47:33 +000016int sync_main(int argc, char **argv)
Eric Andersencc8ed391999-10-05 16:24:54 +000017{
Manuel Novoa III cad53642003-03-19 09:13:01 +000018 bb_warn_ignoring_args(argc - 1);
19
Glenn L McGratha9c69762001-02-16 10:21:35 +000020 sync();
Manuel Novoa III cad53642003-03-19 09:13:01 +000021
Glenn L McGratha9c69762001-02-16 10:21:35 +000022 return(EXIT_SUCCESS);
Eric Andersencc8ed391999-10-05 16:24:54 +000023}