aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-13 08:20:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-13 08:20:00 +0000
commitffa4499c9f55e652e71acd0c4e5e9412ede37050 (patch)
tree04379edd4447d751c08c5104ba45d5f21fd8ec2c /include
parent867bd37c7f9f87d622047a2076c9a78c08f71b30 (diff)
downloadbusybox-ffa4499c9f55e652e71acd0c4e5e9412ede37050.tar.gz
man: new applet. ~600 bytes.
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 2e661aca0..2bd70f281 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -237,6 +237,7 @@ USE_LSATTR(APPLET(lsattr, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_LSMOD(APPLET(lsmod, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_UNLZMA(APPLET_ODDNAME(lzmacat, unlzma, _BB_DIR_USR_BIN, _BB_SUID_NEVER, lzmacat))
USE_MAKEDEVS(APPLET(makedevs, _BB_DIR_SBIN, _BB_SUID_NEVER))
+USE_MAN(APPLET(man, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_MATCHPATHCON(APPLET(matchpathcon, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
USE_MD5SUM(APPLET_ODDNAME(md5sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_NEVER, md5sum))
USE_MDEV(APPLET(mdev, _BB_DIR_SBIN, _BB_SUID_NEVER))
diff --git a/include/usage.h b/include/usage.h
index dbe403d13..d1847020b 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2300,6 +2300,14 @@
"/dev/hda[0-15]\n"
#endif
+#define man_trivial_usage \
+ "[OPTION]... [MANPAGE]..."
+#define man_full_usage \
+ "Format and display manual page\n" \
+ "\nOptions:" \
+ "\n -a Display all pages" \
+ "\n -w Show page locations" \
+
#define matchpathcon_trivial_usage \
"[-n] [-N] [-f file_contexts_file] [-p prefix] [-V]"
#define matchpathcon_full_usage \