aboutsummaryrefslogtreecommitdiff
path: root/bin/dd/gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dd/gen.c')
-rw-r--r--bin/dd/gen.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/dd/gen.c b/bin/dd/gen.c
new file mode 100644
index 000000000000..01e0f61b27b1
--- /dev/null
+++ b/bin/dd/gen.c
@@ -0,0 +1,22 @@
+/*-
+ * This program is in the public domain
+ */
+
+#include <stdio.h>
+#include <string.h>
+
+int
+main(int argc, char **argv)
+{
+ int i;
+
+ if (argc > 1 && !strcmp(argv[1], "189284")) {
+ fputs("ABCDEFGH", stdout);
+ for (i = 0; i < 8; i++)
+ putchar(0);
+ } else {
+ for (i = 0; i < 256; i++)
+ putchar(i);
+ }
+ return (0);
+}