PostgreSQL Source Code: src/port/win32env.c File Reference (original) (raw)
#include "[c.h](c%5F8h%5Fsource.html)"

Go to the source code of this file.
| Functions | |
|---|---|
| int | pgwin32_putenv (const char *envval) |
| int | pgwin32_setenv (const char *name, const char *value, int overwrite) |
| int | pgwin32_unsetenv (const char *name) |
◆ pgwin32_putenv()
Definition at line 27 of file win32env.c.
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}
void(* pg_funcptr_t)(void)
Referenced by pgwin32_setenv(), and pgwin32_unsetenv().
◆ pgwin32_setenv()
Definition at line 121 of file win32env.c.
122{
123 int res;
125
126
129 {
131 return -1;
132 }
133
134
136 return 0;
137
139 if ()
140 return -1;
141
143
146 return res;
147}
static void overwrite(PGconn *conn, Oid lobjId, int start, int len)
int pgwin32_putenv(const char *envval)
References fb(), free, malloc, name, overwrite(), pgwin32_putenv(), sprintf, and value.