Lines Matching refs:comp
96 struct commands const *comp;
118 for (comp = com; comp->c_name != NULL; comp++) {
119 if (strncmp(cp, comp->c_name, strlen(cp)) == 0) {
124 if (comp->c_name == NULL) {
129 mtfd = open(tape, comp->c_oflag);
148 if (comp->c_code == MTIOCFORCERESERVE ||
149 comp->c_code == MTIOCRESERVE ||
150 comp->c_code == MTIOCRELEASE) {
155 if (ioctl(mtfd, comp->c_code) < 0) {
159 } else if (comp->c_code == MTASF) {
169 usecnt = argc > 2 && comp->c_usecnt;
194 tape, comp->c_name, mt_fileno);
212 (void) fprintf(stderr, "%s %s %ld ", tape, comp->c_name,
217 } else if (comp->c_code == MTIOCGETDRIVETYPE) {
221 } else if (comp->c_code != MTNOP) {
224 mt_com.mt_op = comp->c_code;
225 usecnt = argc > 2 && comp->c_usecnt;
229 comp->c_name);
238 comp->c_code == MTSEEK) {
243 comp->c_name, mt_com.mt_count);