9 date 93.08.25.18.29.28; author jromine; state Exp;
14 date 93.08.25.17.43.26; author jromine; state Exp;
19 date 93.08.25.17.19.34; author jromine; state Exp;
24 date 93.08.25.17.19.21; author jromine; state Exp;
38 @/* fdcompare.c - are two files identical? */
40 static char Id[] = "@@(#)$Id: fdcompare.c,v 1.3 1993/08/25 17:43:26 jromine Exp jromine $";
45 #include <sys/types.h> /* for off_t */
64 while ((n1 = read (fd1, b1, sizeof b1)) >= 0
65 && (n2 = read (fd2, b2, sizeof b2)) >= 0
69 for (i = n1 < sizeof b1 ? n1 : sizeof b1; i--;)
80 (void) lseek (fd1, (off_t)0, 0);
81 (void) lseek (fd2, (off_t)0, 0);
94 static char Id[] = "@@(#)$Id:$";
101 @off_t fixes for BSD44
118 (void) lseek (fd1, 0L, 0);
119 (void) lseek (fd2, 0L, 0);