aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-05-09 11:20:06 +0100
committerRon Yorston <rmy@pobox.com>2012-05-09 15:00:05 +0100
commitf2459f232790aab0434d1cc6471ea62bc193e636 (patch)
tree876d184a89f20b9e23d24020dbb3f6f01b519768 /include
parent0c9c04defd7b21aab1f18eaabd2f461b6a425964 (diff)
downloadbusybox-w32-f2459f232790aab0434d1cc6471ea62bc193e636.tar.gz
busybox-w32-f2459f232790aab0434d1cc6471ea62bc193e636.tar.bz2
busybox-w32-f2459f232790aab0434d1cc6471ea62bc193e636.zip
mingw32: make access(2) check file format for executables
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 08d776c84..1ef13c638 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -337,6 +337,7 @@ static inline void sync(void) {}
337NOIMPL(ttyname_r,int fd UNUSED_PARAM, char *buf UNUSED_PARAM, int sz UNUSED_PARAM); 337NOIMPL(ttyname_r,int fd UNUSED_PARAM, char *buf UNUSED_PARAM, int sz UNUSED_PARAM);
338int mingw_unlink(const char *pathname); 338int mingw_unlink(const char *pathname);
339NOIMPL(vfork,void); 339NOIMPL(vfork,void);
340int mingw_access(const char *name, int mode);
340 341
341#define dup2 mingw_dup2 342#define dup2 mingw_dup2
342#define getcwd mingw_getcwd 343#define getcwd mingw_getcwd
@@ -344,6 +345,9 @@ NOIMPL(vfork,void);
344#define open mingw_open 345#define open mingw_open
345#define unlink mingw_unlink 346#define unlink mingw_unlink
346 347
348#undef access
349#define access mingw_access
350
347/* 351/*
348 * utime.h 352 * utime.h
349 */ 353 */