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-04-20 19:14:08 +0200 |
commit | e2d49ee805ab0e6db6f6c787e9c8d31123b7ee65 (patch) | |
tree | 74afa49468b1f72900c671917dc5c5182aa3b994 /include/mingw.h | |
parent | 60b898ced4dc652d5fa0c3f59f23e85a5715b783 (diff) | |
download | busybox-w32-e2d49ee805ab0e6db6f6c787e9c8d31123b7ee65.tar.gz busybox-w32-e2d49ee805ab0e6db6f6c787e9c8d31123b7ee65.tar.bz2 busybox-w32-e2d49ee805ab0e6db6f6c787e9c8d31123b7ee65.zip |
win32: add getenv(), setenv(), unsetenv() and clearenv()
clearenv() is not supported yet.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Diffstat (limited to 'include/mingw.h')
-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 08e1aed48..ea70313ff 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -130,12 +130,12 @@ int fdprintf(int fd, const char *format, ...); | |||
130 | #define WIFSIGNALED(x) ((unsigned)(x) > 259) | 130 | #define WIFSIGNALED(x) ((unsigned)(x) > 259) |
131 | #define WTERMSIG(x) ((x) & 0x7f) | 131 | #define WTERMSIG(x) ((x) & 0x7f) |
132 | 132 | ||
133 | NOIMPL(clearenv,void); | 133 | int clearenv(void); |
134 | IMPL(mingw_getenv,char*,NULL,const char *name UNUSED_PARAM); | 134 | char *mingw_getenv(const char *name); |
135 | int mkstemp(char *template); | 135 | int mkstemp(char *template); |
136 | char *realpath(const char *path, char *resolved_path); | 136 | char *realpath(const char *path, char *resolved_path); |
137 | NOIMPL(setenv,const char *name UNUSED_PARAM, const char *value UNUSED_PARAM, int replace UNUSED_PARAM); | 137 | int setenv(const char *name, const char *value, int replace); |
138 | IMPL(unsetenv,void,,const char *env UNUSED_PARAM); | 138 | void unsetenv(const char *env); |
139 | 139 | ||
140 | #define getenv mingw_getenv | 140 | #define getenv mingw_getenv |
141 | /* | 141 | /* |