PostgreSQL Source Code: src/common/config_info.c Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17#ifndef FRONTEND

19#else

21#endif

22

24

25

26

27

28

29

30

31

34{

37 char *lastsep;

38 int i = 0;

39

40

41 *configdata_len = 23;

43

46 lastsep = strrchr(path, '/');

47 if (lastsep)

48 *lastsep = '\0';

51 i++;

52

57 i++;

58

63 i++;

64

69 i++;

70

71 configdata[i].name = pstrdup("PKGINCLUDEDIR");

75 i++;

76

77 configdata[i].name = pstrdup("INCLUDEDIR-SERVER");

81 i++;

82

87 i++;

88

93 i++;

94

99 i++;

100

105 i++;

106

111 i++;

112

117 i++;

118

121 strlcat(path, "/pgxs/src/makefiles/pgxs.mk", sizeof(path));

124 i++;

125

128 i++;

129

131#ifdef VAL_CC

133#else

135#endif

136 i++;

137

139#ifdef VAL_CPPFLAGS

141#else

143#endif

144 i++;

145

147#ifdef VAL_CFLAGS

149#else

151#endif

152 i++;

153

155#ifdef VAL_CFLAGS_SL

157#else

159#endif

160 i++;

161

163#ifdef VAL_LDFLAGS

165#else

167#endif

168 i++;

169

171#ifdef VAL_LDFLAGS_EX

173#else

175#endif

176 i++;

177

179#ifdef VAL_LDFLAGS_SL

181#else

183#endif

184 i++;

185

187#ifdef VAL_LIBS

189#else

191#endif

192 i++;

193

195 configdata[i].setting = pstrdup("PostgreSQL " PG_VERSION);

196 i++;

197

198 Assert(i == *configdata_len);

199

200 return configdata;

201}

ConfigData * get_configdata(const char *my_exec_path, size_t *configdata_len)

#define palloc_array(type, count)

char my_exec_path[MAXPGPATH]

Assert(PointerIsAligned(start, uint64))

char * pstrdup(const char *in)

void cleanup_path(char *path)

void get_share_path(const char *my_exec_path, char *ret_path)

void get_pkglib_path(const char *my_exec_path, char *ret_path)

void get_locale_path(const char *my_exec_path, char *ret_path)

void get_man_path(const char *my_exec_path, char *ret_path)

void get_include_path(const char *my_exec_path, char *ret_path)

void get_lib_path(const char *my_exec_path, char *ret_path)

void get_etc_path(const char *my_exec_path, char *ret_path)

void get_doc_path(const char *my_exec_path, char *ret_path)

void get_html_path(const char *my_exec_path, char *ret_path)

void get_pkginclude_path(const char *my_exec_path, char *ret_path)

size_t strlcat(char *dst, const char *src, size_t siz)

size_t strlcpy(char *dst, const char *src, size_t siz)

void get_includeserver_path(const char *my_exec_path, char *ret_path)