dirutil.h 525 B

12345678910111213141516171819202122232425
  1. #ifndef DIRUTIL_H_
  2. #define DIRUTIL_H_
  3. /**
  4. * dirutil_fsyncdir(path):
  5. * Call fsync on the directory ${path}.
  6. */
  7. int dirutil_fsyncdir(const char *);
  8. /**
  9. * dirutil_fsync(fp, name):
  10. * Attempt to write the contents of ${fp} to disk. Do not close ${fp}.
  11. *
  12. * Caveat: "Disks lie" - Kirk McKusick.
  13. */
  14. int dirutil_fsync(FILE *, const char *);
  15. /**
  16. * build_dir(dir, diropt):
  17. * Make sure that ${dir} exists, creating it (and any parents) as necessary.
  18. */
  19. int build_dir(const char *, const char *);
  20. #endif /* !DIRUTIL_H_ */