From 9f76c14f850254bb5f2c99276b0938d9288fa26a Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 21 Aug 1997 05:49:29 +0000 Subject: Implement "eod" as an alias for "eom". HP-UX uses this name, for example. Also cleaned up the man page a little. --- usr.bin/mt/mt.1 | 32 ++++++++++++++++++++++---------- usr.bin/mt/mt.c | 3 ++- 2 files changed, 24 insertions(+), 11 deletions(-) (limited to 'usr.bin/mt') 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__) */ -- cgit v1.1