From 60281118d022a702c62c9047ba6998ef873917d4 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Fri, 2 Nov 2001 11:39:46 +0000 Subject: Introduce od and hexdump applets --- include/applets.h | 6 ++++++ include/usage.h | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) (limited to 'include') 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 \ -- cgit v1.1