summaryrefslogtreecommitdiff
path: root/bin/mt/mt.c
AgeCommit message (Collapse)Author
2006-06-14Nuke only two uses of OPENDEV_DRCT in tree. Nuke OPENDEV_DRCT. LongKenneth R Westerback
marked obsolete since the opendev() behaviour it turned on is now the default. 'it can go' deraadt@ 'no API of mine has ever made it into a standard' downsj@
2006-06-01We do not create st devices with different density modes. i.e. with deviceKenneth R Westerback
minor numbers having bits 2 or 3 set. Eliminate the quirks, etc. used to store info on these non-existant modes. Also eliminate a couple of 'unimplemented' fields in the ioctl request structure. ok beck@ deraadt@
2006-05-27The last time these were relevant I had a mullet.Bob Beck
no binary change, ok dlg@
2005-12-22if in eject mode, do not include command name in error output; bug spotted ↵Theo de Raadt
by drahn
2005-05-01add eject -t option: permits tray to be closed (ie. insert a CD).Theo de Raadt
this uses the MTRETEN option split out getopt options for mt & eject, fix usage as well. ok krw (who is about to commit the back end changes for scsi..)
2005-04-26- do not list -f option for eject, as it is not necessaryJason McIntyre
- tidy up the options list somewhat to avoid confusion - sync usage() started by a diff from tom@ and ok'd by him;
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-03-14document the -f flagJason McIntyre
remove the -t flag (it was an alias to -f) document that eject ignores $TAPE doc suggestion from Ross Richardson -t removal suggested by millert@ fixes PR 3143 ok millert@
2002-07-04ansiTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-16missed some registers, kill'em!Mike Pechkin
millert@ ok
1998-07-16support scsi better; fix another weird bug; mjacobTheo de Raadt
1997-04-16Use _PATH_DEFTAPE not DEFTAPE in mt(1)Todd C. Miller
Remove DEFTAPE from <sys/mtio.h> and guard against multiple inclusion.
1997-03-29Allow setting blocksize to 0 (variable size); from Juergen Hannken-IlljesThorsten Lockert
<hannken@eis.cs.tu-bs.de> in NetBSD PR 3256
1996-09-14WHen we fail to open tape device, only print an error message if errnoTodd C. Miller
is non-zero. If errno is 0 then the remote mt already did the message...
1996-09-02not setuid, silence TCP_MAXSEG for non-rootTheo de Raadt
1996-08-10from bde@freebsd.org; if printregs() sees no bit names, avoid using themTheo de Raadt
1996-08-10%d for formatsTheo de Raadt
1996-08-02zap getopt() case of -?, come on, it is the default!Theo de Raadt
1996-06-17opendev.h -> util.hJason Downs
1996-06-17Changed to use the opendev(3) in libutilJason Downs
1996-06-17The eject half of mt requires a device, instead of defaulting to the tape.Jason Downs
1996-06-12ok, so I didn't think of it last nightJason Downs
1996-06-11Make eject(1) an alias for mt .. offline, and support disklabel(8) shortJason Downs
form device names.
1996-06-10from mrg; grok scsi tapesTheo de Raadt
1996-05-22add blocksize/density commands; part of #921; from rhialto@polder.ubc.kun.nlTheo de Raadt
1996-04-17From NetBSD: Don't open tapes for writing when repositioning.dm
That clobbers data!
1996-03-08From NetBSD:Niklas Hallqvist
Add remote tape capabilities. Since we're setuid, let's be paranoid. Picked up a little lint in the dryer.
1995-10-18initial import of NetBSD treeTheo de Raadt