Searched defs:statbuf (Results 1 - 9 of 9) sorted by relevance

/system/extras/tests/storage/
H A Dopentest.c32 struct stat statbuf; local
49 if (stat(dir, &statbuf)) {
54 if (! S_ISDIR(statbuf.st_mode)) {
H A Dwipe_blkdev.c86 struct stat statbuf; local
110 if (fstat(fd, &statbuf) < 0) {
115 if (!S_ISBLK(statbuf.st_mode)) {
/system/extras/boot_control_copy/
H A Dboot_control_copy.cpp46 struct stat statbuf; local
51 if (fstat(fd, &statbuf) != 0) {
58 *out_device = statbuf.st_rdev;
64 struct stat statbuf; local
67 if (stat("/system", &statbuf) != 0) {
77 if (statbuf.st_dev == system_a_dev) {
79 } else if (statbuf.st_dev == system_b_dev) {
84 major(statbuf.st_dev), minor(statbuf.st_dev),
/system/extras/ioshark/
H A Dioshark_bench_mmap.c174 struct stat statbuf; local
176 if (fstat(files_db_get_fd(db_node), &statbuf) < 0) {
186 assert(offset + len <= statbuf.st_size);
H A Dioshark_bench_subr.c634 struct stat statbuf; local
636 if (stat(filename, &statbuf) < 0) {
640 if (!S_ISREG(statbuf.st_mode)) {
644 if ((size_t)statbuf.st_size < size) {
/system/update_engine/
H A Dhardware_chromeos.cc129 struct stat statbuf; local
130 if (stat(kOOBECompletedMarker, &statbuf) != 0) {
139 *out_time_of_oobe = base::Time::FromTimeT(statbuf.st_mtime);
H A Dp2p_manager.cc587 struct stat statbuf; local
591 if (stat(path.value().c_str(), &statbuf) == 0) {
596 if (stat(path.value().c_str(), &statbuf) == 0) {
/system/core/logcat/
H A Dlogcat.cpp408 struct stat statbuf; local
409 if (fstat(context->output_fd, &statbuf) == -1) {
415 if ((size_t)statbuf.st_size > SIZE_MAX || statbuf.st_size < 0) {
423 context->outByteCount = statbuf.st_size;
/system/vold/
H A Dcryptfs.cpp519 struct stat statbuf; local
547 fstat(fd, &statbuf);
549 if (S_ISREG(statbuf.st_mode)) {
667 struct stat statbuf; local
683 fstat(fd, &statbuf);
684 if (S_ISREG(statbuf.st_mode) && (statbuf.st_size != 0x4000)) {

Completed in 406 milliseconds