Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 – 14 of 14) sorted by relevance

/system/extras/boot_control_copy/
Dboot_control_copy.cpp46 struct stat statbuf; in get_dev_t_for_partition() local
51 if (fstat(fd, &statbuf) != 0) { in get_dev_t_for_partition()
58 *out_device = statbuf.st_rdev; in get_dev_t_for_partition()
64 struct stat statbuf; in module_getCurrentSlot() local
67 if (stat("/system", &statbuf) != 0) { in module_getCurrentSlot()
77 if (statbuf.st_dev == system_a_dev) { in module_getCurrentSlot()
79 } else if (statbuf.st_dev == system_b_dev) { in module_getCurrentSlot()
84 major(statbuf.st_dev), minor(statbuf.st_dev), in module_getCurrentSlot()
/system/iorap/src/inode2filename/
Dsystem_call.h30 virtual int stat(const char *pathname, struct stat *statbuf) = 0;
50 virtual int stat(const char *pathname, struct stat *statbuf) override { in stat()
51 return ::stat(pathname, statbuf); in stat()
Dsearch_directories.cc651 struct stat statbuf{}; in Stat() struct
654 if (system_call->stat(path_name.c_str(), /*out*/&statbuf) == 0) { in Stat()
655 return statbuf; in Stat()
/system/extras/tests/storage/
Dopentest.c32 struct stat statbuf; in main() local
49 if (stat(dir, &statbuf)) { in main()
54 if (! S_ISDIR(statbuf.st_mode)) { in main()
Dwipe_blkdev.c86 struct stat statbuf; in main() local
110 if (fstat(fd, &statbuf) < 0) { in main()
115 if (!S_ISBLK(statbuf.st_mode)) { in main()
/system/security/identity/
DUtil.cpp57 struct stat statbuf; in fileGetContents() local
58 if (fstat(fd, &statbuf) != 0) { in fileGetContents()
64 data.resize(statbuf.st_size); in fileGetContents()
DCredentialData.cpp456 struct stat statbuf; in credentialExists() local
458 if (stat(filename.c_str(), &statbuf) != 0) { in credentialExists()
/system/extras/ioshark/
Dioshark_bench_mmap.c174 struct stat statbuf; in ioshark_handle_mmap() local
176 if (fstat(files_db_get_fd(db_node), &statbuf) < 0) { in ioshark_handle_mmap()
186 assert(offset + len <= statbuf.st_size); in ioshark_handle_mmap()
Dioshark_bench_subr.c629 struct stat statbuf; in is_readonly_mount() local
631 if (stat(filename, &statbuf) < 0) { in is_readonly_mount()
635 if (!S_ISREG(statbuf.st_mode)) { in is_readonly_mount()
639 if ((size_t)statbuf.st_size < size) { in is_readonly_mount()
/system/update_engine/
Dhardware_chromeos.cc163 struct stat statbuf; in IsOOBEComplete() local
164 if (stat(kOOBECompletedMarker, &statbuf) != 0) { in IsOOBEComplete()
172 *out_time_of_oobe = base::Time::FromTimeT(statbuf.st_mtime); in IsOOBEComplete()
Dp2p_manager.cc581 struct stat statbuf; in FileGetPath() local
585 if (stat(path.value().c_str(), &statbuf) == 0) { in FileGetPath()
590 if (stat(path.value().c_str(), &statbuf) == 0) { in FileGetPath()
/system/core/logcat/
Dlogcat.cpp273 struct stat statbuf; in SetupOutputAndSchedulingPolicy() local
274 if (fstat(output_fd_.get(), &statbuf) == -1) { in SetupOutputAndSchedulingPolicy()
278 if ((size_t)statbuf.st_size > SIZE_MAX || statbuf.st_size < 0) { in SetupOutputAndSchedulingPolicy()
282 out_byte_count_ = statbuf.st_size; in SetupOutputAndSchedulingPolicy()
/system/iorap/tests/src/inode2filename/
Dsearch_directories_test.cc2433 virtual int stat(const char *pathname, struct stat *statbuf) override { in stat() argument
2434 if (pathname == nullptr || statbuf == nullptr) { in stat()
2446 memset(statbuf, 0, sizeof(*statbuf)); in stat()
2449 statbuf->st_dev = makedev(static_cast<int>(inode.device_major), in stat()
2451 statbuf->st_ino = static_cast<ino_t>(inode.inode); in stat()
/system/vold/
Dcryptfs.cpp595 struct stat statbuf; in put_crypt_ftr_and_key() local
623 fstat(fd, &statbuf); in put_crypt_ftr_and_key()
625 if (S_ISREG(statbuf.st_mode)) { in put_crypt_ftr_and_key()
735 struct stat statbuf; in get_crypt_ftr_and_key() local
751 fstat(fd, &statbuf); in get_crypt_ftr_and_key()
752 if (S_ISREG(statbuf.st_mode) && (statbuf.st_size != 0x4000)) { in get_crypt_ftr_and_key()