diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-14 06:52:06 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-10 19:28:25 +1000 |
commit | 20f590615177543c0d52959516c7984e48397c9b (patch) | |
tree | 65dc276ee72156923842298cdfb872009a3384a7 /include | |
parent | 3d88e4b6c9d3bb7b5eb75575049ed6d06f47bcd9 (diff) | |
download | busybox-w32-20f590615177543c0d52959516c7984e48397c9b.tar.gz busybox-w32-20f590615177543c0d52959516c7984e48397c9b.tar.bz2 busybox-w32-20f590615177543c0d52959516c7984e48397c9b.zip |
win32: Replace stat/lstat
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h index ba73c362e..a828bd835 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -207,8 +207,18 @@ NOIMPL(fchmod,int fildes UNUSED_PARAM, mode_t mode UNUSED_PARAM); | |||
207 | NOIMPL(fchown,int fd UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM); | 207 | NOIMPL(fchown,int fd UNUSED_PARAM, uid_t uid UNUSED_PARAM, gid_t gid UNUSED_PARAM); |
208 | int mingw_mkdir(const char *path, int mode); | 208 | int mingw_mkdir(const char *path, int mode); |
209 | 209 | ||
210 | /* Use mingw_lstat() instead of lstat()/stat() and | ||
211 | * mingw_fstat() instead of fstat() on Windows. | ||
212 | */ | ||
213 | int mingw_lstat(const char *file_name, struct stat *buf); | ||
214 | int mingw_fstat(int fd, struct stat *buf); | ||
215 | |||
210 | #define mkdir mingw_mkdir | 216 | #define mkdir mingw_mkdir |
211 | #define lstat stat | 217 | #define stat(x,y) mingw_lstat(x,y) |
218 | #define lseek _lseeki64 | ||
219 | #define fstat mingw_fstat | ||
220 | #define lstat mingw_lstat | ||
221 | #define _stati64 mingw_lstat | ||
212 | 222 | ||
213 | /* | 223 | /* |
214 | * sys/sysmacros.h | 224 | * sys/sysmacros.h |