Lines Matching refs:file2
102 const char *file1, *file2;
173 if (strcmp(file2 = argv[1], "-") == 0) {
179 file2 = "stdin";
180 } else if ((fd2 = open(file2, oflag, 0)) < 0 && errno != EMLINK) {
182 err(ERR_EXIT, "%s", file2);
202 c_link(file1, skip1, file2, skip2, limit);
205 errx(ERR_EXIT, "%s: Not a symbolic link", file2);
230 err(ERR_EXIT, "%s", file2);
243 c_special(fd1, file1, skip1, fd2, file2, skip2, limit);
248 file1, file2);
252 fd2, file2, skip2, sb2.st_size, limit);
262 "usage: cmp [-l | -s | -x] [-hz] file1 file2 [skip1 [skip2]]\n");