PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
file_utils.h
Go to the documentation of this file.
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-2017, 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 
18 extern int fsync_fname(const char *fname, bool isdir,
19  const char *progname);
20 extern void fsync_pgdata(const char *pg_data, const char *progname,
21  int serverVersion);
22 extern int durable_rename(const char *oldfile, const char *newfile,
23  const char *progname);
24 extern int fsync_parent_path(const char *fname, const char *progname);
25 
26 #endif /* FILE_UTILS_H */
int fsync_fname(const char *fname, bool isdir, const char *progname)
Definition: file_utils.c:244
int durable_rename(const char *oldfile, const char *newfile, const char *progname)
Definition: file_utils.c:329
const char * progname
Definition: pg_standby.c:37
int fsync_parent_path(const char *fname, const char *progname)
Definition: file_utils.c:302
static char * pg_data
Definition: initdb.c:120
void fsync_pgdata(const char *pg_data, const char *progname, int serverVersion)
Definition: file_utils.c:58