version 1.2, 1996/06/26 05:32:05 |
version 1.3, 1996/08/01 00:01:38 |
|
|
fd1 = 0; |
fd1 = 0; |
file1 = "stdin"; |
file1 = "stdin"; |
} |
} |
else if ((fd1 = open(file1, O_RDONLY, 0)) < 0) |
else if ((fd1 = open(file1, O_RDONLY, 0)) < 0) { |
err(ERR_EXIT, "%s", file1); |
if (sflag) |
|
exit(ERR_EXIT); |
|
else |
|
err(ERR_EXIT, "%s", file1); |
|
} |
if (strcmp(file2 = argv[1], "-") == 0) { |
if (strcmp(file2 = argv[1], "-") == 0) { |
if (special) |
if (special) |
errx(ERR_EXIT, |
errx(ERR_EXIT, |
|
|
else |
else |
c_regular(fd1, file1, skip1, sb1.st_size, |
c_regular(fd1, file1, skip1, sb1.st_size, |
fd2, file2, skip2, sb2.st_size); |
fd2, file2, skip2, sb2.st_size); |
exit(0); |
return 0; |
} |
} |
|
|
static void |
static void |