hush/sync.c

14 lines
242 B
C
Raw Normal View History

1999-10-05 16:24:54 +00:00
#include "internal.h"
1999-10-18 20:41:33 +00:00
#include <stdio.h>
1999-10-05 16:24:54 +00:00
extern int
1999-10-18 19:02:32 +00:00
sync_main(int argc, char * * argv)
1999-10-05 16:24:54 +00:00
{
1999-10-18 19:02:32 +00:00
if ( **(argv+1) == '-' ) {
fprintf(stderr, "Usage: sync\nWrite all buffered filesystem blocks to disk.\n");
exit(FALSE);
}
1999-10-05 16:24:54 +00:00
return sync();
}
1999-10-18 19:02:32 +00:00