Source-Changes-HG archive

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

[src/trunk]: src/bin/mt Add "setblk" as alias for "blocksize" and "setdensity...



details:   https://anonhg.NetBSD.org/src/rev/900f7240e6f4
branches:  trunk
changeset: 474812:900f7240e6f4
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Jul 21 17:10:08 1999 +0000

description:
Add "setblk" as alias for "blocksize" and "setdensity" as alias for
"density". This makes life easier for people which use NetBSD and Linux.

diffstat:

 bin/mt/mt.1 |  6 +++---
 bin/mt/mt.c |  6 ++++--
 2 files changed, 7 insertions(+), 5 deletions(-)

diffs (53 lines):

diff -r 6425e334d1f5 -r 900f7240e6f4 bin/mt/mt.1
--- a/bin/mt/mt.1       Wed Jul 21 15:20:55 1999 +0000
+++ b/bin/mt/mt.1       Wed Jul 21 17:10:08 1999 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mt.1,v 1.20 1999/03/22 18:30:45 garbled Exp $
+.\"    $NetBSD: mt.1,v 1.21 1999/07/21 17:10:08 tron Exp $
 .\"
 .\" Copyright (c) 1981, 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -128,14 +128,14 @@
 .It Cm eom
 Forward space to the end of the media
 (Count is ignored).
-.It Cm blocksize
+.It Cm blocksize , setblk
 Set the tape blocksize to
 .Ar count
 bytes.
 A
 .Ar count
 of zero sets variable blocksize.
-.It Cm density
+.It Cm density , setdensity
 Set the tape density code to
 .Ar count
 as specified in the
diff -r 6425e334d1f5 -r 900f7240e6f4 bin/mt/mt.c
--- a/bin/mt/mt.c       Wed Jul 21 15:20:55 1999 +0000
+++ b/bin/mt/mt.c       Wed Jul 21 17:10:08 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mt.c,v 1.30 1999/03/02 21:02:08 christos Exp $ */
+/*     $NetBSD: mt.c,v 1.31 1999/07/21 17:10:08 tron Exp $     */
 
 /*
  * Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)mt.c       8.2 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: mt.c,v 1.30 1999/03/02 21:02:08 christos Exp $");
+__RCSID("$NetBSD: mt.c,v 1.31 1999/07/21 17:10:08 tron Exp $");
 #endif
 #endif /* not lint */
 
@@ -96,6 +96,8 @@
        { "retension",  MTIOCTOP,     MTRETEN,    1,  0 },
        { "rewind",     MTIOCTOP,     MTREW,      1,  0 },
        { "rewoffl",    MTIOCTOP,     MTOFFL,     1,  0 },
+       { "setblk",     MTIOCTOP,     MTSETBSIZ,  1,  0 },
+       { "setdensity", MTIOCTOP,     MTSETDNSTY, 1,  0 },
        { "sethpos",    MTIOCHLOCATE, 0,          1,  0 },
        { "setspos",    MTIOCSLOCATE, 0,          1,  0 },
        { "status",     MTIOCGET,     MTNOP,      1,  0 },



Home | Main Index | Thread Index | Old Index