aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-02-26 10:08:50 +0000
committerRon Yorston <rmy@pobox.com>2018-02-26 10:08:50 +0000
commit00f2d33f37da42e17e5d978958659c4899cb2f0a (patch)
tree5d43272aa7c6a4f3be2dd4f9e9d1edf3963ec69d /include
parent7288179d1218f8e0308455d4d58346aec268eb2e (diff)
downloadbusybox-w32-00f2d33f37da42e17e5d978958659c4899cb2f0a.tar.gz
busybox-w32-00f2d33f37da42e17e5d978958659c4899cb2f0a.tar.bz2
busybox-w32-00f2d33f37da42e17e5d978958659c4899cb2f0a.zip
win32: add support for batch files
Support batch files with .bat and .cmd extensions, similar to what's done for .exe and .com. Check extensions in the same order as Windows' spawn function: .com, .exe, .bat, .cmd.
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 8f7e529ba..09c140d31 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -475,6 +475,7 @@ const char *get_busybox_exec_path(void);
475void init_winsock(void); 475void init_winsock(void);
476 476
477int has_exe_suffix(const char *p); 477int has_exe_suffix(const char *p);
478int has_bat_suffix(const char *p);
478char *file_is_win32_executable(const char *p); 479char *file_is_win32_executable(const char *p);
479 480
480int err_win_to_posix(DWORD winerr); 481int err_win_to_posix(DWORD winerr);