Lines Matching refs:file1
149 cmp(const char* file1, Sfio_t* f1, const char* file2, Sfio_t* f2, int flags, Sfoff_t count, Sfoff_t differences)
173 "read error on %s", file1);
179 error(ERROR_exit(1), "EOF on %s", file1);
231 sfprintf(sfstdout, "%s %s differ: char %I*d, line %I*u\n", file1, file2, sizeof(pos), pos - (last - p1), sizeof(lines), lines);
242 sfprintf(sfstdout, "%s %s differ: char %I*d, line %I*u", file1, file2, sizeof(pos), pos - (last - p1), sizeof(lines), lines);
268 char* file1;
329 if (error_info.errors || !(file1 = *argv++) || !(file2 = *argv++))
332 if (streq(file1, "-"))
334 else if (!(f1 = sfopen(NiL, file1, "r")))
337 error(ERROR_system(0), "%s: cannot open", file1);
353 error(ERROR_exit(0), "%s: %s: invalid skip", file1, s);
374 error(ERROR_exit(0), "EOF on %s", file1);
386 error(ERROR_system(0), "%s: cannot stat", file1);
388 error(ERROR_system(0), "%s: cannot stat", file1);
392 n = ((flags & CMP_SILENT) && S_ISREG(s1.st_mode) && S_ISREG(s2.st_mode) && (s1.st_size - o1) != (s2.st_size - o2)) ? 1 : cmp(file1, f1, file2, f2, flags, count, differences);