Lines Matching refs:file2
71 "\nfile1 file2 [skip1 [skip2]]\n"
149 cmp(const char* file1, Sfio_t* f1, const char* file2, Sfio_t* f2, int flags, Sfoff_t count, Sfoff_t differences)
183 "read error on %s", file2);
198 "read error on %s", file2);
201 error(ERROR_exit(1), "EOF on %s", file2);
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);
269 char* file2;
329 if (error_info.errors || !(file1 = *argv++) || !(file2 = *argv++))
340 if (streq(file2, "-"))
342 else if (!(f2 = sfopen(NiL, file2, "r")))
345 error(ERROR_system(0), "%s: cannot open", file2);
361 error(ERROR_exit(0), "%s: %s: invalid skip", file2, s);
381 error(ERROR_exit(0), "EOF on %s", file2);
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);