/system/extras/boot_control_copy/ |
D | boot_control_copy.cpp | 46 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/ |
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 | 456 struct stat statbuf; in credentialExists() local 458 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/ |
D | hardware_chromeos.cc | 135 struct stat statbuf; in IsOOBEComplete() local 136 if (stat(kOOBECompletedMarker, &statbuf) != 0) { in IsOOBEComplete() 144 *out_time_of_oobe = base::Time::FromTimeT(statbuf.st_mtime); in IsOOBEComplete()
|
D | p2p_manager.cc | 582 struct stat statbuf; in FileGetPath() local 586 if (stat(path.value().c_str(), &statbuf) == 0) { in FileGetPath() 591 if (stat(path.value().c_str(), &statbuf) == 0) { in FileGetPath()
|
/system/core/logcat/ |
D | logcat.cpp | 271 struct stat statbuf; in SetupOutputAndSchedulingPolicy() local 272 if (fstat(output_fd_.get(), &statbuf) == -1) { in SetupOutputAndSchedulingPolicy() 276 if ((size_t)statbuf.st_size > SIZE_MAX || statbuf.st_size < 0) { in SetupOutputAndSchedulingPolicy() 280 out_byte_count_ = statbuf.st_size; in SetupOutputAndSchedulingPolicy()
|
/system/iorap/tests/src/inode2filename/ |
D | search_directories_test.cc | 2438 virtual int stat(const char *pathname, struct stat *statbuf) override { in stat() argument 2439 if (pathname == nullptr || statbuf == nullptr) { in stat() 2451 memset(statbuf, 0, sizeof(*statbuf)); in stat() 2454 statbuf->st_dev = iorap::inode2filename::makedev(static_cast<int>(inode.device_major), in stat() 2456 statbuf->st_ino = static_cast<iorap::inode2filename::ino_t>(inode.inode); in stat()
|
/system/vold/ |
D | cryptfs.cpp | 598 struct stat statbuf; in put_crypt_ftr_and_key() local 626 fstat(fd, &statbuf); in put_crypt_ftr_and_key() 628 if (S_ISREG(statbuf.st_mode)) { in put_crypt_ftr_and_key() 738 struct stat statbuf; in get_crypt_ftr_and_key() local 754 fstat(fd, &statbuf); in get_crypt_ftr_and_key() 755 if (S_ISREG(statbuf.st_mode) && (statbuf.st_size != 0x4000)) { in get_crypt_ftr_and_key()
|