Lines Matching refs:mt
34 int mt = -1; variable
193 mt = open(archivefile, O_RDONLY|O_LARGEFILE); in setup()
194 if (mt < 0) { in setup()
200 if ((mt = rmtopen(magtape, O_RDONLY)) < 0) { in setup()
207 mt = 0; in setup()
208 else if ((mt = open(magtape, O_RDONLY|O_LARGEFILE)) < 0) { in setup()
554 if ((host != NULL && (mt = rmtopen(magtape, O_RDONLY)) == -1) || in getvol()
556 (mt = open(magtape, O_RDONLY|O_LARGEFILE)) == -1)) { in getvol()
693 retval = ioctl(mt, (int)MTIOCTOP, (char *)&tcom); in setdumpnum()
1523 i = read(mt, &tbf[rd], cnt); in readtape()
1587 (host == 0 && (lseek64(mt, (offset_t)i, 1) == in readtape()
1654 tape_rec_size = read(mt, tbf, ntrec * tp_bsize); in findtapeblksize()
1694 if (mt < 0) in closemt()
1705 while (read(mt, buffy, sizeof (buffy)) > 0) { in closemt()
1709 (void) close(mt); in closemt()
1716 (void) ioctl(mt, MTIOCTOP, &mtop); in closemt()
1717 (void) ioctl(mt, FDEJECT, 0); in closemt()
1718 (void) close(mt); in closemt()
1720 mt = -1; in closemt()
2102 (mt = rmtopen(magtape, O_RDONLY)) == -1) || in autoload_tape()
2104 (mt = open(magtape, O_RDONLY|O_LARGEFILE)) == -1)) { in autoload_tape()