Lines Matching refs:stat_buf
64 static struct stat stat_buf[2];
293 if (file_desc[f1] < 0 || fstat (file_desc[f1], stat_buf + f1) != 0)
307 if (0 < same_file (&stat_buf[0], &stat_buf[1])
308 && same_file_attributes (&stat_buf[0], &stat_buf[1])
330 && S_ISREG (stat_buf[0].st_mode)
331 && S_ISREG (stat_buf[1].st_mode))
333 off_t s0 = stat_buf[0].st_size - file_position (0);
334 off_t s1 = stat_buf[1].st_size - file_position (1);
345 buf_size = buffer_lcm (STAT_BLOCKSIZE (stat_buf[0]),
346 STAT_BLOCKSIZE (stat_buf[1]),
394 if (S_ISREG (stat_buf[f].st_mode))
396 off_t file_bytes = stat_buf[f].st_size - file_position (f);