aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-09 16:56:38 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-09 16:56:38 +0000
commit71bc71a7dc2601b1d9beb73ee1f178da1733788e (patch)
tree0dba091508cc1a72f77a0c6eae2afed1d0d550aa /include
parent339f5eb2e0676da591150015e157c38c4ab52a3e (diff)
downloadbusybox-71bc71a7dc2601b1d9beb73ee1f178da1733788e.tar.gz
- add chrt applet.
text data bss dec hex filename 769 0 0 769 301 miscutils/chrt.o and could use some further shrinkage
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h16
2 files changed, 17 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index d1bf0f36b..214e63aa2 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -74,6 +74,7 @@ USE_CHMOD(APPLET(chmod, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_CHOWN(APPLET(chown, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_CHPST(APPLET(chpst, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_CHROOT(APPLET(chroot, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
+USE_CHRT(APPLET(chrt, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_CHVT(APPLET(chvt, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_CKSUM(APPLET(cksum, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_CLEAR(APPLET(clear, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
diff --git a/include/usage.h b/include/usage.h
index d8faa4f12..4d1ecb8f5 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -382,6 +382,22 @@
#define bbsh_full_usage \
"The bbsh shell (command interpreter)"
+#define chrt_trivial_usage \
+ "[OPTION]... [prio] [pid | command [arg]...]"
+#define chrt_full_usage \
+ "manipulate real-time attributes of a process" \
+ "\n\nOptions:\n" \
+ " -p operate on pid\n" \
+ " -r set scheduling policy to SCHED_RR\n" \
+ " -f set scheduling policy to SCHED_FIFO\n" \
+ " -o set scheduling policy to SCHED_OTHER\n" \
+ " -m show min and max priorities"
+
+#define chrt_example_usage \
+ "$ chrt -r 4 sleep 900 ; x=$!\n" \
+ "$ chrt -f -p 3 $x\n" \
+ "You need CAP_SYS_NICE privileges to set scheduling attributes of a process"
+
#define cp_trivial_usage \
"[OPTION]... SOURCE DEST"
#define cp_full_usage \