diff options
author | Glenn L McGrath | 2001-11-02 11:39:46 +0000 |
---|---|---|
committer | Glenn L McGrath | 2001-11-02 11:39:46 +0000 |
commit | 60281118d022a702c62c9047ba6998ef873917d4 (patch) | |
tree | c84573dea7b7461c7d2174391911075b1470e86e /include | |
parent | b89637a037c362a4bfef26375bb8cd1ddfdc98e0 (diff) | |
download | busybox-60281118d022a702c62c9047ba6998ef873917d4.zip busybox-60281118d022a702c62c9047ba6998ef873917d4.tar.gz |
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 44d274b..ea196cb 100644 --- a/include/applets.h +++ b/include/applets.h @@ -200,6 +200,9 @@ #ifdef CONFIG_HEAD APPLET(head, head_main, _BB_DIR_USR_BIN) #endif +#ifdef CONFIG_HEXDUMP + APPLET(hexdump, hexdump_main, _BB_DIR_USR_BIN) +#endif #ifdef CONFIG_HOSTID APPLET(hostid, hostid_main, _BB_DIR_USR_BIN) #endif @@ -317,6 +320,9 @@ #ifdef CONFIG_NSLOOKUP APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN) #endif +#ifdef CONFIG_OD + APPLET(od, od_main, _BB_DIR_USR_BIN) +#endif #ifdef CONFIG_PIDOF APPLET(pidof, pidof_main, _BB_DIR_BIN) #endif diff --git a/include/usage.h b/include/usage.h index 46c11c2..12d5e1e 100644 --- a/include/usage.h +++ b/include/usage.h @@ -646,6 +646,23 @@ "root:x:0:0:root:/root:/bin/bash\n" \ "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n" +#define hexdump_trivial_usage \ + "[-[bcdefnosvx]] [OPTION] FILE" +#define hexdump_full_usage \ + "The hexdump utility is a filter which displays the specified files,\n" \ + "or the standard input, if no files are specified, in a user specified\n"\ + "format\n" \ + "\t-b\t\tOne-byte octal display\n" \ + "\t-c\t\tOne-byte character display\n" \ + "\t-d\t\tTwo-byte decimal display\n" \ + "\t-e FORMAT STRING\n" \ + "\t-f FORMAT FILE\n" \ + "\t-n LENGTH\tInterpret only length bytes of input\n" \ + "\t-o\t\tTwo-byte octal display\n" \ + "\t-s OFFSET\tSkip offset byte\n" \ + "\t-v\t\tdisplay all input data\n" \ + "\t-x\t\tTwo-byte hexadecimal display\n" + #define hostid_trivial_usage \ "" #define hostid_full_usage \ @@ -1249,6 +1266,12 @@ "Name: debian\n" \ "Address: 127.0.0.1\n" +#define od_trivial_usage \ + "[-aBbcDdeFfHhIiLlOovXx] [FILE]" +#define od_full_usage \ + "Write an unambiguous representation, octal bytes by default, of FILE\n"\ + "to standard output. With no FILE, or when FILE is -, read standard input." + #define pidof_trivial_usage \ "process-name [process-name ...]" #define pidof_full_usage \ |