Lines Matching refs:fp

172 {	struct file *fp, *new;
189 fp = new->f_next;
191 if (fp == 0) {
197 if (strcmp(name, fp->f_name) == 0) {
198 fp->f_flags &= ~F_NEW;
199 new = fp;
210 for (fp = *pp; fp; pp = &fp->f_next, fp = *pp) {
211 rslt = strcmp(name, fp->f_name);
215 fp->f_flags &= ~F_NEW;
216 new = fp;
229 * fp points at the node after ours
241 new->f_next = fp;
265 { struct file *fp;
267 fp = add_file_to_list(&bp->b_files, name);
268 fp->f_base = bp;
269 fp->f_depth = 0;
273 bp->b_ident, (fp->f_flags&F_NEW) ? "NEW" : "FOUND",
276 return (fp);
295 { struct file *fp;
297 fp = add_file_to_list(&dp->f_files, name);
298 fp->f_base = dp->f_base;
299 fp->f_depth = dp->f_depth + 1;
303 dp->f_name, (fp->f_flags&F_NEW) ? "NEW" : "FOUND",
306 return (fp);
338 struct file *fp;
444 fp = add_file_to_base(bp, s);
446 fp = add_file_to_dir(dirstack[level-1], s);
448 fp->f_flags |= F_IN_BASELINE;
456 dirstack[ level ] = fp;
459 ip = &fp->f_info[ OPT_BASE ];
489 fp->f_s_inum = (ino_t) ll;
496 fp->f_s_maj = l;
503 fp->f_s_min = l;
510 fp->f_s_nlink = l;
517 fp->f_s_modtime = l;
524 fp->f_d_inum = (ino_t) ll;
531 fp->f_d_maj = l;
538 fp->f_d_min = l;
545 fp->f_d_nlink = l;
552 fp->f_d_modtime = l;
765 { struct file *fp;
776 for (fp = bp->b_files; fp; fp = fp->f_next)
777 errs |= bw_file(file, fp, 0);
807 bw_file(FILE *file, struct file *fp, int depth)
812 struct fileinfo *ip = &fp->f_info[OPT_BASE];
815 if (fp->f_flags & F_REMOVE)
826 if (fp->f_flags & F_CONFLICT || (fp->f_flags&F_EVALUATE) == 0) {
827 fp->f_info[OPT_SRC].f_ino = fp->f_s_inum;
828 fp->f_info[OPT_SRC].f_nlink = fp->f_s_nlink;
829 fp->f_info[OPT_SRC].f_d_maj = fp->f_s_maj;
830 fp->f_info[OPT_SRC].f_d_min = fp->f_s_min;
831 fp->f_info[OPT_SRC].f_modtime = fp->f_s_modtime;
832 fp->f_info[OPT_DST].f_ino = fp->f_d_inum;
833 fp->f_info[OPT_DST].f_nlink = fp->f_d_nlink;
834 fp->f_info[OPT_DST].f_d_maj = fp->f_d_maj;
835 fp->f_info[OPT_DST].f_d_min = fp->f_d_min;
836 fp->f_info[OPT_DST].f_modtime = fp->f_d_modtime;
841 noblanks(fp->f_name), ip->f_mode);
844 ll = fp->f_info[OPT_SRC].f_ino;
847 fp->f_info[OPT_SRC].f_d_maj,
848 fp->f_info[OPT_SRC].f_d_min,
849 fp->f_info[OPT_SRC].f_nlink,
850 fp->f_info[OPT_SRC].f_modtime);
852 ll = fp->f_info[OPT_DST].f_ino;
855 fp->f_info[OPT_DST].f_d_maj,
856 fp->f_info[OPT_DST].f_d_min,
857 fp->f_info[OPT_DST].f_nlink,
858 fp->f_info[OPT_DST].f_modtime);
879 for (cp = fp->f_files; cp; cp = cp->f_next)