MTIOCGET
io->flags |= ioctl(io->fd, MTIOCGET, &mt) ? ISCHR : ISTAPE;
if (ioctl(fd, MTIOCGET, &mt_status) == -1)
artyp = ioctl(arfd, MTIOCGET, &mb) ? ISCHR : ISTAPE;
case MTIOCGET:
case MTIOCGET: {
if (ioctl(tape, MTIOCGET, (char *)&mtget) == -1)