Lines Matching refs:f2
145 cmp(const char* file1, Sfio_t* f1, const char* file2, Sfio_t* f2, int flags, Sfoff_t count, Sfoff_t differences)
167 if ((e2 - p2) > 0 || sfreserve(f2, SF_UNBOUND, 0) && sfvalue(f2) > 0)
182 if (!(p2 = (unsigned char*)sfreserve(f2, SF_UNBOUND, 0)) || (c2 = sfvalue(f2)) <= 0)
259 Sfio_t* f2 = 0;
325 f2 = sfstdin;
326 else if (!(f2 = sfopen(NiL, file2, "r")))
362 if (o2 && sfseek(f2, o2, SEEK_SET) != o2)
371 else if (fstat(sffileno(f2), &s2))
376 n = ((flags & CMP_SILENT) && S_ISREG(s1.st_mode) && S_ISREG(s2.st_mode) && (s1.st_size - o1) != (s2.st_size - o2)) ? 1 : cmp(file1, f1, file2, f2, flags, count, differences);
380 if (f2 && f2 != sfstdin)
381 sfclose(f2);