aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-01-31 21:45:57 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-01-31 21:45:57 +0000
commit4acdb46ff17a3dd966ddccdc149cda5a18d51a48 (patch)
treee467e075ec91dd753eb1359d6b350c09ed52d78e /include
parent802cab15e5407269cc3bb3a53fe076e86b62307e (diff)
downloadbusybox-w32-4acdb46ff17a3dd966ddccdc149cda5a18d51a48.tar.gz
busybox-w32-4acdb46ff17a3dd966ddccdc149cda5a18d51a48.tar.bz2
busybox-w32-4acdb46ff17a3dd966ddccdc149cda5a18d51a48.zip
ionice: new applet, adapted from Linux kernel' example by Walter Harms
text data bss dec hex filename 1050316 924 10952 1062192 103530 busybox_old 1050758 924 10952 1062634 1036ea busybox_unstripped
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h10
2 files changed, 10 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h
index 63cc73867..af21a0d4a 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -193,6 +193,7 @@ USE_INOTIFYD(APPLET(inotifyd, _BB_DIR_SBIN, _BB_SUID_NEVER))
193USE_INSMOD(APPLET(insmod, _BB_DIR_SBIN, _BB_SUID_NEVER)) 193USE_INSMOD(APPLET(insmod, _BB_DIR_SBIN, _BB_SUID_NEVER))
194USE_MODPROBE_SMALL(APPLET_ODDNAME(insmod, modprobe, _BB_DIR_SBIN, _BB_SUID_NEVER, modprobe)) 194USE_MODPROBE_SMALL(APPLET_ODDNAME(insmod, modprobe, _BB_DIR_SBIN, _BB_SUID_NEVER, modprobe))
195USE_INSTALL(APPLET(install, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) 195USE_INSTALL(APPLET(install, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
196USE_IONICE(APPLET(ionice, _BB_DIR_BIN, _BB_SUID_NEVER))
196#if ENABLE_FEATURE_IP_ADDRESS \ 197#if ENABLE_FEATURE_IP_ADDRESS \
197 || ENABLE_FEATURE_IP_ROUTE \ 198 || ENABLE_FEATURE_IP_ROUTE \
198 || ENABLE_FEATURE_IP_LINK \ 199 || ENABLE_FEATURE_IP_LINK \
diff --git a/include/usage.h b/include/usage.h
index 9ceb3664f..cfe12c633 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1932,7 +1932,7 @@
1932 1932
1933/* -v, -b, -c are ignored */ 1933/* -v, -b, -c are ignored */
1934#define install_trivial_usage \ 1934#define install_trivial_usage \
1935 "[-cdDsp] [-o USER] [-g GRP] [-m MODE] [source] dest|directory" 1935 "[-cdDsp] [-o USER] [-g GRP] [-m MODE] [source] dest|directory"
1936#define install_full_usage "\n\n" \ 1936#define install_full_usage "\n\n" \
1937 "Copy files and set attributes\n" \ 1937 "Copy files and set attributes\n" \
1938 "\nOptions:" \ 1938 "\nOptions:" \
@@ -1948,6 +1948,14 @@
1948 "\n -Z Set security context" \ 1948 "\n -Z Set security context" \
1949 ) 1949 )
1950 1950
1951#define ionice_trivial_usage \
1952 "[-c 1-3] [-n 0-7] [-p PID] [PROG]"
1953#define ionice_full_usage "\n\n" \
1954 "Change I/O scheduling class and priority\n" \
1955 "\nOptions:" \
1956 "\n -c Class. 1:realtime 2:best-effort 3:idle" \
1957 "\n -n Priority" \
1958
1951/* would need to make the " | " optional depending on more than one selected: */ 1959/* would need to make the " | " optional depending on more than one selected: */
1952#define ip_trivial_usage \ 1960#define ip_trivial_usage \
1953 "[OPTIONS] {" \ 1961 "[OPTIONS] {" \