aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2001-06-22 09:22:06 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2001-06-22 09:22:06 +0000
commit8f5b63edea12501b998400789da5646140bb9911 (patch)
tree5a1924092009892cc80f0b0947ec1bae17ca3b1c /include
parent52a97ca00cf5d290c9beb65ba7c217a5ed69ee42 (diff)
downloadbusybox-8f5b63edea12501b998400789da5646140bb9911.tar.gz
cpio applet, and changes to associated code
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h12
2 files changed, 15 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 0fd89c71a..88aec8ad1 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -83,6 +83,9 @@
#ifdef BB_CP
APPLET(cp, cp_main, _BB_DIR_BIN)
#endif
+#ifdef BB_CPIO
+ APPLET(cpio, cpio_main, _BB_DIR_BIN)
+#endif
#ifdef BB_CUT
APPLET(cut, cut_main, _BB_DIR_USR_BIN)
#endif
diff --git a/include/usage.h b/include/usage.h
index 9fd3a2e1c..51a06b977 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -129,6 +129,18 @@
"\t-f\tforce (implied; ignored) - always set\n" \
"\t-R\tCopies directories recursively"
+#define cpio_trivial_usage \
+ "-[dimtuv][F cpiofile]"
+#define cpio_full_usage \
+ "Extract or list files from a cpio archive\n" \
+ "Main operation mode:\n" \
+ "\td\t\tmake directories (assumed)\n" \
+ "\ti\t\textract\n" \
+ "\tm\t\tpreserve time\n" \
+ "\tt\t\tlist\n" \
+ "\tu\t\tunconditional (assumed)\t" \
+ "\tF\t\tinput from file\t"
+
#define cut_trivial_usage \
"[OPTION]... [FILE]..."
#define cut_full_usage \