PostgreSQL Source Code: src/port/win32env.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

14

15

16

17

18

19#include "c.h"

20

21

22

23

24

25

26int

28{

30 char *cp;

32 static const char *const modulenames[] = {

33 "msvcrt",

34 "msvcrtd",

35 "msvcr70",

36 "msvcr70d",

37 "msvcr71",

38 "msvcr71d",

39 "msvcr80",

40 "msvcr80d",

41 "msvcr90",

42 "msvcr90d",

43 "msvcr100",

44 "msvcr100d",

45 "msvcr110",

46 "msvcr110d",

47 "msvcr120",

48 "msvcr120d",

49 "ucrtbase",

50 "ucrtbased",

52 };

53 int i;

54

55

56

57

58

59

60

61

62

65 return -1;

68 {

70 return -1;

71 }

72 *cp = '\0';

74 if (*cp)

75 {

76

77

78

79

80

82 {

84 return -1;

85 }

86 }

88

89

90

91

92

93

94

95

97 {

100

102 {

104

109 }

110 }

111

112

113

114

115

116

118}

119

120int

122{

123 int res;

125

126

129 {

131 return -1;

132 }

133

134

136 return 0;

137

139 if (envstr)

140 return -1;

141

143

146 return res;

147}

148

149int

151{

152 int res;

154

155

157 {

159 return -1;

160 }

161

164 return -1;

165

169 return res;

170}

void(* pg_funcptr_t)(void)

static void overwrite(PGconn *conn, Oid lobjId, int start, int len)

int pgwin32_unsetenv(const char *name)

int pgwin32_putenv(const char *envval)

int pgwin32_setenv(const char *name, const char *value, int overwrite)