diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-11-02 11:39:46 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-11-02 11:39:46 +0000 |
commit | 60281118d022a702c62c9047ba6998ef873917d4 (patch) | |
tree | c84573dea7b7461c7d2174391911075b1470e86e /include | |
parent | b89637a037c362a4bfef26375bb8cd1ddfdc98e0 (diff) | |
download | busybox-w32-60281118d022a702c62c9047ba6998ef873917d4.tar.gz busybox-w32-60281118d022a702c62c9047ba6998ef873917d4.tar.bz2 busybox-w32-60281118d022a702c62c9047ba6998ef873917d4.zip |
Introduce od and hexdump applets
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 6 | ||||
-rw-r--r-- | include/usage.h | 23 |
2 files changed, 29 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index 44d274b85..ea196cb66 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -200,6 +200,9 @@ | |||
200 | #ifdef CONFIG_HEAD | 200 | #ifdef CONFIG_HEAD |
201 | APPLET(head, head_main, _BB_DIR_USR_BIN) | 201 | APPLET(head, head_main, _BB_DIR_USR_BIN) |
202 | #endif | 202 | #endif |
203 | #ifdef CONFIG_HEXDUMP | ||
204 | APPLET(hexdump, hexdump_main, _BB_DIR_USR_BIN) | ||
205 | #endif | ||
203 | #ifdef CONFIG_HOSTID | 206 | #ifdef CONFIG_HOSTID |
204 | APPLET(hostid, hostid_main, _BB_DIR_USR_BIN) | 207 | APPLET(hostid, hostid_main, _BB_DIR_USR_BIN) |
205 | #endif | 208 | #endif |
@@ -317,6 +320,9 @@ | |||
317 | #ifdef CONFIG_NSLOOKUP | 320 | #ifdef CONFIG_NSLOOKUP |
318 | APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN) | 321 | APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN) |
319 | #endif | 322 | #endif |
323 | #ifdef CONFIG_OD | ||
324 | APPLET(od, od_main, _BB_DIR_USR_BIN) | ||
325 | #endif | ||
320 | #ifdef CONFIG_PIDOF | 326 | #ifdef CONFIG_PIDOF |
321 | APPLET(pidof, pidof_main, _BB_DIR_BIN) | 327 | APPLET(pidof, pidof_main, _BB_DIR_BIN) |
322 | #endif | 328 | #endif |
diff --git a/include/usage.h b/include/usage.h index 46c11c2a3..12d5e1ed5 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -646,6 +646,23 @@ | |||
646 | "root:x:0:0:root:/root:/bin/bash\n" \ | 646 | "root:x:0:0:root:/root:/bin/bash\n" \ |
647 | "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n" | 647 | "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n" |
648 | 648 | ||
649 | #define hexdump_trivial_usage \ | ||
650 | "[-[bcdefnosvx]] [OPTION] FILE" | ||
651 | #define hexdump_full_usage \ | ||
652 | "The hexdump utility is a filter which displays the specified files,\n" \ | ||
653 | "or the standard input, if no files are specified, in a user specified\n"\ | ||
654 | "format\n" \ | ||
655 | "\t-b\t\tOne-byte octal display\n" \ | ||
656 | "\t-c\t\tOne-byte character display\n" \ | ||
657 | "\t-d\t\tTwo-byte decimal display\n" \ | ||
658 | "\t-e FORMAT STRING\n" \ | ||
659 | "\t-f FORMAT FILE\n" \ | ||
660 | "\t-n LENGTH\tInterpret only length bytes of input\n" \ | ||
661 | "\t-o\t\tTwo-byte octal display\n" \ | ||
662 | "\t-s OFFSET\tSkip offset byte\n" \ | ||
663 | "\t-v\t\tdisplay all input data\n" \ | ||
664 | "\t-x\t\tTwo-byte hexadecimal display\n" | ||
665 | |||
649 | #define hostid_trivial_usage \ | 666 | #define hostid_trivial_usage \ |
650 | "" | 667 | "" |
651 | #define hostid_full_usage \ | 668 | #define hostid_full_usage \ |
@@ -1249,6 +1266,12 @@ | |||
1249 | "Name: debian\n" \ | 1266 | "Name: debian\n" \ |
1250 | "Address: 127.0.0.1\n" | 1267 | "Address: 127.0.0.1\n" |
1251 | 1268 | ||
1269 | #define od_trivial_usage \ | ||
1270 | "[-aBbcDdeFfHhIiLlOovXx] [FILE]" | ||
1271 | #define od_full_usage \ | ||
1272 | "Write an unambiguous representation, octal bytes by default, of FILE\n"\ | ||
1273 | "to standard output. With no FILE, or when FILE is -, read standard input." | ||
1274 | |||
1252 | #define pidof_trivial_usage \ | 1275 | #define pidof_trivial_usage \ |
1253 | "process-name [process-name ...]" | 1276 | "process-name [process-name ...]" |
1254 | #define pidof_full_usage \ | 1277 | #define pidof_full_usage \ |