Searched refs: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.c46 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/update_engine/
H A Dhardware_chromeos.cc128 struct stat statbuf; local
129 if (stat(kOOBECompletedMarker, &statbuf) != 0) {
138 *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/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.c626 struct stat statbuf; local
628 if (stat(filename, &statbuf) < 0) {
632 if (!S_ISREG(statbuf.st_mode)) {
636 if ((size_t)statbuf.st_size < size) {
/system/vold/
H A Dcryptfs.cpp364 struct stat statbuf; local
392 fstat(fd, &statbuf);
394 if (S_ISREG(statbuf.st_mode)) {
512 struct stat statbuf; local
528 fstat(fd, &statbuf);
529 if (S_ISREG(statbuf.st_mode) && (statbuf.st_size != 0x4000)) {
/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;

Completed in 151 milliseconds