Home | History | Annotate | only in /src/bin/mt
History log of /src/bin/mt
RevisionDateAuthorComments
 1.8 20-Jul-1997  christos branches: 1.8.112;
Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
 1.7 20-Jul-1997  christos Fix compiler warnings.
Add WARNS=1
 1.6 09-Aug-1996  jtc converted to use -lrmt
 1.5 06-Mar-1996  scottr Since we're setuid, let's be paranoid.
 1.4 06-Mar-1996  scottr Forgot this bit, somehow.
 1.3 21-Mar-1995  cgd merge with lite
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 25-Mar-1993  cgd branches: 1.1.1;
added mt from net-2 sources, with added rcs header.
note that it's in /bin rather than /usr/bin. wouldn't want to be
screwed trying to restore a backup...
 1.1.1.1 21-Mar-1995  cgd from Lite's src/usr.bin/mt
 1.8.112.2 21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.8.112.1 21-Apr-2020  martin Sync with HEAD
 1.38 01-Sep-2018  wiz Bump date for previous.
 1.37 01-Sep-2018  mlelstv Make tape cache ioctls available to userland command.
 1.36 19-Mar-2012  njoly branches: 1.36.32; 1.36.34;
Adjust for mandoc output.
 1.35 28-Apr-2011  wiz branches: 1.35.4;
Sort sections, punctuation nits.
 1.34 09-Mar-2008  dholland Grammar fix and clarification from PR 37727 by Randolf Richardson.
While here, do some of my own grammar and formatting fixes too.
Bump date.
 1.33 07-Aug-2003  agc branches: 1.33.6; 1.33.16; 1.33.18; 1.33.22; 1.33.26; 1.33.28;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.
 1.32 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.31 04-Feb-2003  perry "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
 1.30 25-Sep-2002  wiz New policy: New sentences start on a new line.
Patches by Robert Elz <kre at munnari oz au>, with minimal changes by me.
 1.29 13-Aug-2002  wiz Drop trailing whitespace.
 1.28 13-Aug-2002  sommerfeld Improve some of the description of optional drive features.
 1.27 20-Dec-2001  wiz Whitespace nits.
 1.26 03-Feb-2001  mason Clarify meaning of "mt asf". The man page extant says "Absolute space
to file count", which is incorrect. File numbering, according to
restore(8), starts at one, and thus "mt asf 1" neither moves to the
first file on the tape nor to file number one on the tape.
 1.25 04-Sep-2000  kleink For commands and utilities, use EXIT STATUS rather than RETURN VALUES as
appropriate (and documented in mdoc(7)).
 1.24 28-Aug-2000  hubertf Add 'RETURN VALUE' section header.
 1.23 02-Feb-2000  mjacob branches: 1.23.4;
Fix a buglet in the man page: eom spaces to the end of recorded media-
not the 'end of the media'.
 1.22 30-Sep-1999  soren Add list of common density codes.
The remote function was implemented in 1996.
 1.21 21-Jul-1999  tron branches: 1.21.2;
Add "setblk" as alias for "blocksize" and "setdensity" as alias for
"density". This makes life easier for people which use NetBSD and Linux.
 1.20 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.19 14-Jan-1999  fair mtio.4 no longer missing
 1.18 30-Jul-1998  mjacob rev man page for eew
 1.17 27-Jul-1998  msaitoh Add missing ".El"
 1.16 04-Jul-1998  mjacob adjust document to reality
 1.15 03-Jul-1998  fair PR#5696 + nroff fixes and text clarity
 1.14 20-Oct-1997  enami Fix .Nm usage.
 1.13 04-Oct-1997  hannken Code cleanup. All commands are run from the table.
