Module Name:    src
Committed By:   enami
Date:           Wed Dec 22 09:42:53 UTC 2010

Modified Files:
        src/bin/dd: args.c dd.1

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


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/bin/dd/args.c
cvs rdiff -u -r1.22 -r1.23 src/bin/dd/dd.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/dd/args.c
diff -u src/bin/dd/args.c:1.31 src/bin/dd/args.c:1.32
--- src/bin/dd/args.c:1.31	Wed Dec 22 09:39:06 2010
+++ src/bin/dd/args.c	Wed Dec 22 09:42:53 2010
@@ -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 },

Index: src/bin/dd/dd.1
diff -u src/bin/dd/dd.1:1.22 src/bin/dd/dd.1:1.23
--- src/bin/dd/dd.1:1.22	Wed Mar 11 12:43:58 2009
+++ src/bin/dd/dd.1	Wed Dec 22 09:42:53 2010
@@ -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

Reply via email to