Lines Matching refs:cmd_info

86 rcmd(Cmd_info *cmd_info)  in rcmd()  argument
103 for (fileptr = getfile(cmd_info); in rcmd()
104 fileptr; fileptr = getfile(cmd_info)) { in rcmd()
106 if (!abifile && cmd_info->ponam && in rcmd()
107 strcmp(fileptr->ar_longname, cmd_info->ponam) == 0) in rcmd()
112 if (cmd_info->namc == 0 || in rcmd()
113 (gfile = match(fileptr->ar_longname, cmd_info)) != NULL) { in rcmd()
121 if (cmd_info->namc) { in rcmd()
130 mesg('c', gfile, cmd_info); in rcmd()
132 if ((cmd_info->opt_flgs & u_FLAG) && in rcmd()
140 mesg('r', fileptr->ar_longname, cmd_info); in rcmd()
176 if (cmd_info->ponam && (abifile != fileptr)) { in rcmd()
192 cmd_info->modified++; in rcmd()
199 mesg('u', fileptr->ar_longname, cmd_info); in rcmd()
208 cleanup(cmd_info); in rcmd()
209 if (cmd_info->ponam && endptr && in rcmd()
213 cmd_info->ponam); in rcmd()
229 if (cmd_info->opt_flgs & b_FLAG) in rcmd()
239 } else if (cmd_info->ponam && !abifile) in rcmd()
241 cmd_info->ponam); in rcmd()
245 dcmd(Cmd_info *cmd_info) in dcmd() argument
250 for (fptr = getfile(cmd_info); fptr; fptr = getfile(cmd_info)) { in dcmd()
251 if (match(fptr->ar_longname, cmd_info) != NULL) { in dcmd()
261 mesg('d', fptr->ar_longname, cmd_info); in dcmd()
269 cmd_info->modified = 1; in dcmd()
274 mesg('u', fptr->ar_longname, cmd_info); in dcmd()
281 xcmd(Cmd_info *cmd_info) in xcmd() argument
291 if (cmd_info->opt_flgs & T_FLAG) { in xcmd()
300 for (next = getfile(cmd_info); next; next = getfile(cmd_info)) { in xcmd()
303 if (cmd_info->namc == 0 || in xcmd()
304 match(next->ar_longname, cmd_info) != NULL || in xcmd()
305 match(next->ar_rawname, cmd_info) != NULL) { in xcmd()
311 f = create_extract(next, rawname, f_len, cmd_info); in xcmd()
317 mesg('x', next->ar_rawname, cmd_info); in xcmd()
332 mesg('x', next->ar_longname, cmd_info); in xcmd()
353 pcmd(Cmd_info *cmd_info) in pcmd() argument
357 for (next = getfile(cmd_info); next; next = getfile(cmd_info)) { in pcmd()
358 if (cmd_info->namc == 0 || in pcmd()
359 match(next->ar_longname, cmd_info) != NULL || in pcmd()
360 match(next->ar_rawname, cmd_info) != NULL) { in pcmd()
366 if (cmd_info->opt_flgs & v_FLAG) { in pcmd()
379 mcmd(Cmd_info *cmd_info) in mcmd() argument
388 for (fileptr = getfile(cmd_info); in mcmd()
389 fileptr; fileptr = getfile(cmd_info)) { in mcmd()
390 if (match(fileptr->ar_longname, cmd_info) != NULL) { in mcmd()
394 mesg('m', fileptr->ar_longname, cmd_info); in mcmd()
411 mesg('u', fileptr->ar_longname, cmd_info); in mcmd()
413 if (cmd_info->ponam && !abifile) { in mcmd()
414 if (strcmp(fileptr->ar_longname, cmd_info->ponam) == 0) in mcmd()
424 if (!cmd_info->ponam) in mcmd()
429 cmd_info->ponam); in mcmd()
432 if (cmd_info->opt_flgs & b_FLAG) in mcmd()
442 (cmd_info->modified)++; in mcmd()
446 tcmd(Cmd_info *cmd_info) in tcmd() argument
473 for (next = getfile(cmd_info); next; next = getfile(cmd_info)) { in tcmd()
474 if (cmd_info->namc == 0 || in tcmd()
475 match(next->ar_longname, cmd_info) != NULL || in tcmd()
476 match(next->ar_rawname, cmd_info) != NULL) { in tcmd()
482 if ((cmd_info->opt_flgs & (t_FLAG | v_FLAG)) == in tcmd()
500 if (cmd_info->opt_flgs & t_FLAG) { in tcmd()
517 qcmd(Cmd_info *cmd_info) in qcmd() argument
521 if (cmd_info->opt_flgs & (a_FLAG | b_FLAG)) { in qcmd()
525 for (fptr = getfile(cmd_info); fptr; fptr = getfile(cmd_info)) in qcmd()
527 cleanup(cmd_info); in qcmd()
534 match(char *file, Cmd_info *cmd_info) in match() argument
538 for (i = 0; i < cmd_info->namc; i++) { in match()
539 if (cmd_info->namv[i] == 0) in match()
541 if (strcmp(trim(cmd_info->namv[i]), file) == 0) { in match()
542 file = cmd_info->namv[i]; in match()
543 cmd_info->namv[i] = 0; in match()
554 cleanup(Cmd_info *cmd_info) in cleanup() argument
561 for (i = 0; i < cmd_info->namc; i++) { in cleanup()
562 if (cmd_info->namv[i] == 0) in cleanup()
567 mesg('a', cmd_info->namv[i], cmd_info); in cleanup()
568 f = stats(cmd_info->namv[i], &stbuf); in cleanup()
572 cmd_info->namv[i], strerror(err)); in cleanup()
577 trim(cmd_info->namv[i]), SNAME); in cleanup()
580 malloc(strlen(trim(cmd_info->namv[i])) + 1)) == in cleanup()
589 trim(cmd_info->namv[i])); in cleanup()
592 malloc(strlen(cmd_info->namv[i]) + 1)) == NULL) { in cleanup()
599 (void) strcpy(fileptr->ar_pathname, cmd_info->namv[i]); in cleanup()
614 (cmd_info->modified)++; in cleanup()
615 cmd_info->namv[i] = 0; in cleanup()
670 create_extract(ARFILE *a, int rawname, int f_len, Cmd_info *cmd_info) in create_extract() argument
684 if (cmd_info->opt_flgs & T_FLAG) { in create_extract()
720 if (cmd_info->opt_flgs & C_FLAG) { in create_extract()
735 (stat(cmd_info->arnam, &s2) == 0)) { in create_extract()
760 mesg('c', f_name, cmd_info); in create_extract()
768 mesg(int c, char *file, Cmd_info *cmd_info) in mesg() argument
789 if (cmd_info->opt_flgs & v_FLAG) in mesg()