Lines Matching refs:mt
34 int mt = -1; variable
194 mt = open(archivefile, O_RDONLY|O_LARGEFILE); in setup()
195 if (mt < 0) { in setup()
201 if ((mt = rmtopen(magtape, O_RDONLY)) < 0) { in setup()
208 mt = 0; in setup()
209 else if ((mt = open(magtape, O_RDONLY|O_LARGEFILE)) < 0) { in setup()
555 if ((host != NULL && (mt = rmtopen(magtape, O_RDONLY)) == -1) || in getvol()
557 (mt = open(magtape, O_RDONLY|O_LARGEFILE)) == -1)) { in getvol()
694 retval = ioctl(mt, (int)MTIOCTOP, (char *)&tcom); in setdumpnum()
1520 i = read(mt, &tbf[rd], cnt); in readtape()
1584 (host == 0 && (lseek64(mt, (offset_t)i, 1) == in readtape()
1651 tape_rec_size = read(mt, tbf, ntrec * tp_bsize); in findtapeblksize()
1691 if (mt < 0) in closemt()
1702 while (read(mt, buffy, sizeof (buffy)) > 0) { in closemt()
1706 (void) close(mt); in closemt()
1713 (void) ioctl(mt, MTIOCTOP, &mtop); in closemt()
1714 (void) ioctl(mt, FDEJECT, 0); in closemt()
1715 (void) close(mt); in closemt()
1717 mt = -1; in closemt()
2099 (mt = rmtopen(magtape, O_RDONLY)) == -1) || in autoload_tape()
2101 (mt = open(magtape, O_RDONLY|O_LARGEFILE)) == -1)) { in autoload_tape()