gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
819B

  1. /*-------------------------------------------------------------------------
  2. *
  3. * File-processing utility routines for frontend code
  4. *
  5. * Assorted utility functions to work on files.
  6. *
  7. *
  8. * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
  9. * Portions Copyright (c) 1994, Regents of the University of California
  10. *
  11. * src/include/common/file_utils.h
  12. *
  13. *-------------------------------------------------------------------------
  14. */
  15. #ifndef FILE_UTILS_H
  16. #define FILE_UTILS_H
  17. extern int fsync_fname(const char *fname, bool isdir);
  18. extern void fsync_pgdata(const char *pg_data, int serverVersion);
  19. extern void fsync_dir_recurse(const char *dir);
  20. extern int durable_rename(const char *oldfile, const char *newfile);
  21. extern int fsync_parent_path(const char *fname);
  22. #endif /* FILE_UTILS_H */
上海开阖软件有限公司 沪ICP备12045867号-1