mirror of
https://github.com/postgres/postgres.git
synced 2025-09-05 02:22:28 +03:00
This is still using the 2.0 version of pg_bsd_indent. I thought it would be good to commit this separately, so as to document the differences between 2.0 and 2.1 behavior. Discussion: https://postgr.es/m/16296.1558103386@sss.pgh.pa.us
25 lines
819 B
C
25 lines
819 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* File-processing utility routines for frontend code
|
|
*
|
|
* Assorted utility functions to work on files.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/common/file_utils.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef FILE_UTILS_H
|
|
#define FILE_UTILS_H
|
|
|
|
extern int fsync_fname(const char *fname, bool isdir);
|
|
extern void fsync_pgdata(const char *pg_data, int serverVersion);
|
|
extern void fsync_dir_recurse(const char *dir);
|
|
extern int durable_rename(const char *oldfile, const char *newfile);
|
|
extern int fsync_parent_path(const char *fname);
|
|
|
|
#endif /* FILE_UTILS_H */
|