aboutsummaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 02:15:27 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-20 19:14:08 +0200
commite2d49ee805ab0e6db6f6c787e9c8d31123b7ee65 (patch)
tree74afa49468b1f72900c671917dc5c5182aa3b994 /include/mingw.h
parent60b898ced4dc652d5fa0c3f59f23e85a5715b783 (diff)
downloadbusybox-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.h8
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
133NOIMPL(clearenv,void); 133int clearenv(void);
134IMPL(mingw_getenv,char*,NULL,const char *name UNUSED_PARAM); 134char *mingw_getenv(const char *name);
135int mkstemp(char *template); 135int mkstemp(char *template);
136char *realpath(const char *path, char *resolved_path); 136char *realpath(const char *path, char *resolved_path);
137NOIMPL(setenv,const char *name UNUSED_PARAM, const char *value UNUSED_PARAM, int replace UNUSED_PARAM); 137int setenv(const char *name, const char *value, int replace);
138IMPL(unsetenv,void,,const char *env UNUSED_PARAM); 138void unsetenv(const char *env);
139 139
140#define getenv mingw_getenv 140#define getenv mingw_getenv
141/* 141/*