busybox/sync.c

13 lines
215 B
C
Raw Normal View History

1999-10-05 21:54:54 +05:30
#include "internal.h"
1999-10-19 02:11:33 +05:30
#include <stdio.h>
1999-10-05 21:54:54 +05:30
extern int
1999-10-19 00:32:32 +05:30
sync_main(int argc, char * * argv)
1999-10-05 21:54:54 +05:30
{
1999-10-19 00:32:32 +05:30
if ( **(argv+1) == '-' ) {
1999-10-19 03:58:26 +05:30
usage( "sync\nWrite all buffered filesystem blocks to disk.\n");
1999-10-19 00:32:32 +05:30
}
1999-10-19 03:58:26 +05:30
return sync();
1999-10-05 21:54:54 +05:30
}
1999-10-19 00:32:32 +05:30