`compression' command added to man page.
Default tape in man page adjusted. Closes PR #4212.
 1.12 03-Oct-1997  mikel update location of scsi_tape.h and fix set[hl]pos descriptions, from
Dave Huang in PR bin/4202. some more misc. cleanup of my own.
 1.11 29-Sep-1997  mjacob Add support for enabling/disabling compression, as well as reporting and
seeking to logical and hardware block locations.
 1.10 01-Jul-1997  hannken Allow a count of zero for the following commands:
blocksize density eom erase offline rewind rewoffl status retension
This makes it possible to set the default density or to set variable
blocksize. See PR #3256.
 1.9 08-Aug-1996  jtc Add the asf command for absolute tape positioning.

Some cleanup of the remote tape interface, but a lot more is needed.
Ideally, we'd have a "rmt" library which provides a remote tape API
including open, read, write, close, and ioctl. This is useful not
only for mt, but also for programs like tar, cpio, pax, backup and
restore.
 1.8 21-May-1996  mrg add blocksize/density commands. other part of #921 (Olaf Seibert <rhialto@polder.ubc.kun.nl>)
 1.7 05-Mar-1996  scottr Add remote tape capabilities.
 1.6 22-Aug-1995  jtc Change default magtape from /dev/rmt12 to /dev/rst0; PR #1399
 1.5 25-Jul-1995  jtc Use "utility" instead of "command". Modern definitions of these terms
are distinct (See POSIX.2 glossary).

A utility is a executable, script or shell builtin; while a command
can be any of those things plus lists, pipelines, compound commands
(if, for, while) and shell function definitions.
 1.4 21-Mar-1995  cgd merge with lite
 1.3 16-Oct-1994  andrew Added mention of the retension, erase and eom options.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 25-Mar-1993  cgd branches: 1.1.1;
added mt from net-2 sources, with added rcs header.
note that it's in /bin rather than /usr/bin. wouldn't want to be
screwed trying to restore a backup...
 1.1.1.1 21-Mar-1995  cgd from Lite's src/usr.bin/mt
 1.21.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.23.4.1 28-Aug-2000  hubertf Pull up to netbsd-1-5 branch, OK'd by thorpej:

Log Message:
> Add 'RETURN VALUE' section header.

Files & Revisionis:
> cvs rdiff -r1.19 -r1.20 basesrc/bin/cat/cat.1
> cvs rdiff -r1.12 -r1.13 basesrc/bin/chmod/chmod.1
> cvs rdiff -r1.14 -r1.15 basesrc/bin/cp/cp.1
> cvs rdiff -r1.8 -r1.9 basesrc/bin/dd/dd.1
> cvs rdiff -r1.9 -r1.10 basesrc/bin/echo/echo.1
> cvs rdiff -r1.11 -r1.12 basesrc/bin/expr/expr.1
> cvs rdiff -r1.25 -r1.26 basesrc/bin/ls/ls.1
> cvs rdiff -r1.10 -r1.11 basesrc/bin/mkdir/mkdir.1
> cvs rdiff -r1.23 -r1.24 basesrc/bin/mt/mt.1
> cvs rdiff -r1.12 -r1.13 basesrc/bin/mv/mv.1
> cvs rdiff -r1.16 -r1.17 basesrc/bin/pwd/pwd.1
> cvs rdiff -r1.9 -r1.10 basesrc/bin/rm/rm.1
> cvs rdiff -r1.11 -r1.12 basesrc/bin/rmdir/rmdir.1
> cvs rdiff -r1.35 -r1.36 basesrc/bin/sh/sh.1
> cvs rdiff -r1.11 -r1.12 basesrc/bin/sleep/sleep.1
> cvs rdiff -r1.20 -r1.21 basesrc/bin/stty/stty.1
 1.33.28.1 24-Mar-2008  keiichi sync with head.
 1.33.26.1 19-Mar-2008  bouyer Pull up following revision(s) (requested by dholland in ticket #1100):
bin/mt/mt.1: revision 1.34
Grammar fix and clarification from PR 37727 by Randolf Richardson.
While here, do some of my own grammar and formatting fixes too.
Bump date.
 1.33.22.1 23-Mar-2008  matt sync with HEAD
 1.33.18.1 03-Jun-2008  skrll Sync with netbsd-4.
 1.33.16.1 19-Mar-2008  bouyer Pull up following revision(s) (requested by dholland in ticket #1100):
bin/mt/mt.1: revision 1.34
Grammar fix and clarification from PR 37727 by Randolf Richardson.
While here, do some of my own grammar and formatting fixes too.
Bump date.
 1.33.6.1 26-Mar-2008  bouyer Pull up following revision(s) (requested by dholland in ticket #1911):
bin/mt/mt.1: revision 1.34
Grammar fix and clarification from PR 37727 by Randolf Richardson.
While here, do some of my own grammar and formatting fixes too.
Bump date.
 1.35.4.1 17-Apr-2012  yamt sync with head
 1.36.34.3 21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.36.34.2 21-Apr-2020  martin Sync with HEAD
 1.36.34.1 10-Jun-2019  christos Sync with HEAD
 1.36.32.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.49 24-Jan-2022  andvar s/begining/beginning/ in comments and messages.
 1.48 01-Sep-2018  mlelstv Make tape cache ioctls available to userland command.
 1.47 29-Aug-2011  joerg branches: 1.47.42; 1.47.44;
static + __dead
 1.46 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.45 27-Jun-2008  dogcow %d doesn't work so well with the now-u_long type. (HI GMCGARRY!)
 1.44 27-Jun-2008  gmcgarry ioctl commands are unsigned long.
 1.43 16-Oct-2006  christos branches: 1.43.18;
use c99 initializers
 1.42 22-Mar-2006  christos Oops, the previous change was not entirely correct since we were checking
the wrong byte.
 1.41 21-Mar-2006  christos Coverity CID 879: Don't increment bits before checking it for NULL.
 1.40 17-Jun-2005  hira - Whitespace nit.
- Wrap long line.
 1.39 03-Feb-2005  christos Allow short command names as long as they are not ambiguous.
 1.38 03-Feb-2005  christos Use the length of the command for comparison not the length
of the command line argument. Allows "compression" to be used
for "compress" etc.
 1.37 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.
 1.36 16-Sep-2001  wiz ANSIfy, KNF, use [gs]etprogname. Patch by Petri Koistinen.
 1.35 13-Feb-2001  mason Equally trivial formatting tweak. Leaving the thing alone after this. :)
 1.34 13-Feb-2001  mason trivial formatting tweak
 1.33 13-Feb-2001  christos from Mason Loring Bliss: support "asf 0"
 1.32 07-Sep-1999  simonb Print the current file and block numbers now that at least one tape
driver returns usable values for these.
 1.31 21-Jul-1999  tron Add "setblk" as alias for "blocksize" and "setdensity" as alias for
"density". This makes life easier for people which use NetBSD and Linux.
 1.30 02-Mar-1999  christos Don't assume that defined(sun) means SunOS... Protect with __SVR4 against
Solaris.
 1.29 30-Jul-1998  mjacob add eew as MTEWARN command
 1.28 28-Jul-1998  mycroft Delint.
 1.27 27-Jul-1998  mycroft __AUDIT__ cleanup.
 1.26 04-Jul-1998  mjacob More for kern/1275- and fix a bug in here that's been there forever.
 1.25 21-Oct-1997  thorpej <rmt.h> does funky function remapping stuff. Include it after we've
pulled in the other headers.
 1.24 05-Oct-1997  veego branches: 1.24.2;
Remove a unused variable.
 1.23 04-Oct-1997  hannken Code cleanup. All commands are run from the table.
`compression' command added to man page.
Default tape in man page adjusted. Closes PR #4212.
 1.22 29-Sep-1997  mjacob Add support for enabling/disabling compression, as well as reporting and
