summaryrefslogtreecommitdiffstats
path: root/usr.bin/mt
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-08-21 05:49:29 +0000
committerjoerg <joerg@FreeBSD.org>1997-08-21 05:49:29 +0000
commit9f76c14f850254bb5f2c99276b0938d9288fa26a (patch)
treea4275b01cd9ad2c086b99dae4c432d598ff72b30 /usr.bin/mt
parent21623b13bca01fa8ec9a427bb7ffbfa0c1d0e339 (diff)
downloadFreeBSD-src-9f76c14f850254bb5f2c99276b0938d9288fa26a.zip
FreeBSD-src-9f76c14f850254bb5f2c99276b0938d9288fa26a.tar.gz
Implement "eod" as an alias for "eom". HP-UX uses this name, for
example. Also cleaned up the man page a little.
Diffstat (limited to 'usr.bin/mt')
-rw-r--r--usr.bin/mt/mt.132
-rw-r--r--usr.bin/mt/mt.c3
2 files changed, 24 insertions, 11 deletions
diff --git a/usr.bin/mt/mt.1 b/usr.bin/mt/mt.1
index 8210d54..4607e46 100644
--- a/usr.bin/mt/mt.1
+++ b/usr.bin/mt/mt.1
@@ -110,9 +110,13 @@ string has been taken for.
.It Cm eom
Forward space to end of recorded medium
(Count is ignored).
+.It Cm eod
+Forward space to end of data, identical to
+.Cm eom .
.It Cm comp
Set compression mode.
-(Not yet implemented.)
+(The kernel counterpart of this has not yet been reported to work
+correctly.)
.El
.Pp
If a tape name is not specified, and the environment variable
@@ -195,16 +199,16 @@ argument
.Ar tapename
is not given.
.Sh FILES
-.Bl -tag -width /dev/rwt* -compact
-.It Pa /dev/rwt*
-Raw magnetic tape interface
-.It Pa /dev/*st[0-9]*
+.Bl -tag -width /dev/*rst[0-9]*xx -compact
+.It Pa /dev/*rwt*
+QIC-02/QIC-36 magnetic tape interface
+.It Pa /dev/*rst[0-9]*
SCSI magnetic tape interface
.El
.Sh SEE ALSO
-.\".Xr mtio 4 ,
+.Xr mtio 4 ,
.Xr st 4 ,
-.\".Xr wt 4 ,
+.Xr wt 4 ,
.Xr dd 1 ,
.Xr ioctl 2 ,
.Xr environ 7
@@ -213,7 +217,7 @@ The
.Nm
command appeared in
.Bx 4.3 .
-
+.Pp
Extensions regarding the
.Xr st 4
driver appeared in 386BSD 0.1 as a separate
@@ -222,5 +226,13 @@ command, and have been merged into the
.Nm
command in
.Fx 2.1 .
-.\" mt.1: mtio(4) missing
-.\" mt.1: wt(4) missing
+.Pp
+The former
+.Cm eof
+command that used to be a synonym for
+.Cm weof
+has been abandoned in
+.Fx 2.1
+since it was often confused with
+.Cm eom ,
+which is fairly dangerous.
diff --git a/usr.bin/mt/mt.c b/usr.bin/mt/mt.c
index 8750759..8976dc6 100644
--- a/usr.bin/mt/mt.c
+++ b/usr.bin/mt/mt.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)mt.c 8.2 (Berkeley) 5/4/95";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: mt.c,v 1.12 1997/07/29 06:49:16 charnier Exp $";
#endif /* not lint */
/*
@@ -99,6 +99,7 @@ struct commands {
{ "blocksize", MTSETBSIZ, 0, NEED_2ARGS|ZERO_ALLOWED },
{ "density", MTSETDNSTY, 0, NEED_2ARGS|ZERO_ALLOWED|IS_DENSITY },
{ "eom", MTEOD, 1 },
+ { "eod", MTEOD, 1 },
{ "comp", MTCOMP, 0, NEED_2ARGS|ZERO_ALLOWED },
{ "retension", MTRETENS, 1 },
#endif /* defined(__FreeBSD__) */
OpenPOWER on IntegriCloud