- if (!pipein) {
- /* need to know if input is really from a tape */
-#ifdef RRESTORE
- if (host)
- magtapein = rmtioctl(MTNOP, 1) != -1;
- else
-#endif
- if (ioctl(mt, MTIOCGET, (char *) &mt_stat) == 0) {
- if (mt_stat.mt_dsreg & 0xffff)
- magtapein = 1; /* fixed blocksize */
- else
- magtapein = 2; /* variable blocksize */
- }
- }
-
- Vprintf(stdout,"Input is from %s\n", magtapein? "tape": "file/pipe");