sync.c 429 B

1234567891011121314151617181920212223
  1. /* sync.c - Write all pending data to disk.
  2. *
  3. * Copyright 2007 Rob Landley <rob@landley.net>
  4. *
  5. * http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/sync.html
  6. USE_SYNC(NEWTOY(sync, NULL, TOYFLAG_BIN))
  7. config SYNC
  8. bool "sync"
  9. default y
  10. help
  11. usage: sync
  12. Write pending cached data to disk (synchronize), blocking until done.
  13. */
  14. #include "toys.h"
  15. void sync_main(void)
  16. {
  17. sync();
  18. }