diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-14 02:15:27 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-10 18:50:00 +1000 |
commit | 43992d86844f4fa77b6e6613ce62b96d0e115bd5 (patch) | |
tree | b796950986f05c73256f0bace01204dec8d1e0e8 /include | |
parent | 22c4fb20d407f464813ce1031308bc4c6db13bb4 (diff) | |
download | busybox-w32-43992d86844f4fa77b6e6613ce62b96d0e115bd5.tar.gz busybox-w32-43992d86844f4fa77b6e6613ce62b96d0e115bd5.tar.bz2 busybox-w32-43992d86844f4fa77b6e6613ce62b96d0e115bd5.zip |
win32: add getenv(), setenv(), unsetenv() and clearenv()
clearenv() is not supported yet.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mingw.h b/include/mingw.h index c2c0c7816..32a9b4b4a 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -129,12 +129,12 @@ int fdprintf(int fd, const char *format, ...); | |||
129 | #define WIFSIGNALED(x) ((unsigned)(x) > 259) | 129 | #define WIFSIGNALED(x) ((unsigned)(x) > 259) |
130 | #define WTERMSIG(x) ((x) & 0x7f) | 130 | #define WTERMSIG(x) ((x) & 0x7f) |
131 | 131 | ||
132 | NOIMPL(clearenv,void); | 132 | int clearenv(void); |
133 | IMPL(mingw_getenv,char*,NULL,const char *name UNUSED_PARAM); | 133 | char *mingw_getenv(const char *name); |
134 | int mkstemp(char *template); | 134 | int mkstemp(char *template); |
135 | char *realpath(const char *path, char *resolved_path); | 135 | char *realpath(const char *path, char *resolved_path); |
136 | NOIMPL(setenv,const char *name UNUSED_PARAM, const char *value UNUSED_PARAM, int replace UNUSED_PARAM); | 136 | int setenv(const char *name, const char *value, int replace); |
137 | IMPL(unsetenv,void,,const char *env UNUSED_PARAM); | 137 | void unsetenv(const char *env); |
138 | 138 | ||
139 | #define getenv mingw_getenv | 139 | #define getenv mingw_getenv |
140 | /* | 140 | /* |