1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/sysutils/sdd/files/patch-ab
Steve Price 079b2fc2f4 Initial import of sdd version 1.22.
A faster and improved version of dd.

PR:		11718
Submitted by:	Christian Weisgerber <naddy@mips.rhein-neckar.de>
1999-06-09 00:51:12 +00:00

28 lines
804 B
Plaintext

--- sdd/sdd.c.orig Wed May 5 17:54:07 1999
+++ sdd/sdd.c Wed May 5 17:56:34 1999
@@ -1378,11 +1378,13 @@
usage(ex)
int ex;
{
- error("\
+ FILE *fp = ex ? stderr : stdout;
+
+ fprintf(fp, "\
Usage: sdd [option=value] [-flag]\n\
Options:\n\
");
- error ("\
+ fprintf(fp, "\
if=name Read input from name instead of stdin\n\
of=name Write output to name instead of stdout\n\
-inull Do not read input from file (use null char's)\n\
@@ -1396,7 +1398,7 @@
seek=#,skip=# Seek/skip # bytes on input/output before starting\n\
ivseek=#,ovseek=# Seek # bytes on input/output volumes before starting\n\
");
- error("\
+ fprintf(fp, "\
-notrunc Do not trunctate existing output file\n\
-pg Print a dot on each write to indicate progress\n\
-noerror Do not stop on error\n\