#include #include #include #include #include /*============================*/ int rew_tape(fp) int fp; { struct mtop mt_command; struct mtget mt_status; mt_command.mt_op=MTREW; ioctl(fp,MTIOCTOP,&mt_command); return(0); }; /*============================*/ int fskp_tape(fp,i) int fp; int i; { struct mtop mt_command; struct mtget mt_status; mt_command.mt_op=MTFSF; mt_command.mt_count=i; ioctl(fp,MTIOCTOP,&mt_command); return (0); };