/dragonfly/contrib/zstd/programs/ |
H A D | util.c | 137 stat_t statbuf; in UTIL_isRegularFile() local 138 return UTIL_stat(infilename, &statbuf) && UTIL_isRegularFileStat(&statbuf); in UTIL_isRegularFile() 154 if (statbuf == NULL) { in UTIL_chmod() 203 stat_t statbuf; in UTIL_isDirectory() local 204 return UTIL_stat(infilename, &statbuf) && UTIL_isDirectoryStat(&statbuf); in UTIL_isDirectory() 245 stat_t statbuf; in UTIL_isFIFO() local 246 if (UTIL_stat(infilename, &statbuf) && UTIL_isFIFOStat(&statbuf)) return 1; in UTIL_isFIFO() 259 (void)statbuf; in UTIL_isFIFOStat() 267 stat_t statbuf; in UTIL_isLink() local 277 stat_t statbuf; in UTIL_getFileSize() local [all …]
|
H A D | util.h | 129 int UTIL_stat(const char* filename, stat_t* statbuf); 136 int UTIL_setFileStat(const char* filename, const stat_t* statbuf); 143 int UTIL_isRegularFileStat(const stat_t* statbuf); 144 int UTIL_isDirectoryStat(const stat_t* statbuf); 145 int UTIL_isFIFOStat(const stat_t* statbuf); 146 U64 UTIL_getFileSizeStat(const stat_t* statbuf); 153 int UTIL_chmod(char const* filename, const stat_t* statbuf, mode_t permissions);
|
/dragonfly/test/stress/stress2/testcases/mmap/ |
H A D | mmap.c | 78 struct stat statbuf; in test() local 90 if (fstat(fdin, &statbuf) < 0) in test() 93 if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1) in test() 100 if ((src = mmap(0, statbuf.st_size, PROT_READ, MAP_SHARED, fdin, 0)) == in test() 104 if ((dst = mmap(0, statbuf.st_size, PROT_READ | PROT_WRITE, in test() 108 memcpy(dst, src, statbuf.st_size); in test() 111 if (munmap(src, statbuf.st_size) == -1) in test() 115 if (munmap(dst, statbuf.st_size) == -1) in test()
|
/dragonfly/usr.sbin/cron/cron/ |
H A D | database.c | 42 struct stat statbuf; in load_database() local 54 if (stat(SPOOL_DIR, &statbuf) < OK) { in load_database() 71 if (old_db->mtime == TMAX(statbuf.st_mtime, syscron_stat.st_mtime)) { in load_database() 82 new_db.mtime = TMAX(statbuf.st_mtime, syscron_stat.st_mtime); in load_database() 115 &statbuf, &new_db, old_db); in load_database() 184 process_crontab(char *uname, char *fname, char *tabname, struct stat *statbuf, in process_crontab() argument 205 if (fstat(crontab_fd, statbuf) < OK) { in process_crontab() 216 if (u->mtime == statbuf->st_mtime) { in process_crontab() 237 u->mtime = statbuf->st_mtime; in process_crontab()
|
/dragonfly/contrib/binutils-2.34/binutils/ |
H A D | rename.c | 91 set_times (const char *destination, const struct stat *statbuf) in set_times() argument 99 tb.actime = statbuf->st_atime; in set_times() 100 tb.modtime = statbuf->st_mtime; in set_times() 106 tb[0] = statbuf->st_atime; in set_times() 107 tb[1] = statbuf->st_mtime; in set_times() 112 tv[0].tv_sec = statbuf->st_atime; in set_times() 114 tv[1].tv_sec = statbuf->st_mtime; in set_times()
|
H A D | bucomm.c | 606 struct stat statbuf; in get_file_size() local 611 if (stat (file_name, &statbuf) < 0) in get_file_size() 619 else if (S_ISDIR (statbuf.st_mode)) in get_file_size() 621 else if (! S_ISREG (statbuf.st_mode)) in get_file_size() 623 else if (statbuf.st_size < 0) in get_file_size() 627 return statbuf.st_size; in get_file_size()
|
/dragonfly/contrib/binutils-2.27/binutils/ |
H A D | rename.c | 91 set_times (const char *destination, const struct stat *statbuf) in set_times() argument 99 tb.actime = statbuf->st_atime; in set_times() 100 tb.modtime = statbuf->st_mtime; in set_times() 106 tb[0] = statbuf->st_atime; in set_times() 107 tb[1] = statbuf->st_mtime; in set_times() 112 tv[0].tv_sec = statbuf->st_atime; in set_times() 114 tv[1].tv_sec = statbuf->st_mtime; in set_times()
|
H A D | bucomm.c | 576 struct stat statbuf; in get_file_size() local 578 if (stat (file_name, &statbuf) < 0) in get_file_size() 586 else if (! S_ISREG (statbuf.st_mode)) in get_file_size() 588 else if (statbuf.st_size < 0) in get_file_size() 592 return statbuf.st_size; in get_file_size()
|
/dragonfly/tools/multimedia/cxm/extract_fw/ |
H A D | cxm_extract_fw.c | 119 struct stat statbuf; in main() local 136 if (fstat(fd, &statbuf) < 0) { in main() 144 if (!(start = (uint8_t *)mmap(NULL, (size_t) statbuf.st_size, in main() 149 end = start + statbuf.st_size; in main() 153 if (statbuf.st_size > 100000) { in main() 180 munmap((caddr_t)start, (size_t)statbuf.st_size); in main()
|
/dragonfly/contrib/cvs-1.12/src/ |
H A D | error.c | 114 char statbuf[256]; in error() local 128 buf = statbuf; in error() 133 length = sizeof (statbuf); in error() 135 buf = vasnprintf (statbuf, &length, message, args); in error() 186 if (buf != statbuf) free (buf); in error()
|
/dragonfly/usr.sbin/cron/crontab/ |
H A D | crontab.c | 301 struct stat statbuf, fsbuf; local 370 if (stat(Filename, &statbuf) < 0) { 375 if (statbuf.st_dev != fsbuf.st_dev || statbuf.st_ino != fsbuf.st_ino) 377 mtime = statbuf.st_mtime; 437 if (stat(Filename, &statbuf) < 0) { 441 if (statbuf.st_dev != fsbuf.st_dev || statbuf.st_ino != fsbuf.st_ino) 443 if (mtime == statbuf.st_mtime) {
|
/dragonfly/test/interbench/ |
H A D | interbench.c | 640 struct stat statbuf; in emulate_write() local 645 if (stat(name, &statbuf) == -1) in emulate_write() 660 if (stat(name, &statbuf) == -1) in emulate_write() 686 struct stat statbuf; in emulate_read() local 692 if (stat(name, &statbuf) == -1) in emulate_read() 694 bsize = statbuf.st_blksize; in emulate_read() 1105 struct stat statbuf; in create_read_file() local 1114 if (stat(name, &statbuf) == -1) in create_read_file() 1118 bsize = statbuf.st_blksize; in create_read_file() 1127 if (stat(name, &statbuf) == -1) in create_read_file() [all …]
|
/dragonfly/contrib/ncurses/ncurses/tinfo/ |
H A D | write_entry.c | 191 struct stat statbuf; in make_db_root() 193 if ((rc = stat(path, &statbuf)) < 0) { in make_db_root() 201 } else if (!(S_ISDIR(statbuf.st_mode))) { in make_db_root() 285 struct stat statbuf; in _nc_write_entry() 421 stat(filename, &statbuf) >= 0 in _nc_write_entry() 422 && statbuf.st_mtime >= start_time) { in _nc_write_entry() 430 if (statbuf.st_nlink > 1) { in _nc_write_entry() 445 if (stat(filename, &statbuf) < 0 in _nc_write_entry() 446 || (start_time = statbuf.st_mtime) == 0) { in _nc_write_entry() 475 } else if (stat(linkname, &statbuf) >= 0 && in _nc_write_entry() [all …]
|
/dragonfly/contrib/less/ |
H A D | filename.c | 992 struct stat statbuf; in is_dir() local 994 r = stat(filename, &statbuf); in is_dir() 995 isdir = (r >= 0 && S_ISDIR(statbuf.st_mode)); in is_dir() 1033 struct stat statbuf; in bad_file() local 1035 r = stat(filename, &statbuf); in bad_file() 1042 } else if (!S_ISREG(statbuf.st_mode)) in bad_file() 1062 struct stat statbuf; in filesize() local 1064 if (fstat(f, &statbuf) >= 0) in filesize() 1065 return ((POSITION) statbuf.st_size); in filesize()
|
/dragonfly/contrib/binutils-2.27/bfd/ |
H A D | bfdio.c | 262 bfd_stat (bfd *abfd, struct stat *statbuf) in bfd_stat() argument 267 result = abfd->iovec->bstat (abfd, statbuf); in bfd_stat() 599 memory_bstat (bfd *abfd, struct stat *statbuf) in memory_bstat() argument 603 memset (statbuf, 0, sizeof (*statbuf)); in memory_bstat() 604 statbuf->st_size = bim->size; in memory_bstat()
|
H A D | elfcore.h | 283 struct stat statbuf; in elf_core_file_p() local 294 if (bfd_stat (abfd, &statbuf) == 0) in elf_core_file_p() 296 if ((bfd_size_type) statbuf.st_size < high) in elf_core_file_p() 301 abfd, (unsigned long) high, (unsigned long) statbuf.st_size); in elf_core_file_p()
|
/dragonfly/contrib/gdb-7/bfd/ |
H A D | bfdio.c | 263 bfd_stat (bfd *abfd, struct stat *statbuf) in bfd_stat() argument 268 result = abfd->iovec->bstat (abfd, statbuf); in bfd_stat() 599 memory_bstat (bfd *abfd, struct stat *statbuf) in memory_bstat() argument 603 memset (statbuf, 0, sizeof (*statbuf)); in memory_bstat() 604 statbuf->st_size = bim->size; in memory_bstat()
|
H A D | elfcore.h | 289 struct stat statbuf; in elf_core_file_p() local 300 if (bfd_stat (abfd, &statbuf) == 0) in elf_core_file_p() 302 if ((bfd_size_type) statbuf.st_size < high) in elf_core_file_p() 307 abfd, (unsigned long) high, (unsigned long) statbuf.st_size); in elf_core_file_p()
|
/dragonfly/contrib/binutils-2.34/bfd/ |
H A D | bfdio.c | 283 bfd_stat (bfd *abfd, struct stat *statbuf) in bfd_stat() argument 297 result = abfd->iovec->bstat (abfd, statbuf); in bfd_stat() 624 memory_bstat (bfd *abfd, struct stat *statbuf) in memory_bstat() argument 628 memset (statbuf, 0, sizeof (*statbuf)); in memory_bstat() 629 statbuf->st_size = bim->size; in memory_bstat()
|
H A D | elfcore.h | 291 struct stat statbuf; in elf_core_file_p() local 302 if (bfd_stat (abfd, &statbuf) == 0) in elf_core_file_p() 304 if ((bfd_size_type) statbuf.st_size < high) in elf_core_file_p() 310 abfd, (uint64_t) high, (uint64_t) statbuf.st_size); in elf_core_file_p()
|
/dragonfly/contrib/lvm2/dist/daemons/cmirrord/ |
H A D | functions.c | 304 struct stat statbuf; in find_disk_path() local 308 r = stat(major_minor_str, &statbuf); in find_disk_path() 311 if (!S_ISBLK(statbuf.st_mode)) in find_disk_path() 336 stat(path_rtn, &statbuf); in find_disk_path() 337 if (S_ISBLK(statbuf.st_mode) && in find_disk_path() 1387 struct stat statbuf; in disk_status_info() local 1389 if(fstat(lc->disk_fd, &statbuf)) { in disk_status_info() 1395 major(statbuf.st_rdev), minor(statbuf.st_rdev), in disk_status_info() 1440 struct stat statbuf; in disk_status_table() local 1442 if(fstat(lc->disk_fd, &statbuf)) { in disk_status_table() [all …]
|
/dragonfly/usr.sbin/ypserv/ |
H A D | yp_access.c | 311 struct stat statbuf; local 321 if (stat(dompath, &statbuf) < 0 || !S_ISDIR(statbuf.st_mode))
|
/dragonfly/contrib/gdb-7/gdb/common/ |
H A D | linux-osdata.c | 243 struct stat statbuf; in get_process_owner() local 248 if (stat (procentry, &statbuf) == 0 && S_ISDIR (statbuf.st_mode)) in get_process_owner() 250 *owner = statbuf.st_uid; in get_process_owner() 590 struct stat statbuf; in linux_xfer_osdata_threads() local 598 if (stat (procentry, &statbuf) == 0 in linux_xfer_osdata_threads() 599 && S_ISDIR (statbuf.st_mode)) in linux_xfer_osdata_threads() 704 struct stat statbuf; in linux_xfer_osdata_fds() local 712 if (stat (procentry, &statbuf) == 0 in linux_xfer_osdata_fds() 713 && S_ISDIR (statbuf.st_mode)) in linux_xfer_osdata_fds()
|
/dragonfly/test/stress/fsx/ |
H A D | fsx.c | 414 struct stat statbuf; in check_size() local 417 if (fstat(fd, &statbuf)) { in check_size() 419 statbuf.st_size = -1; in check_size() 422 if (file_size != statbuf.st_size || file_size != size_by_seek) { in check_size() 425 (unsigned long long)statbuf.st_size, in check_size() 435 struct stat statbuf; in check_trunc_hack() local 439 fstat(fd, &statbuf); in check_trunc_hack() 440 if (statbuf.st_size != (off_t)100000) { in check_trunc_hack()
|
/dragonfly/contrib/binutils-2.34/gas/ |
H A D | hash.c | 422 int statbuf[STATBUFSIZE]; variable 524 hash_say (h, statbuf, STATBUFSIZE); in main() 525 for (ip = statbuf; ip < statbuf + STATBUFSIZE; ip++) in main()
|