Home
last modified time | relevance | path

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

/system/core/libprocinfo/include/procinfo/
Dprocess.h69 struct dirent* dent; variable
70 while ((dent = readdir(dir.get()))) {
71 if (strcmp(dent->d_name, ".") != 0 && strcmp(dent->d_name, "..") != 0) {
73 if (!android::base::ParseInt(dent->d_name, &tid, 1, std::numeric_limits<pid_t>::max())) {
74 LOG(ERROR) << "failed to parse task id: " << dent->d_name;
/system/core/adb/
Dfile_sync_service.cpp153 msg.dent.id = ID_DENT; in do_list()
164 msg.dent.mode = st.st_mode; in do_list()
165 msg.dent.size = st.st_size; in do_list()
166 msg.dent.time = st.st_mtime; in do_list()
167 msg.dent.namelen = d_name_length; in do_list()
169 if (!WriteFdExactly(s, &msg.dent, sizeof(msg.dent)) || in do_list()
177 msg.dent.id = ID_DONE; in do_list()
178 msg.dent.mode = 0; in do_list()
179 msg.dent.size = 0; in do_list()
180 msg.dent.time = 0; in do_list()
[all …]
Dfile_sync_service.h71 } dent; member
Dfile_sync_client.cpp620 if (!ReadFdExactly(sc.fd, &msg.dent, sizeof(msg.dent))) return false; in sync_ls()
622 if (msg.dent.id == ID_DONE) return true; in sync_ls()
623 if (msg.dent.id != ID_DENT) return false; in sync_ls()
625 size_t len = msg.dent.namelen; in sync_ls()
632 func(msg.dent.mode, msg.dent.size, msg.dent.time, buf); in sync_ls()
Dadb_auth_host.cpp227 while (struct dirent* dent = readdir(dir.get())) { in read_keys() local
228 std::string name = dent->d_name; in read_keys()
/system/vold/
DCommandListener.cpp367 struct dirent *dent = (struct dirent *) malloc(dirent_len); in listAsecsInDirectory() local
368 if (dent == NULL) { in listAsecsInDirectory()
375 while (!readdir_r(d, dent, &result) && result != NULL) { in listAsecsInDirectory()
376 if (dent->d_name[0] == '.') in listAsecsInDirectory()
378 if (dent->d_type != DT_REG) in listAsecsInDirectory()
380 size_t name_len = strlen(dent->d_name); in listAsecsInDirectory()
382 !strcmp(&dent->d_name[name_len - 5], ".asec")) { in listAsecsInDirectory()
385 strlcpy(id, dent->d_name, name_len - 4); in listAsecsInDirectory()
391 free(dent); in listAsecsInDirectory()