summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger2006-02-21 04:26:52 +0000
committerMike Frysinger2006-02-21 04:26:52 +0000
commit0a6b0bfa7a821b594d237611e3f1effb1b3692fc (patch)
tree5313b93950024acfa71e58b53375957199ab9586 /include
parentea6360e3938d016b2dfa6d0cbc9c9577070dca75 (diff)
downloadbusybox-0a6b0bfa7a821b594d237611e3f1effb1b3692fc.zip
busybox-0a6b0bfa7a821b594d237611e3f1effb1b3692fc.tar.gz
add setarch/linux32/linux64 applet
Diffstat (limited to 'include')
-rw-r--r--include/applets.h7
-rw-r--r--include/usage.h7
2 files changed, 14 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 6eb5cfd..e952ac4 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -378,6 +378,10 @@
#ifdef CONFIG_FEATURE_INITRD
APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_SETARCH
+ APPLET_NOUSAGE("linux32", setarch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
+ APPLET_NOUSAGE("linux64", setarch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_LN
APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
@@ -586,6 +590,9 @@
#ifdef CONFIG_SEQ
APPLET(seq, seq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_SETARCH
+ APPLET(setarch, setarch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_SETCONSOLE
APPLET(setconsole, setconsole_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
#endif
diff --git a/include/usage.h b/include/usage.h
index 22beead..63cd79f 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1626,6 +1626,13 @@
"\t\treached.\n" \
"\t-h, -?\tDisplay this help message\n"
+#define setarch_trivial_usage \
+ "<personality> <program> [args ...]"
+#define setarch_full_usage \
+ "Personality may be:\n" \
+ "\tlinux32\tSet 32bit uname emulation\n" \
+ "\tlinux64\tSet 64bit uname emulation"
+
#define ln_trivial_usage \
"[OPTION] TARGET... LINK_NAME|DIRECTORY"
#define ln_full_usage \