seeking to logical and hardware block locations.
 1.21 20-Jul-1997  christos Fix compiler warnings.
Add WARNS=1
 1.20 01-Jul-1997  hannken Allow a count of zero for the following commands:
blocksize density eom erase offline rewind rewoffl status retension
This makes it possible to set the default density or to set variable
blocksize. See PR #3256.
 1.19 15-Apr-1997  lukem use _PATH_DEFTAPE from <paths.h> instead of DEFTAPE from <sys/mtio.h>
 1.18 09-Jan-1997  tls kill use of register
 1.17 09-Aug-1996  jtc converted to use -lrmt
 1.16 08-Aug-1996  jtc Add the asf command for absolute tape positioning.

Some cleanup of the remote tape interface, but a lot more is needed.
Ideally, we'd have a "rmt" library which provides a remote tape API
including open, read, write, close, and ioctl. This is useful not
only for mt, but also for programs like tar, cpio, pax, backup and
restore.
 1.15 26-May-1996  mrg "SCSI tape" -> "SCSI", from is
 1.14 21-May-1996  mrg branches: 1.14.2;
add blocksize/density commands. other part of #921 (Olaf Seibert <rhialto@polder.ubc.kun.nl>)
 1.13 21-May-1996  mrg add type 7 (scsi tape). part of pr#921 (Olaf Seibert <rhialto@polder.ubc.kun.nl>)
 1.12 28-Mar-1996  scottr - Open device with O_WRONLY only if the command actually writes to the
