• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/file_cmds-242/pax/

Lines Matching defs:arcn

289  *	pattern as having selected an archive member. arcn->pat points at the
290 * pattern that was matched. arcn->pat is set in pat_match()
298 * 0 if the pattern pointed at by arcn->pat was tagged as creating a
303 pat_sel(ARCHD *arcn)
312 if ((pathead == NULL) || ((pt = arcn->pat) == NULL))
334 if (!dflag && ((pt->pend != NULL) || (arcn->type == PAX_DIR))) {
340 * into arcn->name and arcn->name has not been modified.
351 if ((pt->pstr = strdup(arcn->name)) == NULL) {
377 arcn->pat = pt;
391 while ((pt != NULL) && (pt != arcn->pat)) {
405 arcn->pat = NULL;
412 * is found, arcn->pat is set to point at the potential pattern. Later if
422 pat_match(ARCHD *arcn)
426 arcn->pat = NULL;
454 if ((arcn->name[pt->plen] == '/') &&
455 (strncmp(pt->pstr, arcn->name, pt->plen) == 0))
457 } else if (fn_match(pt->pstr, arcn->name, &pt->pend) == 0)
474 arcn->pat = pt;
478 if (pat_sel(arcn) < 0)
480 arcn->pat = NULL;
610 mod_name(ARCHD *arcn)
618 while (rmleadslash && arcn->name[0] == '/') {
619 if (arcn->name[1] == '\0') {
620 arcn->name[0] = '.';
622 (void)memmove(arcn->name, &arcn->name[1],
623 strlen(arcn->name));
624 arcn->nlen--;
631 while (rmleadslash && arcn->ln_name[0] == '/' &&
632 (arcn->type == PAX_HLK || arcn->type == PAX_HRG)) {
633 if (arcn->ln_name[1] == '\0') {
634 arcn->ln_name[0] = '.';
636 (void)memmove(arcn->ln_name, &arcn->ln_name[1],
637 strlen(arcn->ln_name));
638 arcn->ln_nlen--;
670 if ((res = rep_name(arcn->name, sizeof(arcn->name), &(arcn->nlen), 1)) != 0)
673 if (((arcn->type == PAX_SLK) || (arcn->type == PAX_HLK) ||
674 (arcn->type == PAX_HRG)) &&
675 ((res = rep_name(arcn->ln_name, sizeof(arcn->ln_name), &(arcn->ln_nlen), 0)) != 0))
683 if ((res = tty_rename(arcn)) != 0)
685 if ((arcn->type == PAX_SLK) || (arcn->type == PAX_HLK) ||
686 (arcn->type == PAX_HRG))
687 sub_name(arcn->ln_name, &(arcn->ln_nlen), sizeof(arcn->ln_name));
703 tty_rename(ARCHD *arcn)
717 ls_tty(arcn);
752 res = add_name(arcn->name, arcn->nlen, tmpname);
753 arcn->nlen = strlcpy(arcn->name, tmpname, sizeof(arcn->name));
754 if (arcn->nlen >= sizeof(arcn->name))
755 arcn->nlen = sizeof(arcn->name) - 1; /* XXX truncate? */
770 set_dest(ARCHD *arcn, char *dest_dir, int dir_len)
772 if (fix_path(arcn->name, &(arcn->nlen), dest_dir, dir_len) < 0)
780 if ((arcn->type != PAX_HLK) && (arcn->type != PAX_HRG))
783 if (fix_path(arcn->ln_name, &(arcn->ln_nlen), dest_dir, dir_len) < 0)