Home
last modified time | relevance | path

Searched refs:dent (Results 1 – 5 of 5) sorted by relevance

/system/core/adb/
Dfile_sync_service.c119 msg.dent.id = ID_DENT; in do_list()
133 msg.dent.mode = htoll(st.st_mode); in do_list()
134 msg.dent.size = htoll(st.st_size); in do_list()
135 msg.dent.time = htoll(st.st_mtime); in do_list()
136 msg.dent.namelen = htoll(len); in do_list()
138 if(writex(s, &msg.dent, sizeof(msg.dent)) || in do_list()
149 msg.dent.id = ID_DONE; in do_list()
150 msg.dent.mode = 0; in do_list()
151 msg.dent.size = 0; in do_list()
152 msg.dent.time = 0; in do_list()
[all …]
Dfile_sync_client.c112 if(readx(fd, &msg.dent, sizeof(msg.dent))) break; in sync_ls()
113 if(msg.dent.id == ID_DONE) return 0; in sync_ls()
114 if(msg.dent.id != ID_DENT) break; in sync_ls()
116 len = ltohl(msg.dent.namelen); in sync_ls()
122 func(ltohl(msg.dent.mode), in sync_ls()
123 ltohl(msg.dent.size), in sync_ls()
124 ltohl(msg.dent.time), in sync_ls()
Dfile_sync_service.h67 } dent; member
/system/vold/
DCommandListener.cpp309 struct dirent *dent = (struct dirent *) malloc(dirent_len); in listAsecsInDirectory() local
310 if (dent == NULL) { in listAsecsInDirectory()
317 while (!readdir_r(d, dent, &result) && result != NULL) { in listAsecsInDirectory()
318 if (dent->d_name[0] == '.') in listAsecsInDirectory()
320 if (dent->d_type != DT_REG) in listAsecsInDirectory()
322 size_t name_len = strlen(dent->d_name); in listAsecsInDirectory()
324 !strcmp(&dent->d_name[name_len - 5], ".asec")) { in listAsecsInDirectory()
327 strlcpy(id, dent->d_name, name_len - 4); in listAsecsInDirectory()
333 free(dent); in listAsecsInDirectory()
DVolumeManager.cpp1760 struct dirent *dent = (struct dirent *) malloc(dirent_len); in unmountAllAsecsInDir() local
1761 if (dent == NULL) { in unmountAllAsecsInDir()
1767 while (!readdir_r(d, dent, &result) && result != NULL) { in unmountAllAsecsInDir()
1768 if (dent->d_name[0] == '.') in unmountAllAsecsInDir()
1770 if (dent->d_type != DT_REG) in unmountAllAsecsInDir()
1772 size_t name_len = strlen(dent->d_name); in unmountAllAsecsInDir()
1774 !strcmp(&dent->d_name[name_len - 5], ASEC_SUFFIX)) { in unmountAllAsecsInDir()
1776 strlcpy(id, dent->d_name, name_len - 4); in unmountAllAsecsInDir()
1785 free(dent); in unmountAllAsecsInDir()