mtop
struct mtop mtoffl = { MTOFFL, 1 };
struct mtop t_op;
_rmtmtioctop(int fd, struct mtop *cmd)
struct mtop mt_com;
int _rmtmtioctop(int fd, struct mtop *cmd);
struct mtop mb;
struct mtop mb;
struct mtop mb;
struct mtop tcom;
if (((struct mtop *)addr)->mt_op != MTOFFL)
if (((struct mtop *)addr)->mt_op != MTOFFL)
if (((struct mtop *)addr)->mt_op == MTRETEN)
if (((struct mtop *)addr)->mt_op != MTOFFL) {
if (((struct mtop *)addr)->mt_op != MTOFFL) {
struct mtop *mt = (struct mtop *) arg;
#define MTIOCTOP _IOW('m', 1, struct mtop) /* do a mag tape op */
{ struct mtop mtop;
mtop.mt_op = atoi(op);
mtop.mt_count = atoi(count);
if (ioctl(tape, MTIOCTOP, (char *)&mtop) == -1)
rval = mtop.mt_count;