aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2005-02-13 20:14:05 +0000
committerManuel Novoa III <mjn3@codepoet.org>2005-02-13 20:14:05 +0000
commit2c511609c4d92ee4e3e603d449c13579d1ea641a (patch)
treed57c8dd9efa4c30cd01290f878cae688ae792cc0 /include
parentd2fe81706c9d65dd1580c85338036cc403364fae (diff)
downloadbusybox-w32-2c511609c4d92ee4e3e603d449c13579d1ea641a.tar.gz
busybox-w32-2c511609c4d92ee4e3e603d449c13579d1ea641a.tar.bz2
busybox-w32-2c511609c4d92ee4e3e603d449c13579d1ea641a.zip
Add 'nice' and replace 'renice' with a new implementation.
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h18
2 files changed, 17 insertions, 4 deletions
diff --git a/include/applets.h b/include/applets.h
index 90d4195cc..125703216 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -412,6 +412,9 @@
412#ifdef CONFIG_NETSTAT 412#ifdef CONFIG_NETSTAT
413 APPLET(netstat, netstat_main, _BB_DIR_BIN, _BB_SUID_NEVER) 413 APPLET(netstat, netstat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
414#endif 414#endif
415#ifdef CONFIG_NICE
416 APPLET(nice, nice_main, _BB_DIR_BIN, _BB_SUID_NEVER)
417#endif
415#ifdef CONFIG_NSLOOKUP 418#ifdef CONFIG_NSLOOKUP
416 APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) 419 APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
417#endif 420#endif
diff --git a/include/usage.h b/include/usage.h
index c53ead0c7..fd0f68166 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1813,6 +1813,13 @@
1813 "\t-w raw sockets\n" \ 1813 "\t-w raw sockets\n" \
1814 "\t-x unix sockets" 1814 "\t-x unix sockets"
1815 1815
1816#define nice_trivial_usage \
1817 "[-n ADJUST] [COMMAND [ARG] ...]"
1818#define nice_full_usage \
1819 "Nice runs a program with modified scheduling priority.\n\n" \
1820 "Options:\n" \
1821 "\t-n ADJUST\tAdjust the scheduling priority by ADJUST.\n" \
1822
1816#define nslookup_trivial_usage \ 1823#define nslookup_trivial_usage \
1817 "[HOST] [SERVER]" 1824 "[HOST] [SERVER]"
1818#define nslookup_full_usage \ 1825#define nslookup_full_usage \
@@ -2011,11 +2018,14 @@
2011 "\t-d\t\tdelay interval for rebooting." 2018 "\t-d\t\tdelay interval for rebooting."
2012 2019
2013#define renice_trivial_usage \ 2020#define renice_trivial_usage \
2014 "priority pid [pid ...]" 2021 "{{-n INCREMENT} | PRIORITY} [[ -p | -g | -u ] ID ...]"
2015#define renice_full_usage \ 2022#define renice_full_usage \
2016 "Changes priority of running processes. Allowed priorities range\n" \ 2023 "Changes priority of running processes.\n\n" \
2017 "from 20 (the process runs only when nothing else is running) to 0\n" \ 2024 "Options:\n" \
2018 "(default priority) to -20 (almost nothing else ever gets to run)." 2025 "\t-n\tadjusts current nice value (smaller is faster)\n" \
2026 "\t-p\tprocess id(s) (default)\n" \
2027 "\t-g\tprocess group id(s)\n" \
2028 "\t-u\tprocess user name(s) and/or id(s)"
2019 2029
2020#define reset_trivial_usage \ 2030#define reset_trivial_usage \
2021 "" 2031 ""