aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 06:51:11 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-10 19:28:25 +1000
commit3d88e4b6c9d3bb7b5eb75575049ed6d06f47bcd9 (patch)
treeee2ddec9412c8a61a6f660b7b3ebfe3b08837a31 /include
parent7a7312a3a10b3f580d7e149d814609660703d53b (diff)
downloadbusybox-w32-3d88e4b6c9d3bb7b5eb75575049ed6d06f47bcd9.tar.gz
busybox-w32-3d88e4b6c9d3bb7b5eb75575049ed6d06f47bcd9.tar.bz2
busybox-w32-3d88e4b6c9d3bb7b5eb75575049ed6d06f47bcd9.zip
win32: Replace open/fopen to support /dev/null
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 57fa6177d..ba73c362e 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -120,6 +120,8 @@ NOIMPL(sigfillset,int *mask UNUSED_PARAM);
120#define fseeko(f,o,w) fseek(f,o,w) 120#define fseeko(f,o,w) fseek(f,o,w)
121 121
122int fdprintf(int fd, const char *format, ...); 122int fdprintf(int fd, const char *format, ...);
123FILE* mingw_fopen(const char *filename, const char *mode);
124#define fopen mingw_fopen
123 125
124/* 126/*
125 * ANSI emulation wrappers 127 * ANSI emulation wrappers
@@ -269,6 +271,7 @@ IMPL(fsync,int,0,int fd UNUSED_PARAM);
269NOIMPL(kill,pid_t pid UNUSED_PARAM, int sig UNUSED_PARAM); 271NOIMPL(kill,pid_t pid UNUSED_PARAM, int sig UNUSED_PARAM);
270int link(const char *oldpath, const char *newpath); 272int link(const char *oldpath, const char *newpath);
271NOIMPL(mknod,const char *name UNUSED_PARAM, mode_t mode UNUSED_PARAM, dev_t device UNUSED_PARAM); 273NOIMPL(mknod,const char *name UNUSED_PARAM, mode_t mode UNUSED_PARAM, dev_t device UNUSED_PARAM);
274int mingw_open (const char *filename, int oflags, ...);
272int pipe(int filedes[2]); 275int pipe(int filedes[2]);
273NOIMPL(readlink,const char *path UNUSED_PARAM, char *buf UNUSED_PARAM, size_t bufsiz UNUSED_PARAM); 276NOIMPL(readlink,const char *path UNUSED_PARAM, char *buf UNUSED_PARAM, size_t bufsiz UNUSED_PARAM);
274NOIMPL(setgid,gid_t gid UNUSED_PARAM); 277NOIMPL(setgid,gid_t gid UNUSED_PARAM);
@@ -282,6 +285,7 @@ NOIMPL(vfork,void);
282 285
283#define getcwd mingw_getcwd 286#define getcwd mingw_getcwd
284#define lchown(a,b,c) chown(a,b,c) 287#define lchown(a,b,c) chown(a,b,c)
288#define open mingw_open
285#define unlink mingw_unlink 289#define unlink mingw_unlink
286 290
287/* 291/*