Searched refs:statbuf (Results 1 – 12 of 12) sorted by relevance
/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 | 651 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/ |
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/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 | 636 struct stat statbuf; in is_readonly_mount() local 638 if (stat(filename, &statbuf) < 0) { in is_readonly_mount() 642 if (!S_ISREG(statbuf.st_mode)) { in is_readonly_mount() 646 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/iorap/tests/src/inode2filename/ |
D | search_directories_test.cc | 2433 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/core/logcat/ |
D | logcat.cpp | 411 struct stat statbuf; in setupOutputAndSchedulingPolicy() local 412 if (fstat(context->output_fd, &statbuf) == -1) { in setupOutputAndSchedulingPolicy() 418 if ((size_t)statbuf.st_size > SIZE_MAX || statbuf.st_size < 0) { in setupOutputAndSchedulingPolicy() 426 context->outByteCount = statbuf.st_size; in setupOutputAndSchedulingPolicy()
|
/system/vold/ |
D | cryptfs.cpp | 524 struct stat statbuf; in put_crypt_ftr_and_key() local 552 fstat(fd, &statbuf); in put_crypt_ftr_and_key() 554 if (S_ISREG(statbuf.st_mode)) { in put_crypt_ftr_and_key() 664 struct stat statbuf; in get_crypt_ftr_and_key() local 680 fstat(fd, &statbuf); in get_crypt_ftr_and_key() 681 if (S_ISREG(statbuf.st_mode) && (statbuf.st_size != 0x4000)) { in get_crypt_ftr_and_key()
|