hush/coreutils/sync.c

13 lines
215 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) == '-' ) {
1999-10-18 22:28:26 +00:00
usage( "sync\nWrite all buffered filesystem blocks to disk.\n");
1999-10-18 19:02:32 +00:00
}
1999-10-18 22:28:26 +00:00
return sync();
1999-10-05 16:24:54 +00:00
}
1999-10-18 19:02:32 +00:00