Dimitry Andric
f3fbaba136
In usr.bin/mt/mt.c, the c_code member of struct commands should really
...
be an unsigned long, since it will contain values of ioctl request
codes. On 64-bit arches, these will not fit into an int.
MFC after: 1 week
2011-12-17 02:23:30 +00:00
Ed Schouten
0e5d3f8e6c
Add missing static keywords to mt(1)
2011-11-06 08:16:18 +00:00
Joel Dahl
da52b4caaf
Remove the advertising clause from UCB copyrighted files in usr.bin. This
...
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $FreeBSD$ to a few files to keep svn happy.
Discussed with: imp, rwatson
2010-12-11 08:32:16 +00:00
David Malone
93aa4a7665
Const poision, deregister and use ANSI definitions.
2005-11-13 20:50:17 +00:00
Maxime Henrion
1aefe0e32e
Backout previous commit. It seems this comment applied to something
...
else than I thought, and thus really needs to go away.
Noticed by: ru
2004-04-09 17:30:26 +00:00
Maxime Henrion
92375a1cb9
Reintroduce a comment that was wrongly removed in revision 1.34.
2004-04-09 14:19:12 +00:00
Ruslan Ermilov
1a490c95d2
Catch up with the removal of the wt(4) driver.
2004-03-14 12:09:43 +00:00
Joerg Wunsch
75e861d635
Add information about the SDLT density codes.
...
Submitted by: "Stewart MacLund" <sundie@lunaticfringe.org>
MFC after: 1 week
2002-10-15 12:53:29 +00:00
Joerg Wunsch
bd275d1aed
Add definitions for the industry-standard DLT density codes.
...
Obtained from: Quantum DLT8000 manual
MFC after: 1 week
2002-07-09 11:26:09 +00:00
Philippe Charnier
7151087354
Make `make WARNS=3' succeed, notably, use %d to printf daddr_t value.
...
Use `.Nm Ns .' instead of `.Nm .' Add FBSDID. Do not put spaces inside []
in usage string.
2002-04-12 13:16:04 +00:00
Warner Losh
d3cb5ded92
remove __P
2002-03-22 01:33:25 +00:00
Poul-Henning Kamp
d485631b6c
Unifdef __FreeBSD__
...
MD5 checksum of binary unchanged.
2002-03-20 07:44:09 +00:00
Matt Jacob
c310386321
Print out resid portion of MTIOCGET returned data.
2001-01-21 01:33:31 +00:00
Kris Kennaway
40c068176d
Constify
2000-11-27 06:40:35 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Matt Jacob
dc06ef2775
add and document seteotmodel and geteotmodel commands
1999-05-10 20:05:19 +00:00
Matt Jacob
e945d9a010
Fixes alignment of blocksize field to be prettier if
...
longest density code && density name is used.
Obtained from: Ken Merry
1999-03-10 18:42:20 +00:00
Matt Jacob
3460adb2ef
get rid of space padding for compression
1999-03-10 00:48:03 +00:00
Matt Jacob
c4e8e42c98
Print actual density code as well as string for density- I dunno about others,
...
but I sure remember 0x15 easier than 'ECMA 17'. Also handle density codes
0 (default) and 0x7f ('same') as special cases.
1999-03-02 06:27:59 +00:00
Matt Jacob
4338f206fa
Print relative (mt_fileno, mt_blkno) position, if known.
...
Print driver state if not NIL.
1999-02-05 02:46:21 +00:00
Matt Jacob
2331285d76
Print out latched cdb's correlated to latched errors in MTIOCERRSTAT case.
...
Complete the addition of the setmark support
(from Martin.Birgmeier@aon.at ).
1998-12-22 17:28:25 +00:00
Matt Jacob
9b37fcd2ea
add in new errstat subcommand (MTIOCSERRSTAT)
1998-12-19 20:23:37 +00:00
Matt Jacob
5091642944
Made changes suggested by bruce, plus a couple of others which made -Wall work.
...
Obtained from:bde@freebsd.org
1998-12-18 18:16:35 +00:00
Matt Jacob
69765472a3
1) Clarify that a weof count of zero is allowed (flush buffers).
...
2) Add in the set of {sethpos,setspos,rdhpos,rdspos) commands to implement the
Hardware && SCSI Logical Block position ioctls.
1998-12-18 02:02:20 +00:00
Doug Rabson
fe3c6c1802
Don't bother trying to support Wangtek tapes on the alpha.
1998-10-03 10:58:54 +00:00
Justin T. Gibbs
bb7f780427
Augment compression and blocksize support. Update table of known densities.
1998-09-15 10:28:20 +00:00
Poul-Henning Kamp
f934279d20
mt should report the compression status.
...
PR: 5276
Reviewed by: phk
Submitted by: Matt Dillon <dillon@best.net>
1998-04-19 17:28:14 +00:00
Joerg Wunsch
0ee7623d10
Implement "eod" as an alias for "eom". HP-UX uses this name, for
...
example.
Also cleaned up the man page a little.
1997-08-21 05:49:29 +00:00
Philippe Charnier
ff456ca439
Use err(3) instead of local redefinition.
1997-07-29 06:49:16 +00:00
Warner Losh
1c8af87873
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Peter Wemm
df3f5d9dd5
Merge from Lite2
1997-03-11 13:43:33 +00:00
Joerg Wunsch
9408e822a5
. cast the error and status registers properly to (unsigned short),
...
to avoid misinterpreting the 0x8000 bit as a negative sign,
. use the <machine/wtio.h> register def's to print them.
1996-02-22 00:33:35 +00:00
Joerg Wunsch
a7710e485b
Rename the retens' command into
retension', to follow existing de-facto
...
standards.
1996-01-12 15:36:28 +00:00
Joerg Wunsch
8348d96afc
Add `retens', the user frontend for MTRETENS.
1996-01-08 12:29:26 +00:00
Bruce Evans
49f544b572
Return early in printreg() when the pointer is NULL. For FreeBSD, the
...
strings describing the drive status and error bits are so deficient
that the pointer is always NULL.
Reported by: Philippe Charnier <charnier@lirmm.fr>
1995-10-21 08:51:01 +00:00
Joerg Wunsch
a471a8c32e
Remove the dangerous "eof" command that used to be an alias for "weof"
...
but usually got confused with "eom". It didn't ring the warning bell
saying: "You are probably going to mark your whole tape as deleted
right now."
A warning message pointing to "weof" and "eom" is issued instead.
1995-07-16 10:16:26 +00:00
Joerg Wunsch
77023b92da
Make mt(1) orthogonal: now that we print the densities as strings
...
instead of hex, make it accept density names for input, too.
1995-04-18 22:27:43 +00:00
Joerg Wunsch
1146dede84
Round #1 of my st(1) -> mt(1) merge. All the commands should be
...
covered now, and i've attempted to give textual representations
instead of magic numbers.
The st(4) driver still misses some pieces; i'm going to implement the
EOM functionality RSN.
Any takers for the MTCOMP command? Seems to have never been implemented.
1995-04-17 21:55:11 +00:00
Jordan K. Hubbard
2461956095
Andreas Klemm's tape erase patches from 1.1.5.1.
...
Submitted by: andreas
1994-10-28 13:21:57 +00:00
Rodney W. Grimes
9b50d90275
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00