diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-10 17:57:36 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-10 19:27:55 +1000 |
commit | 5161fa8edd5a84f5b02898f13f343254c68eca23 (patch) | |
tree | 64f125651f309dbebfbfe0b268160637d1e311f5 /include | |
parent | fa37e9da4b02810eedbb0ac82e8cd0b99336aa82 (diff) | |
download | busybox-w32-5161fa8edd5a84f5b02898f13f343254c68eca23.tar.gz busybox-w32-5161fa8edd5a84f5b02898f13f343254c68eca23.tar.bz2 busybox-w32-5161fa8edd5a84f5b02898f13f343254c68eca23.zip |
win32: add shell script and internal applet execution to spawn* and exec*
Most of this was extracted from commit
e56b799d6ad8afba4168fffa7218d44c041a72d2
in Git repository.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index fd9630a58..f9773a9a2 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -299,6 +299,16 @@ NOIMPL(utimes,const char *filename UNUSED_PARAM, const struct timeval times[2] U | |||
299 | #define is_dir_sep(c) ((c) == '/' || (c) == '\\') | 299 | #define is_dir_sep(c) ((c) == '/' || (c) == '\\') |
300 | #define PRIuMAX "I64u" | 300 | #define PRIuMAX "I64u" |
301 | 301 | ||
302 | pid_t mingw_spawn(char **argv); | ||
303 | int mingw_execv(const char *cmd, const char *const *argv); | ||
304 | int mingw_execvp(const char *cmd, const char *const *argv); | ||
305 | int mingw_execve(const char *cmd, const char *const *argv, const char *const *envp); | ||
306 | pid_t mingw_spawn_applet(int mode, const char *applet, const char *const *argv, const char *const *envp); | ||
307 | pid_t mingw_spawn_1(int mode, const char *cmd, const char *const *argv, const char *const *envp); | ||
308 | #define execvp mingw_execvp | ||
309 | #define execve mingw_execve | ||
310 | #define execv mingw_execv | ||
311 | |||
302 | /* | 312 | /* |
303 | * helpers | 313 | * helpers |
304 | */ | 314 | */ |