Lines Matching defs:mtfd
46 static int print_config(int mtfd);
49 static int status(int mtfd, struct mtget *);
95 int mtfd;
129 mtfd = open(tape, comp->c_oflag);
130 if (mtfd < 0) {
155 if (ioctl(mtfd, comp->c_code) < 0) {
175 (void) ioctl(mtfd, MTIOCGET, (char *)&mt_status);
176 if (ioctl(mtfd, MTIOCGET, (char *)&mt_status) < 0) {
192 if (ioctl(mtfd, MTIOCLTOP, &mt_com) < 0) {
211 if (ioctl(mtfd, MTIOCLTOP, &mt_com) < 0) {
218 return (print_config(mtfd));
232 if (ioctl(mtfd, MTIOCLTOP, &mt_com) < 0) {
255 if (ioctl(mtfd, MTIOCGET, (char *)&mt_status) < 0) {
259 return (status(mtfd, &mt_status));
265 print_config(int mtfd)
277 if (ioctl(mtfd, MTIOCGETDRIVETYPE, &mdt_req) != 0) {
348 status(int mtfd, struct mtget *bp)
361 if (ioctl(mtfd, MTIOCGETDRIVETYPE, &mdt_req) == 0) {