summaryrefslogtreecommitdiffstats
path: root/bin/dd/args.c
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2000-02-26 21:29:44 +0000
committergreen <green@FreeBSD.org>2000-02-26 21:29:44 +0000
commit708c7f49eb76a27506ad477dfe0eab43e9cc2f2c (patch)
tree0b3a6e6bf3273c0eeaf087c8ae07d8523fa9d401 /bin/dd/args.c
parent9b8b2074975c685e02cccd4939abd1200f82d010 (diff)
downloadFreeBSD-src-708c7f49eb76a27506ad477dfe0eab43e9cc2f2c.zip
FreeBSD-src-708c7f49eb76a27506ad477dfe0eab43e9cc2f2c.tar.gz
Add iseek= and oseek= aliases for the preexisting skip= and seek=
operands. Can _YOU_ tell skip= and seek= apart with 100% accuracy every time? This also seems to make us option-for-option compatible with the Solaris dd(1). Approved by: jkh Suggested by: peter
Diffstat (limited to 'bin/dd/args.c')
-rw-r--r--bin/dd/args.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c
index 418b5cc..9843ddb 100644
--- a/bin/dd/args.c
+++ b/bin/dd/args.c
@@ -82,8 +82,10 @@ static const struct arg {
{ "files", f_files, C_FILES, C_FILES },
{ "ibs", f_ibs, C_IBS, C_BS|C_IBS },
{ "if", f_if, C_IF, C_IF },
+ { "iseek", f_skip, C_SKIP, C_SKIP },
{ "obs", f_obs, C_OBS, C_BS|C_OBS },
{ "of", f_of, C_OF, C_OF },
+ { "oseek", f_seek, C_SEEK, C_SEEK },
{ "seek", f_seek, C_SEEK, C_SEEK },
{ "skip", f_skip, C_SKIP, C_SKIP },
};
OpenPOWER on IntegriCloud