aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-02-06 01:20:12 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-02-06 01:20:12 +0000
commite84333341b74188d901c2784f00b4c970b419be0 (patch)
treef3e2e2185d092f87843fe4bbc9d1098185a5bdbd /include
parent25a67790a738b7155dc868979c211001148f616f (diff)
downloadbusybox-w32-e84333341b74188d901c2784f00b4c970b419be0.tar.gz
busybox-w32-e84333341b74188d901c2784f00b4c970b419be0.tar.bz2
busybox-w32-e84333341b74188d901c2784f00b4c970b419be0.zip
EXEC_PREFER_APPLETS support by Gabriel L. Somlo <somlo@cmu.edu>
git-svn-id: svn://busybox.net/trunk/busybox@17785 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 7342f89f6..babb39ba9 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -562,12 +562,13 @@ char *find_execable(const char *filename);
562int exists_execable(const char *filename); 562int exists_execable(const char *filename);
563 563
564#ifdef ENABLE_FEATURE_EXEC_PREFER_APPLETS 564#ifdef ENABLE_FEATURE_EXEC_PREFER_APPLETS
565#define BB_EXECVP(prog,cmd) \ 565int bb_execvp(const char *file, char *const argv[]);
566 execvp((find_applet_by_name(prog)) ? CONFIG_BUSYBOX_EXEC_PATH : prog, cmd) 566#define BB_EXECVP(prog,cmd) bb_execvp(prog,cmd)
567#define BB_EXECLP(prog,cmd,...) \ 567#define BB_EXECLP(prog,cmd,...) \
568 execlp((find_applet_by_name(prog)) ? CONFIG_BUSYBOX_EXEC_PATH : prog, cmd, __VA_ARGS__) 568 execlp((find_applet_by_name(prog)) ? CONFIG_BUSYBOX_EXEC_PATH : prog, \
569 cmd, __VA_ARGS__)
569#else 570#else
570#define BB_EXECVP(prog,cmd) execvp(prog,cmd) 571#define BB_EXECVP(prog,cmd) execvp(prog,cmd)
571#define BB_EXECLP(prog,cmd,...) execlp(prog,cmd, __VA_ARGS__) 572#define BB_EXECLP(prog,cmd,...) execlp(prog,cmd, __VA_ARGS__)
572#endif 573#endif
573 574