Lines Matching +full:no +full:- +full:comp

22  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
47 * mt --
74 int c_ronly; /* open tape read-only */
78 #define CMD(a) a, sizeof(a) - 1
116 const struct commands *cp, *comp; in main() local
129 while ((ch = getopt(argc, argv, "f:t:")) != -1) in main()
139 argc -= optind; in main()
146 for (comp = NULL, cp = com; cp->c_name != NULL; cp++) { in main()
147 size_t clen = MIN(len, cp->c_namelen); in main()
148 if (strncmp(p, cp->c_name, clen) == 0) { in main()
149 if (comp != NULL) in main()
151 p, cp->c_name, comp->c_name); in main()
153 comp = cp; in main()
156 if (comp == NULL) in main()
161 if (count < comp->c_mincount || *p) in main()
166 flags = comp->c_ronly ? O_RDONLY : O_WRONLY; in main()
171 switch (comp->c_spcl) { in main()
173 if (comp->c_code == MTASF) { in main()
178 beginning-of-tape */ in main()
193 mt_com.mt_op = comp->c_code; in main()
197 err(2, "%s: %s", tape, comp->c_name); in main()
204 err(2, "%s: %s", tape, comp->c_name); in main()
210 if (ioctl(mtfd, comp->c_spcl, (caddr_t) &count) < 0) in main()
217 if (ioctl(mtfd, comp->c_spcl, (caddr_t) &count) < 0) in main()
222 errx(1, "internal error: unknown request %ld", comp->c_spcl); in main()
266 if (mt->t_type == 0) { in status()
268 bp->mt_type); in status()
271 if (mt->t_type == bp->mt_type) in status()
274 (void)printf("%s tape drive, residual=%d\n", mt->t_name, bp->mt_resid); in status()
275 printreg("ds", bp->mt_dsreg, mt->t_dsbits); in status()
276 printreg("\ner", bp->mt_erreg, mt->t_erbits); in status()
279 bp->mt_blksiz, bp->mt_mblksiz[0], bp->mt_mblksiz[1], in status()
280 bp->mt_mblksiz[2], bp->mt_mblksiz[3]); in status()
282 bp->mt_density, bp->mt_mdensity[0], bp->mt_mdensity[1], in status()
283 bp->mt_mdensity[2], bp->mt_mdensity[3]); in status()
284 (void)printf("current file number: %d\n", bp->mt_fileno); in status()
285 (void)printf("current block number: %d\n", bp->mt_blkno); in status()
305 if (v & (1 << (i-1))) { in printreg()
322 (void)fprintf(stderr, "usage: %s [-f device] command [count]\n", in usage()