Searched refs:stat_buf (Results 1 – 6 of 6) sorted by relevance
| /freebsd/contrib/diff/src/ |
| H A D | cmp.c | 63 static struct stat stat_buf[2]; variable 290 if (file_desc[f1] < 0 || fstat (file_desc[f1], stat_buf + f1) != 0) in main() 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() [all …]
|
| /freebsd/tests/sys/cddl/zfs/tests/ctime/ |
| H A D | ctime_001_pos.c | 184 struct stat stat_buf; in get_file_time() local 190 if (stat(pfile, &stat_buf) == -1) { in get_file_time() 196 *ptr = stat_buf.st_atime; in get_file_time() 199 *ptr = stat_buf.st_ctime; in get_file_time() 202 *ptr = stat_buf.st_mtime; in get_file_time()
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | ctime.c | 75 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/crypto/krb5/src/appl/gss-sample/ |
| H A D | gss-client.c | 333 struct stat stat_buf; in read_file() local 340 if (fstat(fd, &stat_buf) < 0) { in read_file() 344 in_buf->length = stat_buf.st_size; in read_file()
|
| /freebsd/usr.bin/sort/ |
| H A D | file.c | 607 struct stat stat_buf; in file_reader_init() local 618 if (fstat(fd, &stat_buf) < 0) { in file_reader_init() 623 sz = stat_buf.st_size; in file_reader_init()
|
| /freebsd/contrib/diff/ |
| H A D | ChangeLog | 1118 (stat_buf): New static var; was formerly a local var in 'main'. 2535 (main): Likewise, for stat_buf[12]. Index these variables with `i'.
|