Lines Matching refs:fp

120 	struct file *fp;
147 for (fp = bp->b_files; fp; fp = fp->f_next)
148 fakedata(fp, srcdst);
205 for (fp = bp->b_files; fp; fp = fp->f_next)
206 if (fp->f_flags & F_LISTED) {
207 errs |= eval_file(bp, fp);
208 fp->f_flags &= ~F_LISTED;
250 struct file *fp;
330 fp = (dp == 0) ? add_file_to_base(bp, name)
335 fp->f_flags |= F_LISTED | F_SPARSE;
338 fp->f_flags |= F_LISTED;
342 dp = fp;
370 eval_file(struct base *bp, struct file *fp)
379 showflags(fileflags, fp->f_flags), fp->f_name);
382 name = get_name(fp);
397 fp->f_flags |= F_STAT_ERROR;
400 fp->f_flags |= F_STAT_ERROR;
408 note_info(fp, &statb, usingsrc ? OPT_SRC : OPT_DST);
415 if (opt_acls || fp->f_info[OPT_BASE].f_numacls)
417 &fp->f_info[usingsrc ? OPT_SRC : OPT_DST]);
421 fp->f_flags |= F_EVALUATE;
434 if (fp->f_flags & F_LISTED)
435 check_inum(fp, usingsrc);
443 if (fp->f_flags & F_SPARSE) {
444 push_name(fp->f_name);
447 for (cp = fp->f_files; cp; cp = cp->f_next)
457 cur_dir = fp;
458 nftw(get_name(fp), &walker, MAX_DEPTH, FTW_PHYS|FTW_MOUNT);
498 struct file *fp;
548 fp = add_file_to_dir(dirstack[level-1], path);
549 note_info(fp, sp, which);
552 fp->f_flags |= F_EVALUATE;
558 if (fp->f_info[OPT_BASE].f_numacls || opt_acls)
560 &fp->f_info[which]);
581 fp = (level == 0) ? cur_dir :
584 note_info(fp, sp, which);
587 if (opt_acls || fp->f_info[OPT_BASE].f_numacls)
588 (void) get_acls(name, &fp->f_info[which]);
591 fp->f_flags |= F_EVALUATE;
594 dirstack[ level ] = fp;
616 for (fp = fp->f_files; fp; fp = fp->f_next) {
617 if ((fp->f_flags & F_IN_BASELINE) == 0)
619 fp->f_flags |= F_EVALUATE;
635 fp = (level == 0) ? cur_dir :
637 fp->f_flags |= F_STAT_ERROR;
661 note_info(struct file *fp, const struct stat *sp, side_t which)
665 ip = &fp->f_info[ which ];
682 fp->f_flags |= flags[which];
687 which, fp->f_name, ip->f_modtime, ip->f_modns,
749 update_info(struct file *fp, side_t which)
752 do_update(&fp->f_info[ OPT_BASE ], &fp->f_info[ which ]);
757 which, fp->f_name, fp->f_info[ which ].f_modtime,
758 fp->f_info[ which ].f_modns);
778 fakedata(struct file *fp, int which)
782 fp->f_flags |= (which == OPT_SRC) ? F_IN_SOURCE : F_IN_DEST;
785 do_update(&fp->f_info[ which ], &fp->f_info[ OPT_BASE ]);
786 fp->f_info[which].f_nlink = (which == OPT_SRC) ? fp->f_s_nlink :
787 fp->f_d_nlink;
788 fp->f_info[which].f_modtime = (which == OPT_SRC) ? fp->f_s_modtime :
789 fp->f_d_modtime;
791 for (lp = fp->f_files; lp; lp = lp->f_next)
815 check_inum(struct file *fp, int src)
823 ip = &fp->f_info[ OPT_SRC ];
824 if (ip->f_ino == fp->f_s_inum && ip->f_d_maj == fp->f_s_maj)
828 if (fp->f_s_inum == 0 || ip->f_ino == 0)
832 fprintf(stdout, V_change, fp->f_name, TXT_src,
833 fp->f_s_maj, fp->f_s_min, fp->f_s_inum,
836 ip = &fp->f_info[ OPT_DST ];
837 if (ip->f_ino == fp->f_d_inum && ip->f_d_maj == fp->f_d_maj)
841 if (fp->f_d_inum == 0 || ip->f_ino == 0)
845 fprintf(stdout, V_change, fp->f_name, TXT_dst,
846 fp->f_d_maj, fp->f_d_min, fp->f_d_inum,
947 FILE *fp;
956 fp = popen(cmd, "r");
957 if (fp == NULL) {
962 while (fgets(inbuf, sizeof (inbuf), fp) != 0) {
985 pclose(fp);