aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 07:03:35 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-20 19:14:06 +0200
commit7f73d1848602da4c714045cbffbd27a3aa91c976 (patch)
tree69b66fba70006aec5eeb6e0a00aa5f6255ae2ecb
parent5ed8d3d00c6e71174a257c2bd6df901a5bde1c22 (diff)
downloadbusybox-w32-7f73d1848602da4c714045cbffbd27a3aa91c976.tar.gz
busybox-w32-7f73d1848602da4c714045cbffbd27a3aa91c976.tar.bz2
busybox-w32-7f73d1848602da4c714045cbffbd27a3aa91c976.zip
win32: add mkdir()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
-rw-r--r--include/mingw.h2
-rw-r--r--win32/mingw.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 404360d29..5cc1c5df5 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -193,7 +193,7 @@ NOIMPL(mingw_bind,SOCKET s UNUSED_PARAM,const struct sockaddr* sa UNUSED_PARAM,i
193 193
194NOIMPL(fchmod,int fildes UNUSED_PARAM, mode_t mode UNUSED_PARAM); 194NOIMPL(fchmod,int fildes UNUSED_PARAM, mode_t mode UNUSED_PARAM);
195NOIMPL(fchown,int fd UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM); 195NOIMPL(fchown,int fd UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM);
196NOIMPL(mingw_mkdir,const char *path UNUSED_PARAM, int mode UNUSED_PARAM); 196int mingw_mkdir(const char *path, int mode);
197 197
198#define mkdir mingw_mkdir 198#define mkdir mingw_mkdir
199#define lstat stat 199#define lstat stat
diff --git a/win32/mingw.c b/win32/mingw.c
index 57573bf60..bd855dc7a 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -381,3 +381,9 @@ const char *get_busybox_exec_path(void)
381 GetModuleFileName(NULL, path, PATH_MAX); 381 GetModuleFileName(NULL, path, PATH_MAX);
382 return path; 382 return path;
383} 383}
384
385#undef mkdir
386int mingw_mkdir(const char *path, int mode UNUSED_PARAM)
387{
388 return mkdir(path);
389}