MTIOCGET
ioctl(to, MTIOCGET, &mt) >= 0; /* set state */
if (ioctl(to, MTIOCGET, &mt) >= 0 &&
if (ioctl(fd, MTIOCGET, &stuff) != -1) {
(void) ioctl(mtfd, MTIOCGET, (char *)&mt_status);
if (ioctl(mtfd, MTIOCGET, (char *)&mt_status) < 0) {
if (ioctl(mtfd, MTIOCGET, (char *)&mt_status) < 0) {
(void) ioctl(session->ns_tape.td_fd, MTIOCGET,
if (ioctl(session->ns_tape.td_fd, MTIOCGET, &mtstatus) < 0) {
if (ioctl(session->ns_tape.td_fd, MTIOCGET,
if (ioctl(session->ns_tape.td_fd, MTIOCGET, &mtstatus) == -1) {
if (ioctl(session->ns_tape.td_fd, MTIOCGET, &mtstatus) == 0 &&
if ((ioctl(session->ns_tape.td_fd, MTIOCGET, &mtstatus) == 0) &&
if (ioctl(session->ns_tape.td_fd, MTIOCGET, &mtstatus) == -1) {
rval = (offset_t)ioctl(tape, MTIOCGET, (char *)&mtget);
if (ioctl(fd, MTIOCGET, &mtg) != -1) {
(cmd != MTIOCGET)) {
(cmd == MTIOCGET)) {
case MTIOCGET: