Searched refs:mtfd (Results 1 – 2 of 2) sorted by relevance
/openbsd/bin/mt/ |
H A D | mt.c | 146 int ch, mtfd, flags, insert = 0; in main() local 220 if ((mtfd = _rmtopendev(tape, flags, OPENDEV_PART, &realtape)) == -1) { in main() 234 if (_rmtmtioctop(mtfd, &mt_com) == -1) { in main() 241 status(_rmtstatus(mtfd)); in main()
|
/openbsd/bin/chio/ |
H A D | chio.c | 651 int mtfd; in check_source_drive() local 690 mtfd = opendev(tapedev, O_RDONLY, 0, NULL); in check_source_drive() 691 if (mtfd == -1) in check_source_drive() 693 if (ioctl(mtfd, MTIOCTOP, &mtoffl) == -1) in check_source_drive() 696 close(mtfd); in check_source_drive()
|