1 /* fdcompare.c - are two files identical? */
3 static char Id[] = "@(#)$Id: fdcompare.c,v 1.4 1993/08/25 18:29:28 jromine Exp $";
8 #include <sys/types.h> /* for off_t */
27 while ((n1 = read (fd1, b1, sizeof b1)) >= 0
28 && (n2 = read (fd2, b2, sizeof b2)) >= 0
32 for (i = n1 < sizeof b1 ? n1 : sizeof b1; i--;)
43 (void) lseek (fd1, (off_t)0, 0);
44 (void) lseek (fd2, (off_t)0, 0);