version 1.45, 2003/07/29 18:38:47 |
version 1.46, 2003/07/31 02:53:57 |
|
|
if (S_ISDIR(stb1.st_mode) != S_ISDIR(stb2.st_mode)) |
if (S_ISDIR(stb1.st_mode) != S_ISDIR(stb2.st_mode)) |
return (S_ISDIR(stb1.st_mode) ? D_MISMATCH1 : D_MISMATCH2); |
return (S_ISDIR(stb1.st_mode) ? D_MISMATCH1 : D_MISMATCH2); |
if (strcmp(file1, "-") == 0 && strcmp(file2, "-") == 0) |
if (strcmp(file1, "-") == 0 && strcmp(file2, "-") == 0) |
goto notsame; |
goto closem; |
|
|
if (flags & D_EMPTY1) |
if (flags & D_EMPTY1) |
f1 = fopen(_PATH_DEVNULL, "r"); |
f1 = fopen(_PATH_DEVNULL, "r"); |
|
|
goto closem; |
goto closem; |
} |
} |
|
|
notsame: |
|
/* |
/* |
* Files certainly differ at this point; set status accordingly |
* Files certainly differ at this point; set status accordingly |
*/ |
*/ |
|
|
} |
} |
} |
} |
close(ifd); |
close(ifd); |
|
lseek(ofd, (off_t)0, SEEK_SET); |
return (fdopen(ofd, "r")); |
return (fdopen(ofd, "r")); |
} |
} |
|
|