HomeSort by: relevance | last modified time | path
    Searched refs:arcn (Results 1 - 10 of 10) sorted by relevancy

  /src/bin/pax/
ar_subs.c 159 path_check(ARCHD *arcn, int level)
164 if ((p = strrchr(arcn->name, '/')) == NULL)
168 if (realpath(arcn->name, buf) == NULL) {
170 error = path_check(arcn, level + 1);
175 syswarn(1, 0, "Cannot resolve `%s'", arcn->name);
182 arcn->name, buf, p + 1, cwdpath);
198 ARCHD *arcn; local in function:list
202 arcn = &archd;
219 while (next_head(arcn) == 0) {
220 if (arcn->type == PAX_GLL || arcn->type == PAX_GLF)
296 ARCHD *arcn; local in function:extract
757 ARCHD *arcn; local in function:append
928 ARCHD *arcn; local in function:copy
    [all...]
cpio.c 100 cpio_subtrail(ARCHD *arcn)
105 if ((strcmp(arcn->name, TRAILER) == 0) && (arcn->sb.st_size == 0))
118 com_rd(ARCHD *arcn)
120 arcn->skip = 0;
121 arcn->pat = NULL;
122 arcn->org_name = arcn->name;
123 switch(arcn->sb.st_mode & C_IFMT) {
125 arcn->type = PAX_FIF
    [all...]
tar.c 457 tar_rd(ARCHD *arcn, char *buf)
467 memset(arcn, 0, sizeof(*arcn));
468 arcn->org_name = arcn->name;
469 arcn->pat = NULL;
470 arcn->sb.st_nlink = 1;
477 arcn->nlen = expandname(arcn->name, sizeof(arcn->name)
    [all...]
file_subs.c 110 file_creat(ARCHD *arcn, int write_to_hardlink)
121 if (arcn->nlen != 0 && arcn->name[arcn->nlen - 1] == '/') {
125 arcn->name);
141 return (open(arcn->name, O_TRUNC | O_EXCL | O_RDWR, 0));
147 arcn->tmp_name = malloc(arcn->nlen + 8);
148 if (arcn->tmp_name == NULL) {
149 syswarn(1, errno, "Cannot malloc %d bytes", arcn->nlen + 8)
    [all...]
pat_rep.c 307 * pattern as having selected an archive member. arcn->pat points at the
308 * pattern that was matched. arcn->pat is set in pat_match()
316 * 0 if the pattern pointed at by arcn->pat was tagged as creating a
321 pat_sel(ARCHD *arcn)
330 if ((pathead == NULL) || ((pt = arcn->pat) == NULL))
352 if (!dflag && ((pt->pend != NULL) || (arcn->type == PAX_DIR))) {
358 * into arcn->name and arcn->name has not been modified.
369 if ((pt->pstr = strdup(arcn->name)) == NULL) {
395 arcn->pat = pt
    [all...]
ftree.c 256 ftree_sel(ARCHD *arcn)
276 if (Mflag || !dflag || (arcn->type != PAX_DIR))
403 * 0 when contents of arcn have been set with the next file, -1 when done.
407 next_file(ARCHD *arcn)
425 * from specfile info, and jump below to complete setup of arcn.
640 * ok got a file tree node to process. copy info into arcn
643 arcn->skip = 0;
644 arcn->pad = 0;
645 arcn->ln_nlen = 0;
646 arcn->ln_name[0] = '\0'
    [all...]
tables.c 141 chk_lnk(ARCHD *arcn)
152 if ((arcn->type == PAX_DIR) || (arcn->sb.st_nlink <= 1))
158 indx = ((unsigned)arcn->sb.st_ino) % L_TAB_SZ;
165 if ((pt->ino == arcn->sb.st_ino) &&
166 (pt->dev == arcn->sb.st_dev))
179 arcn->ln_nlen = strlcpy(arcn->ln_name, pt->name,
180 sizeof(arcn->ln_name));
181 if (arcn->type == PAX_REG
    [all...]
buf_subs.c 613 wr_rdfile(ARCHD *arcn, int ifd, off_t *left)
617 off_t size = arcn->sb.st_size;
622 * (in arcn->sb) for comparing the mtime after reading.
625 origsb = arcn->sb;
627 syswarn(1, errno, "Failed stat on %s", arcn->org_name);
650 syswarn(1, errno, "Read fault on %s", arcn->org_name);
652 tty_warn(1, "File changed size during read %s", arcn->org_name);
654 syswarn(1, errno, "Failed stat on %s", arcn->org_name);
657 arcn->org_name);
683 rd_wrfile(ARCHD *arcn, int ofd, off_t *left
    [all...]
gen_subs.c 110 ls_list(ARCHD *arcn, time_t now, FILE *fp)
121 (void)fprintf(fp, "%s\n", arcn->name);
129 sbp = &(arcn->sb);
135 formattime(f_date, sizeof(f_date), arcn->sb.st_mtime);
148 if ((arcn->type == PAX_CHR) || (arcn->type == PAX_BLK))
158 (void)fprintf(fp, "%s %s", f_date, arcn->name);
159 if ((arcn->type == PAX_HLK) || (arcn->type == PAX_HRG))
160 (void)fprintf(fp, " == %s\n", arcn->ln_name)
    [all...]
sel_subs.c 91 sel_chk(ARCHD *arcn)
93 if (((usrtb != NULL) && usr_match(arcn)) ||
94 ((grptb != NULL) && grp_match(arcn)) ||
95 ((trhead != NULL) && trng_match(arcn)))
186 usr_match(ARCHD *arcn)
193 pt = usrtb[((unsigned)arcn->sb.st_uid) % USR_TB_SZ];
195 if (pt->uid == arcn->sb.st_uid)
285 grp_match(ARCHD *arcn)
292 pt = grptb[((unsigned)arcn->sb.st_gid) % GRP_TB_SZ];
294 if (pt->gid == arcn->sb.st_gid
    [all...]

Completed in 15 milliseconds