Searched refs:statbuf (Results 1 – 13 of 13) sorted by relevance
/system/extras/boot_control_copy/ |
D | boot_control_copy.cpp | 42 struct stat statbuf; in get_dev_t_for_partition() local 46 if (fstat(fd, &statbuf) != 0) { in get_dev_t_for_partition() 53 *out_device = statbuf.st_rdev; in get_dev_t_for_partition() 58 struct stat statbuf; in module_getCurrentSlot() local 61 if (stat("/system", &statbuf) != 0) { in module_getCurrentSlot() 70 if (statbuf.st_dev == system_a_dev) { in module_getCurrentSlot() 72 } else if (statbuf.st_dev == system_b_dev) { in module_getCurrentSlot() 78 major(statbuf.st_dev), minor(statbuf.st_dev), major(system_a_dev), minor(system_a_dev), in module_getCurrentSlot()
|
/system/iorap/src/inode2filename/ |
D | system_call.h | 30 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()
|
D | search_directories.cc | 713 struct stat statbuf{}; in Stat() struct 716 if (system_call->stat(path_name.c_str(), /*out*/&statbuf) == 0) { in Stat() 717 return statbuf; in Stat()
|
/system/extras/tests/storage/ |
D | opentest.c | 32 struct stat statbuf; in main() local 49 if (stat(dir, &statbuf)) { in main() 54 if (! S_ISDIR(statbuf.st_mode)) { in main()
|
D | wipe_blkdev.c | 86 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/ |
D | Util.cpp | 57 struct stat statbuf; in fileGetContents() local 58 if (fstat(fd, &statbuf) != 0) { in fileGetContents() 64 data.resize(statbuf.st_size); in fileGetContents()
|
D | CredentialData.cpp | 468 struct stat statbuf; in credentialExists() local 470 if (stat(filename.c_str(), &statbuf) != 0) { in credentialExists()
|
/system/extras/ioshark/ |
D | ioshark_bench_mmap.c | 174 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()
|
D | ioshark_bench_subr.c | 629 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/cros/ |
D | hardware_chromeos.cc | 143 struct stat statbuf; in IsOOBEComplete() local 144 if (stat(kOOBECompletedMarker, &statbuf) != 0) { in IsOOBEComplete() 152 *out_time_of_oobe = base::Time::FromTimeT(statbuf.st_mtime); in IsOOBEComplete()
|
D | p2p_manager.cc | 577 struct stat statbuf; in FileGetPath() local 581 if (stat(path.value().c_str(), &statbuf) == 0) { in FileGetPath() 586 if (stat(path.value().c_str(), &statbuf) == 0) { in FileGetPath()
|
/system/logging/logcat/ |
D | logcat.cpp | 277 struct stat statbuf; in SetupOutputAndSchedulingPolicy() local 278 if (fstat(output_fd_.get(), &statbuf) == -1) { in SetupOutputAndSchedulingPolicy() 282 if ((size_t)statbuf.st_size > SIZE_MAX || statbuf.st_size < 0) { in SetupOutputAndSchedulingPolicy() 286 out_byte_count_ = statbuf.st_size; in SetupOutputAndSchedulingPolicy()
|
/system/vold/ |
D | cryptfs.cpp | 678 struct stat statbuf; in put_crypt_ftr_and_key() local 706 fstat(fd, &statbuf); in put_crypt_ftr_and_key() 708 if (S_ISREG(statbuf.st_mode)) { in put_crypt_ftr_and_key() 818 struct stat statbuf; in get_crypt_ftr_and_key() local 834 fstat(fd, &statbuf); in get_crypt_ftr_and_key() 835 if (S_ISREG(statbuf.st_mode) && (statbuf.st_size != 0x4000)) { in get_crypt_ftr_and_key()
|