diff options
author | Ron Yorston <rmy@pobox.com> | 2018-02-26 10:08:50 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-02-26 10:08:50 +0000 |
commit | 00f2d33f37da42e17e5d978958659c4899cb2f0a (patch) | |
tree | 5d43272aa7c6a4f3be2dd4f9e9d1edf3963ec69d /include | |
parent | 7288179d1218f8e0308455d4d58346aec268eb2e (diff) | |
download | busybox-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.h | 1 |
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); | |||
475 | void init_winsock(void); | 475 | void init_winsock(void); |
476 | 476 | ||
477 | int has_exe_suffix(const char *p); | 477 | int has_exe_suffix(const char *p); |
478 | int has_bat_suffix(const char *p); | ||
478 | char *file_is_win32_executable(const char *p); | 479 | char *file_is_win32_executable(const char *p); |
479 | 480 | ||
480 | int err_win_to_posix(DWORD winerr); | 481 | int err_win_to_posix(DWORD winerr); |