PostgreSQL Source Code: src/common/file_perm.c Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13#include "c.h"
14
16
17
20
21
22
23
24
26
27
28
29
30
31
32
33void
35{
36
38 {
42 }
43
44 else
45 {
49 }
50}
51
52#ifdef FRONTEND
53
54
55
56
57
58
59
60
61
62
63
64
65bool
67{
68 struct stat statBuf;
69
70
71
72
73
74
75 if (stat(dataDir, &statBuf) == -1)
76 return false;
77
78#if !defined(WIN32) && !defined(__CYGWIN__)
79
81#endif
82
83 return true;
84}
85
86
87#endif
void SetDataDirectoryCreatePerm(int dataDirMode)
bool GetDataDirectoryCreatePerm(const char *dataDir)
#define PG_FILE_MODE_GROUP
#define PG_FILE_MODE_OWNER
#define PG_MODE_MASK_OWNER
#define PG_DIR_MODE_OWNER
#define PG_DIR_MODE_GROUP
#define PG_MODE_MASK_GROUP