summaryrefslogtreecommitdiffstats
path: root/bin/mt
AgeCommit message (Collapse)AuthorFilesLines
2020-01-16Usually, -width Fl (which is 10n) is too wide and hence ugly.schwarze1-3/+3
Change several instances, most of them to the usual -width Ds.
2019-07-03snprintf/vsnprintf return < 0 on error, rather than -1.deraadt1-3/+3
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt2-18/+11
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2019-01-22Add file # and block # to the information "mt status" shows.krw1-1/+3
diff from Oscar Endre Edvardsen via misc@ a long time ago. ok sthen@ dlg@
2018-07-09ensure tape name and tape commands are not too long. passing too longderaadt2-6/+17
commands to the other side could cause problems. ok guenther tb
2017-04-17/dev/rmt* is no longer relevant; from miodjmc1-4/+2
2016-03-30for some time now mandoc has not required MLINKS to functionjmc1-2/+1
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2015-12-30rename a few variables/functions to avoid shadowingtedu1-8/+8
2015-12-06Use __progname instead of manually handling argv[0].tobias1-10/+6
ok deraadt, mmcc, tedu
2013-11-21add unsigned char casts for specific calls to ctype.h macros.deraadt1-3/+3
ok guenther step
2013-11-12add a variety of missing prototypesderaadt1-1/+6
2012-12-04replace sys/param.h with sys/types.h (and sometimes add limits.h if needed)deraadt1-2/+2
ok guenther
2012-12-04remove sunos backwards compatderaadt1-7/+1
2011-05-05Oops. Put back OPENDEV_PART so 'eject cd0' works again. Pointed outkrw1-2/+3
by miod@.
2011-04-24No point in attempting to open the 'c' partition on devices that havekrw1-2/+2
no 'c' partition. So don't call opendev(3) with OPENDEV_PART. ok deraadt@
2010-09-03add EXIT STATUS (these two were hiding...);jmc1-6/+6
2009-11-09simplify the sub-ioctl functionderaadt1-4/+5
2009-11-07repair local operations after the -DRMT changes; from Matthew Clarkederaadt1-2/+2
2009-10-28Add a compile option (-DRMT) which decides if remote tape support (via rcmd)deraadt2-16/+54
is supported. If not, disable it. ok guenther
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2-23/+2
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2007-11-03- standard EXAMPLESjmc1-10/+7
- tidy up SEE ALSO
2007-11-02+.Xr chio 1 ,jmc1-2/+3
ok beck
2007-05-31convert to new .Dd format;jmc1-2/+2
2006-06-14Nuke only two uses of OPENDEV_DRCT in tree. Nuke OPENDEV_DRCT. Longkrw1-3/+3
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 devicekrw1-8/+4
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.beck1-18/+2
no binary change, ok dlg@
2006-04-11Check for strdup() failure.ray1-4/+3
OK jaredy@
2006-03-23use strdup() instead; adobriyan@gmailderaadt1-7/+3
2005-12-22if in eject mode, do not include command name in error output; bug spotted by drahnderaadt1-4/+8
2005-11-25BINOWN and BINMODE is not needed herederaadt1-3/+1
2005-05-02tweaks;jmc1-4/+2
2005-05-01add eject -t option: permits tray to be closed (ie. insert a CD).deraadt2-18/+35
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 necessaryjmc2-11/+10
- tidy up the options list somewhat to avoid confusion - sync usage() started by a diff from tom@ and ok'd by him;
2004-09-16ARGSUSED on signal handlerderaadt1-2/+3
2003-07-31typo;jmc1-2/+2
2003-07-30clarify use of eject on an empty cdrom drive. (eject /dev/rcd0c)tedu1-10/+14
ok jmc@
2003-06-11ansification, art okderaadt1-21/+12
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert5-31/+11
rescinded 22 July 1999. Proofed by myself and Theo.
2003-03-14document the -f flagjmc2-11/+29
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@
2003-02-26clarify that eject works on other mediatedu1-2/+4
ok millert@
2002-07-04ansideraadt1-12/+6
2002-05-27strlcpyderaadt1-3/+4
2002-03-14kill more registers.mpech1-8/+8
millert@ ok
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert1-3/+1
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert3-21/+21
2002-01-24fix the history refsmickey1-2/+4
2002-01-16missed some registers, kill'em!mpech1-9/+9
millert@ ok
2001-11-14in a signal handler, change errx() to warnx() + _exit; millert okderaadt1-4/+13
2000-03-17Remove hard sentence breaks.aaron1-5/+5
1999-08-17consistencyaaron1-2/+3