Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 49) sorted by relevance

12

/system/extras/ext4_utils/
Dmake_ext4fs.c79 struct stat stat; in build_directory_structure() local
106 ret = lstat(dentries[i].full_path, &stat); in build_directory_structure()
114 dentries[i].size = stat.st_size; in build_directory_structure()
115 dentries[i].mode = stat.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO); in build_directory_structure()
116 dentries[i].mtime = stat.st_mtime; in build_directory_structure()
122 int dir = S_ISDIR(stat.st_mode); in build_directory_structure()
132 if (S_ISREG(stat.st_mode)) { in build_directory_structure()
134 } else if (S_ISDIR(stat.st_mode)) { in build_directory_structure()
137 } else if (S_ISCHR(stat.st_mode)) { in build_directory_structure()
139 } else if (S_ISBLK(stat.st_mode)) { in build_directory_structure()
[all …]
/system/core/libdiskconfig/
Ddiskconfig.c241 struct stat stat; in sync_ptable() local
246 if (fstat(fd, &stat)) { in sync_ptable()
251 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) { in sync_ptable()
278 struct stat stat; in validate() local
288 if (fstat(fd, &stat)) { in validate()
299 if (S_ISBLK(stat.st_mode)) { in validate()
321 } else if (S_ISREG(stat.st_mode)) { in validate()
330 dinfo->num_lba = (uint32_t)(stat.st_size / dinfo->sect_size); in validate()
331 disk_size = (uint64_t)stat.st_size; in validate()
373 if (S_ISBLK(stat.st_mode) && total_size > disk_size) { in validate()
/system/core/adb/
Dfile_sync_service.c59 struct stat st; in do_stat()
61 msg.stat.id = ID_STAT; in do_stat()
64 msg.stat.mode = 0; in do_stat()
65 msg.stat.size = 0; in do_stat()
66 msg.stat.time = 0; in do_stat()
68 msg.stat.mode = htoll(st.st_mode); in do_stat()
69 msg.stat.size = htoll(st.st_size); in do_stat()
70 msg.stat.time = htoll(st.st_mtime); in do_stat()
73 return writex(s, &msg.stat, sizeof(msg.stat)); in do_stat()
80 struct stat st; in do_list()
Dfile_sync_client.c139 if(readx(fd, &msg.stat, sizeof(msg.stat))) { in sync_readtime()
143 if(msg.stat.id != ID_STAT) { in sync_readtime()
147 *timestamp = ltohl(msg.stat.time); in sync_readtime()
172 if(readx(fd, &msg.stat, sizeof(msg.stat))) in sync_finish_readtime()
175 if(msg.stat.id != ID_STAT) in sync_finish_readtime()
178 *timestamp = ltohl(msg.stat.time); in sync_finish_readtime()
179 *mode = ltohl(msg.stat.mode); in sync_finish_readtime()
180 *size = ltohl(msg.stat.size); in sync_finish_readtime()
198 if(readx(fd, &msg.stat, sizeof(msg.stat))) { in sync_readmode()
202 if(msg.stat.id != ID_STAT) { in sync_readmode()
[all …]
Dfile_sync_service.h60 } stat; member
/system/core/toolbox/
Dexists.c7 struct stat s; in exists_main()
11 if(stat(argv[1], &s)) { in exists_main()
Dls.c93 struct stat s; in show_total_size()
124 struct stat s; in listfile_size()
138 struct stat s; in listfile_long()
258 struct stat s; in listdir()
276 err = stat(tmp, &s); in listdir()
299 struct stat s; in listpath()
307 err = stat(name, &s); in listpath()
Dmv.c12 struct stat st; in mv_main()
22 if (stat(dest, &st)) { in mv_main()
Dcat.c157 struct stat sbuf; in raw_cat()
198 struct stat st; in raw_args()
Drm.c19 struct stat st; in unlink_recursive()
Dinsmod.c16 struct stat sb; in read_file()
Dps.c38 struct stat stats; in ps_line()
48 stat(statline, &stats); in ps_line()
/system/core/sh/
Dcd.c84 struct stat statb; in cdcmd()
125 if (stat(p, &statb) >= 0 && S_ISDIR(statb.st_mode)) { in cdcmd()
155 struct stat statb; in docd()
342 struct stat stdot, stpwd; in getpwd()
351 if (pwd && *pwd == '/' && stat(".", &stdot) != -1 && in getpwd()
352 stat(pwd, &stpwd) != -1 && in getpwd()
Dmain.c342 struct stat statb; in find_dot_file()
349 if ((stat(fullname, &statb) == 0) && S_ISREG(statb.st_mode)) { in find_dot_file()
/system/core/sdcard/
Dsdcard.c144 void attr_from_stat(struct fuse_attr *attr, struct stat *s) in attr_from_stat()
176 struct stat s; in node_get_attr()
278 struct stat s; in node_lookup()
592 struct statfs stat; in handle_fuse_request() local
598 if (statfs(fuse->root.name, &stat)) { in handle_fuse_request()
604 out.st.blocks = stat.f_blocks; in handle_fuse_request()
605 out.st.bfree = stat.f_bfree; in handle_fuse_request()
606 out.st.bavail = stat.f_bavail; in handle_fuse_request()
607 out.st.files = stat.f_files; in handle_fuse_request()
608 out.st.ffree = stat.f_ffree; in handle_fuse_request()
[all …]
/system/wlan/ti/sta_dk_4_0_4_32/common/src/TNETW_Driver/TNETWIF/TNETWArbiter/
DTNETWArb.c224 pTNETWArb->stat.uStart ++; in TNETWArb_Start()
297 pTNETWArb->stat.uRestart ++; in TNETWArb_Restart()
370 pTNETWArb->stat.uFinish ++; in TNETWArb_Finish()
587 WLAN_OS_REPORT (("Num of start = %u\n", pTNETWArb->stat.uStart)); in TNETWArb_PrintStat()
588 WLAN_OS_REPORT (("Num of restart = %u\n", pTNETWArb->stat.uRestart)); in TNETWArb_PrintStat()
589 WLAN_OS_REPORT (("Num of finish = %u\n", pTNETWArb->stat.uFinish)); in TNETWArb_PrintStat()
/system/extras/tests/directiotest/
Ddirectiotest.c174 struct stat stat; in main() local
192 if (fstat(fd, &stat) == -1) { in main()
195 } else if (!S_ISBLK(stat.st_mode)) { in main()
/system/core/cpio/
Dmkbootfs.c40 static void fix_stat(const char *path, struct stat *s) in fix_stat()
45 static void _eject(struct stat *s, char *out, int olen, char *data, unsigned datasize) in _eject()
97 struct stat s; in _eject_trailer()
186 struct stat s; in _archive()
/system/extras/tests/framebuffer/
Dmdp_test.c33 struct stat stat; in open_file() local
57 if (fstat(*fd, &stat) < 0) { in open_file()
62 *len = stat.st_size; in open_file()
/system/core/libcutils/
Ddir_hash.c42 struct stat sb; in get_file_hash()
52 if (stat(path, &sb) != 0) { in get_file_hash()
175 struct stat sb; in recurse()
235 if ((stat(name, &sb) == 0) && S_ISDIR(sb.st_mode)) { in recurse()
Dashmem-host.c98 struct stat buf; in ashmem_get_size_region()
/system/core/init/
Dutil.c312 struct stat info; in mkdir_recursive()
327 if (stat(buf, &info) != 0) { in mkdir_recursive()
385 struct stat info; in wait_for_file()
389 while (gettime() < timeout_time && ((ret = stat(filename, &info)) < 0)) in wait_for_file()
Ddevices.c294 struct stat info; in parse_platform_block_device()
457 struct stat st; in load_firmware()
690 struct stat info; in device_init()
700 if (stat(coldboot_done, &info) < 0) { in device_init()
/system/wlan/ti/sta_dk_4_0_4_32/common/src/TNETW_Driver/TNETWIF/Inc/
DTNETWArb.h102 TNETWArbStat_t stat; member
/system/core/nexus/
DController.cpp124 struct stat sb; in loadFile()

12