busybox/coreutils/sync.c

13 lines
223 B
C
Raw Normal View History

1999-10-05 21:54:54 +05:30
#include "internal.h"
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) == '-' ) {
fprintf(stderr, "Usage: sync\nWrite all buffered filesystem blocks to disk.\n");
exit(FALSE);
}
1999-10-05 21:54:54 +05:30
return sync();
}
1999-10-19 00:32:32 +05:30