Lines Matching defs:mtstatus
279 struct mtget mtstatus;
291 if (ioctl(session->ns_tape.td_fd, MTIOCGET, &mtstatus) < 0) {
314 reply.file_num = mtstatus.mt_fileno;
318 reply.blockno = mtstatus.mt_blkno;
320 reply.blockno = mtstatus.mt_blkno *
357 struct mtget mtstatus;
448 &mtstatus) < 0) {
460 reply.resid_count = labs(mtstatus.mt_resid);
612 struct mtget mtstatus;
622 if (ioctl(session->ns_tape.td_fd, MTIOCGET, &mtstatus) == -1) {
647 reply.file_num = mtstatus.mt_fileno;
651 reply.blockno = mtstatus.mt_blkno;
653 reply.blockno = mtstatus.mt_blkno *
686 struct mtget mtstatus;
688 if (ioctl(session->ns_tape.td_fd, MTIOCGET, &mtstatus) == 0 &&
689 mtstatus.mt_fileno == 0 && mtstatus.mt_blkno == 0)
706 struct mtget mtstatus;
708 if ((ioctl(session->ns_tape.td_fd, MTIOCGET, &mtstatus) == 0) &&
709 (mtstatus.mt_fileno > 0) && (mtstatus.mt_blkno == 0))
966 struct mtget mtstatus;
982 if (ioctl(session->ns_tape.td_fd, MTIOCGET, &mtstatus) == -1) {
1008 reply.file_num = mtstatus.mt_fileno;
1013 reply.blockno = mtstatus.mt_blkno;
1015 reply.blockno = mtstatus.mt_blkno /