device, otherwise O_RDONLY. Thanks to Hitoshi Osada for noticing this.
Closes PRs 2202 and 2249.
- Style police.
 1.11 06-Mar-1996  scottr Picked up a little lint in the dryer.
 1.10 06-Mar-1996  scottr Since we're setuid, let's be paranoid.
 1.9 05-Mar-1996  scottr Add remote tape capabilities.
 1.8 28-Sep-1995  tls Sync with 4.4BSD-Lite2
 1.7 27-Aug-1995  pk Sync exit codes with man page (from Scott Burns).
 1.6 01-Jun-1995  ragge Removed some (unworking) #ifdef vax.
 1.5 21-Mar-1995  cgd merge with lite
 1.4 05-Apr-1994  mycroft Add `retension', `erase', `eom', and `nbsf' subcommands.
 1.3 30-Mar-1994  jtc misc cleanup:
use getopt to parse command line arguments.
use err(), errx(), etc. for error messages.
include appropriate header files for function prototypes.
return 0 on successfull exit instead of dropping off the end of main().
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 25-Mar-1993  cgd branches: 1.1.1;
added mt from net-2 sources, with added rcs header.
note that it's in /bin rather than /usr/bin. wouldn't want to be
screwed trying to restore a backup...
 1.1.1.2 28-Sep-1995  tls imported from 44lite2
 1.1.1.1 21-Mar-1995  cgd from Lite's src/usr.bin/mt
 1.14.2.1 27-May-1996  mrg grok scsi tapes
 1.24.2.1 21-Oct-1997  thorpej Pull up from trunk:

<rmt.h> does funky function remapping stuff. Include it after we've
pulled in the other headers.
 1.43.18.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.47.44.3 21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.47.44.2 21-Apr-2020  martin Sync with HEAD
 1.47.44.1 10-Jun-2019  christos Sync with HEAD
 1.47.42.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.3 09-Aug-1996  jtc converted to use -lrmt
 1.2 08-Aug-1996  jtc Add the asf command for absolute tape positioning.

Some cleanup of the remote tape interface, but a lot more is needed.
Ideally, we'd have a "rmt" library which provides a remote tape API
including open, read, write, close, and ioctl. This is useful not
only for mt, but also for programs like tar, cpio, pax, backup and
restore.
 1.1 05-Mar-1996  scottr Add remote tape capabilities.
 1.4 09-Aug-1996  jtc converted to use -lrmt
 1.3 08-Aug-1996  jtc Add the asf command for absolute tape positioning.

Some cleanup of the remote tape interface, but a lot more is needed.
Ideally, we'd have a "rmt" library which provides a remote tape API
including open, read, write, close, and ioctl. This is useful not
only for mt, but also for programs like tar, cpio, pax, backup and
restore.
 1.2 06-Mar-1996  scottr branches: 1.2.4;
Since we're setuid, let's be paranoid.
 1.1 05-Mar-1996  scottr Add remote tape capabilities.
 1.2.4.1 29-Nov-1996  thorpej Don't attempt to alter TCP_MAXSEG. Since it can only be lowered, the
value of 1024 fails on networks such as ARCnet.

Fixes PR #2937, from Michael van Elst <mlelstv@serpens.swb.de>.
 1.2 09-Aug-1996  jtc converted to use -lrmt
 1.1 05-Mar-1996  scottr Add remote tape capabilities.

RSS XML Feed