Lines Matching refs:stat_buf
71 static struct stat stat_buf[2];
293 if (file_desc[f1] < 0 || fstat (file_desc[f1], stat_buf + f1) != 0)
311 if (0 < same_file (&stat_buf[0], &stat_buf[1])
312 && same_file_attributes (&stat_buf[0], &stat_buf[1])
334 && S_ISREG (stat_buf[0].st_mode)
335 && S_ISREG (stat_buf[1].st_mode))
337 off_t s0 = stat_buf[0].st_size - file_position (0);
338 off_t s1 = stat_buf[1].st_size - file_position (1);
349 buf_size = buffer_lcm (STAT_BLOCKSIZE (stat_buf[0]),
350 STAT_BLOCKSIZE (stat_buf[1]),
398 if (S_ISREG (stat_buf[f].st_mode))
400 off_t file_bytes = stat_buf[f].st_size - file_position (f);