diff options
author | Denis Vlasenko | 2007-02-06 01:20:12 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-02-06 01:20:12 +0000 |
commit | 1d76f439da81d3a05f0e0fdde3f81ec56fb20836 (patch) | |
tree | f3e2e2185d092f87843fe4bbc9d1098185a5bdbd /include/libbb.h | |
parent | cc24419e98853aede7c652edb3c1c79a9865bdda (diff) | |
download | busybox-1d76f439da81d3a05f0e0fdde3f81ec56fb20836.zip busybox-1d76f439da81d3a05f0e0fdde3f81ec56fb20836.tar.gz |
EXEC_PREFER_APPLETS support by Gabriel L. Somlo <somlo@cmu.edu>
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h index 7342f89..babb39b 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -562,12 +562,13 @@ char *find_execable(const char *filename); int exists_execable(const char *filename); #ifdef ENABLE_FEATURE_EXEC_PREFER_APPLETS -#define BB_EXECVP(prog,cmd) \ - execvp((find_applet_by_name(prog)) ? CONFIG_BUSYBOX_EXEC_PATH : prog, cmd) +int bb_execvp(const char *file, char *const argv[]); +#define BB_EXECVP(prog,cmd) bb_execvp(prog,cmd) #define BB_EXECLP(prog,cmd,...) \ - execlp((find_applet_by_name(prog)) ? CONFIG_BUSYBOX_EXEC_PATH : prog, cmd, __VA_ARGS__) + execlp((find_applet_by_name(prog)) ? CONFIG_BUSYBOX_EXEC_PATH : prog, \ + cmd, __VA_ARGS__) #else -#define BB_EXECVP(prog,cmd) execvp(prog,cmd) +#define BB_EXECVP(prog,cmd) execvp(prog,cmd) #define BB_EXECLP(prog,cmd,...) execlp(prog,cmd, __VA_ARGS__) #endif |