Home
last modified time | relevance | path

Searched refs:stat_buf (Results 1 – 5 of 5) sorted by relevance

/freebsd-13.1/contrib/diff/src/
H A Dcmp.c63 static struct stat stat_buf[2]; variable
304 if (0 < same_file (&stat_buf[0], &stat_buf[1]) in main()
305 && same_file_attributes (&stat_buf[0], &stat_buf[1]) in main()
327 && S_ISREG (stat_buf[0].st_mode) in main()
328 && S_ISREG (stat_buf[1].st_mode)) in main()
330 off_t s0 = stat_buf[0].st_size - file_position (0); in main()
331 off_t s1 = stat_buf[1].st_size - file_position (1); in main()
342 buf_size = buffer_lcm (STAT_BLOCKSIZE (stat_buf[0]), in main()
343 STAT_BLOCKSIZE (stat_buf[1]), in main()
390 if (S_ISREG (stat_buf[f].st_mode)) in cmp()
[all …]
/freebsd-13.1/tests/sys/cddl/zfs/tests/ctime/
H A Dctime_001_pos.c186 struct stat stat_buf; in get_file_time() local
192 if (stat(pfile, &stat_buf) == -1) { in get_file_time()
198 *ptr = stat_buf.st_atime; in get_file_time()
201 *ptr = stat_buf.st_ctime; in get_file_time()
204 *ptr = stat_buf.st_mtime; in get_file_time()
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/ctime/
H A Dctime.c75 struct stat stat_buf; in get_file_time() local
81 if (stat(pfile, &stat_buf) == -1) { in get_file_time()
87 *ptr = stat_buf.st_atime; in get_file_time()
90 *ptr = stat_buf.st_ctime; in get_file_time()
93 *ptr = stat_buf.st_mtime; in get_file_time()
/freebsd-13.1/usr.bin/sort/
H A Dfile.c630 struct stat stat_buf; in file_reader_init() local
641 if (fstat(fd, &stat_buf) < 0) { in file_reader_init()
646 sz = stat_buf.st_size; in file_reader_init()
/freebsd-13.1/contrib/diff/
H A DChangeLog1118 (stat_buf): New static var; was formerly a local var in 'main'.
2535 (main): Likewise, for stat_buf[12]. Index these variables with `i'.