Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/dd Add iseek and oseek option as aliases for skip and se...



details:   https://anonhg.NetBSD.org/src/rev/fd1aa0b43b3d
branches:  trunk
changeset: 759974:fd1aa0b43b3d
user:      enami <enami%NetBSD.org@localhost>
date:      Wed Dec 22 09:42:53 2010 +0000

description:
Add iseek and oseek option as aliases for skip and seek respectively.
These options exist in dd of solaris or svr3.  From FreeBSD.

diffstat:

 bin/dd/args.c |   6 ++++--
 bin/dd/dd.1   |  16 ++++++++++++++--
 2 files changed, 18 insertions(+), 4 deletions(-)

diffs (73 lines):

diff -r 9766442e3456 -r fd1aa0b43b3d bin/dd/args.c
--- a/bin/dd/args.c     Wed Dec 22 09:39:06 2010 +0000
+++ b/bin/dd/args.c     Wed Dec 22 09:42:53 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: args.c,v 1.31 2010/12/22 09:39:06 enami Exp $  */
+/*     $NetBSD: args.c,v 1.32 2010/12/22 09:42:53 enami Exp $  */
 
 /*-
  * Copyright (c) 1991, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)args.c     8.3 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: args.c,v 1.31 2010/12/22 09:39:06 enami Exp $");
+__RCSID("$NetBSD: args.c,v 1.32 2010/12/22 09:42:53 enami Exp $");
 #endif
 #endif /* not lint */
 
@@ -97,8 +97,10 @@
        { "files",      f_files,        C_FILES, C_FILES },
        { "ibs",        f_ibs,          C_IBS,   C_BS|C_IBS },
        { "if",         f_if,           C_IF,    C_IF|C_RIF },
+       { "iseek",      f_skip,         C_SKIP,  C_SKIP },
        { "obs",        f_obs,          C_OBS,   C_BS|C_OBS },
        { "of",         f_of,           C_OF,    C_OF|C_ROF },
+       { "oseek",      f_seek,         C_SEEK,  C_SEEK },
        { "progress",   f_progress,     0,       0 },
 #ifdef _HAVE_RUMPOPS
        { "rif",        f_rif,          C_RIF|C_RUMP,    C_RIF|C_IF },
diff -r 9766442e3456 -r fd1aa0b43b3d bin/dd/dd.1
--- a/bin/dd/dd.1       Wed Dec 22 09:39:06 2010 +0000
+++ b/bin/dd/dd.1       Wed Dec 22 09:42:53 2010 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: dd.1,v 1.22 2009/03/11 12:43:58 joerg Exp $
+.\"    $NetBSD: dd.1,v 1.23 2010/12/22 09:42:53 enami Exp $
 .\"
 .\" Copyright (c) 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -32,7 +32,7 @@
 .\"
 .\"    @(#)dd.1        8.2 (Berkeley) 1/13/94
 .\"
-.Dd April 13, 2007
+.Dd December 22, 2010
 .Dt DD 1
 .Os
 .Sh NAME
@@ -91,6 +91,12 @@
 Read input from
 .Ar file
 instead of the standard input.
+.It Cm iseek= Ns Ar n
+Seek on the input file
+.Ar n
+blocks.
+This is synonymous with
+.Cm skip= Ns Ar n .
 .It Cm obs= Ns Ar n
 Set the output block size to
 .Va n
@@ -106,6 +112,12 @@
 .Cm seek
 operand)
 the output file is truncated at that point.
+.It Cm oseek= Ns Ar n
+Seek on the output file
+.Ar n
+blocks.
+This is synonymous with
+.Cm seek= Ns Ar n .
 .It Cm seek= Ns Ar n
 Seek
 .Va n



Home | Main Index | Thread Index | Old Index