diff options
author | Denis Vlasenko | 2008-02-27 11:54:59 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-02-27 11:54:59 +0000 |
commit | 5014dada3fa0bb6f6873e28fe6491f0789239cdc (patch) | |
tree | 25cc7ed4e457d924131f3e7cdbab1e187a617639 /include | |
parent | 8195d20e36bfeeb30b3424e2635ba4757ec38137 (diff) | |
download | busybox-5014dada3fa0bb6f6873e28fe6491f0789239cdc.zip busybox-5014dada3fa0bb6f6873e28fe6491f0789239cdc.tar.gz |
script: new applet by Pascal Bellard <pascal.bellard AT ads-lu.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/libbb.h | 1 | ||||
-rw-r--r-- | include/usage.h | 9 |
3 files changed, 11 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index b2e89ee..d4b6dbe 100644 --- a/include/applets.h +++ b/include/applets.h @@ -305,6 +305,7 @@ USE_RUNLEVEL(APPLET(runlevel, _BB_DIR_SBIN, _BB_SUID_NEVER)) USE_RUNSV(APPLET(runsv, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_RUNSVDIR(APPLET(runsvdir, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_RX(APPLET(rx, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) +USE_SCRIPT(APPLET(script, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_SED(APPLET(sed, _BB_DIR_BIN, _BB_SUID_NEVER)) USE_SELINUXENABLED(APPLET(selinuxenabled, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) USE_SENDMAIL(APPLET_ODDNAME(sendmail, sendgetmail, _BB_DIR_USR_BIN, _BB_SUID_NEVER, sendmail)) diff --git a/include/libbb.h b/include/libbb.h index 978cd2d..707e8d6 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -237,6 +237,7 @@ extern int recursive_action(const char *fileName, unsigned flags, int (*dirAction) (const char *fileName, struct stat* statbuf, void* userData, int depth), void* userData, unsigned depth); extern int device_open(const char *device, int mode); +extern int getpty(char *line, int size); extern int get_console_fd(void); extern char *find_block_device(const char *path); /* bb_copyfd_XX print read/write errors and return -1 if they occur */ diff --git a/include/usage.h b/include/usage.h index 95cb69c..4eac174 100644 --- a/include/usage.h +++ b/include/usage.h @@ -3234,6 +3234,15 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when #define rx_example_usage \ "$ rx /tmp/foo\n" +#define script_trivial_usage \ + "[-afq] [-c COMMAND] [OUTFILE]" +#define script_full_usage \ + "Options:" \ + "\n -a Append output" \ + "\n -c Run COMMAND, not shell" \ + "\n -f Flush output after each write" \ + "\n -q Quiet" + #define sed_trivial_usage \ "[-efinr] pattern [files...]" #define sed_full_usage \ |