Lines Matching refs:fp

122 reconcile(struct file *fp)  in reconcile()  argument
128 fp->f_fullname, in reconcile()
129 showflags(fileflags, fp->f_flags), in reconcile()
130 fp->f_modtime, fp->f_modns); in reconcile()
135 srcname = full_name(fp, OPT_SRC, OPT_SRC); in reconcile()
136 dstname = full_name(fp, OPT_DST, OPT_DST); in reconcile()
144 if (opt_acls == 0 && fp->f_info[ OPT_BASE ].f_numacls == 0) { in reconcile()
145 if (get_acls(srcname, &fp->f_info[ OPT_SRC ])) in reconcile()
146 fp->f_srcdiffs |= D_FACLS; in reconcile()
147 if (get_acls(dstname, &fp->f_info[ OPT_DST ])) in reconcile()
148 fp->f_dstdiffs |= D_FACLS; in reconcile()
159 if ((fp->f_srcdiffs|fp->f_dstdiffs) & D_RENAME_FROM) in reconcile()
162 if ((fp->f_srcdiffs|fp->f_dstdiffs) & D_RENAME_TO) { in reconcile()
166 fp->f_previous->f_fullname, fp->f_name); in reconcile()
168 if (fp->f_srcdiffs & D_RENAME_TO) { in reconcile()
169 errs = do_rename(fp, OPT_DST); in reconcile()
170 fp->f_srcdiffs &= D_MTIME | D_SIZE; in reconcile()
171 } else if (fp->f_dstdiffs & D_RENAME_TO) { in reconcile()
172 errs = do_rename(fp, OPT_SRC); in reconcile()
173 fp->f_dstdiffs &= D_MTIME | D_SIZE; in reconcile()
183 if ((fp->f_srcdiffs | fp->f_dstdiffs) == 0) in reconcile()
194 switch (fp->f_flags & (F_WHEREFOUND)) { in reconcile()
199 fp->f_fullname); in reconcile()
200 fp->f_flags |= F_REMOVE; /* fix baseline */ in reconcile()
220 if (((fp->f_srcdiffs&D_IMPORTANT) == 0) || in reconcile()
222 has_other_links(fp, OPT_SRC)) { in reconcile()
225 fp->f_fullname, "dst"); in reconcile()
226 errs = do_remove(fp, OPT_SRC); in reconcile()
233 fp->f_fullname); in reconcile()
237 errs = do_copy(fp, OPT_DST); in reconcile()
241 fp->f_problem = gettext(PROB_del_change); in reconcile()
246 if (((fp->f_dstdiffs&D_IMPORTANT) == 0) || in reconcile()
248 has_other_links(fp, OPT_DST)) { in reconcile()
251 fp->f_fullname, "src"); in reconcile()
252 errs = do_remove(fp, OPT_DST); in reconcile()
259 fp->f_fullname); in reconcile()
263 errs = do_copy(fp, OPT_SRC); in reconcile()
267 fp->f_problem = gettext(PROB_del_change); in reconcile()
279 fp->f_fullname, "src"); in reconcile()
280 errs = do_copy(fp, OPT_DST); in reconcile()
286 fp->f_fullname, "dst"); in reconcile()
287 errs = do_copy(fp, OPT_SRC); in reconcile()
315 if (samedata(fp)) { in reconcile()
316 if (samestuff(fp)) { in reconcile()
320 fp->f_fullname); in reconcile()
321 update_info(fp, OPT_SRC); in reconcile()
333 fp->f_fullname); in reconcile()
335 if (((fp->f_srcdiffs & D_ADMIN) == 0) || in reconcile()
337 errs = do_like(fp, OPT_SRC, TRUE); in reconcile()
341 if (((fp->f_dstdiffs & D_ADMIN) == 0) || in reconcile()
343 errs = do_like(fp, OPT_DST, TRUE); in reconcile()
354 if (fp->f_dstdiffs == 0 || fp->f_srcdiffs == 0) { in reconcile()
357 fp->f_fullname); in reconcile()
358 errs = do_copy(fp, fp->f_srcdiffs ? OPT_DST : OPT_SRC); in reconcile()
367 gettext(truncated(fp) ? in reconcile()
369 fp->f_fullname); in reconcile()
379 errs = do_copy(fp, newer(fp)); in reconcile()
384 errs = do_copy(fp, older(fp)); in reconcile()
389 errs = do_copy(fp, (opt_force == OPT_SRC) ? in reconcile()
410 diffmask = fp->f_srcdiffs & fp->f_dstdiffs; in reconcile()
420 errs |= do_like(fp, (fp->f_srcdiffs&D_ADMIN) ? in reconcile()
434 errs |= do_copy(fp, (fp->f_srcdiffs&D_CONTENTS) ? in reconcile()
444 fp->f_problem = gettext(PROB_different); in reconcile()
452 fp->f_flags |= F_CONFLICT; in reconcile()
453 fp->f_base->b_unresolved++; in reconcile()
463 if ((errs&ERR_UNRESOLVED) && (fp->f_flags & F_IN_BASELINE) == 0) in reconcile()
464 if (fp->f_files == 0) in reconcile()
469 fp->f_flags |= F_REMOVE; in reconcile()
484 fp->f_info[ OPT_BASE ].f_type = S_IFDIR; in reconcile()
487 fprintf(stderr, "MISC: %s ERRS=%s\n", fp->f_fullname, in reconcile()
507 newer(struct file *fp) in newer() argument
511 sp = &fp->f_info[OPT_SRC]; in newer()
512 dp = &fp->f_info[OPT_DST]; in newer()
540 older(struct file *fp) in older() argument
544 sp = &fp->f_info[OPT_SRC]; in older()
545 dp = &fp->f_info[OPT_DST]; in older()
573 samedata(struct file *fp) in samedata() argument
577 sp = &fp->f_info[OPT_SRC]; in samedata()
578 dp = &fp->f_info[OPT_DST]; in samedata()
602 if (fp->f_info[OPT_SRC].f_size != fp->f_info[OPT_DST].f_size) in samedata()
606 if (samecompare(fp) == 0) in samedata()
626 samestuff(struct file *fp) in samestuff() argument
630 sp = &fp->f_info[OPT_SRC]; in samestuff()
631 dp = &fp->f_info[OPT_DST]; in samestuff()
644 fp->f_problem = gettext(PROB_ownership); in samestuff()
646 fp->f_problem = gettext(PROB_protection); in samestuff()
665 samecompare(struct file *fp) in samecompare() argument
704 fprintf(stderr, "ANAL: SAME=%d %s\n", same, fp->f_fullname); in samecompare()
725 truncated(struct file *fp) in truncated() argument
728 if (fp->f_info[OPT_SRC].f_size && fp->f_info[OPT_DST].f_size) in truncated()
732 if (fp->f_info[OPT_BASE].f_size == 0) in truncated()
736 if (fp->f_info[OPT_BASE].f_type != S_IFREG) in truncated()
738 if (fp->f_info[OPT_SRC].f_type != S_IFREG) in truncated()
740 if (fp->f_info[OPT_DST].f_type != S_IFREG) in truncated()
803 full_name(struct file *fp, side_t srcdst, side_t whichbuf) in full_name() argument
810 b = (srcdst == OPT_SRC) ? fp->f_base->b_src_name in full_name()
811 : fp->f_base->b_dst_name; in full_name()
814 l = strlen(b) + strlen(fp->f_fullname) + 2; in full_name()
831 strcat(p, fp->f_fullname); in full_name()