aboutsummaryrefslogtreecommitdiff
path: root/include
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-09-10 18:50:00 +1000
commit43992d86844f4fa77b6e6613ce62b96d0e115bd5 (patch)
treeb796950986f05c73256f0bace01204dec8d1e0e8 /include
parent22c4fb20d407f464813ce1031308bc4c6db13bb4 (diff)
downloadbusybox-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.h8
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
132NOIMPL(clearenv,void); 132int clearenv(void);
133IMPL(mingw_getenv,char*,NULL,const char *name UNUSED_PARAM); 133char *mingw_getenv(const char *name);
134int mkstemp(char *template); 134int mkstemp(char *template);
135char *realpath(const char *path, char *resolved_path); 135char *realpath(const char *path, char *resolved_path);
136NOIMPL(setenv,const char *name UNUSED_PARAM, const char *value UNUSED_PARAM, int replace UNUSED_PARAM); 136int setenv(const char *name, const char *value, int replace);
137IMPL(unsetenv,void,,const char *env UNUSED_PARAM); 137void unsetenv(const char *env);
138 138
139#define getenv mingw_getenv 139#define getenv mingw_getenv
140/* 140/*