Home
last modified time | relevance | path

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

/system/core/libprocinfo/include/procinfo/
Dprocess.h81 struct dirent* dent; variable
82 while ((dent = readdir(dir.get()))) {
83 if (strcmp(dent->d_name, ".") != 0 && strcmp(dent->d_name, "..") != 0) {
85 if (!android::base::ParseInt(dent->d_name, &tid, 1, std::numeric_limits<pid_t>::max())) {
87 *error = std::string("failed to parse task id: ") + dent->d_name;
/system/core/adb/daemon/
Dfile_sync_service.cpp181 msg.dent.id = ID_DENT; in do_list()
192 msg.dent.mode = st.st_mode; in do_list()
193 msg.dent.size = st.st_size; in do_list()
194 msg.dent.time = st.st_mtime; in do_list()
195 msg.dent.namelen = d_name_length; in do_list()
197 if (!WriteFdExactly(s, &msg.dent, sizeof(msg.dent)) || in do_list()
205 msg.dent.id = ID_DONE; in do_list()
206 msg.dent.mode = 0; in do_list()
207 msg.dent.size = 0; in do_list()
208 msg.dent.time = 0; in do_list()
[all …]
/system/core/libmeminfo/libdmabufinfo/
Ddmabufinfo.cpp107 struct dirent* dent; in ReadDmaBufFdRefs() local
108 while ((dent = readdir(dir.get()))) { in ReadDmaBufFdRefs()
110 ::android::base::StringPrintf("%s/%s", fdpath.c_str(), dent->d_name); in ReadDmaBufFdRefs()
112 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..") || in ReadDmaBufFdRefs()
128 if (!::android::base::ParseInt(dent->d_name, &fd)) { in ReadDmaBufFdRefs()
/system/core/libmeminfo/libdmabufinfo/tools/
Ddmabuf_dump.cpp161 struct dirent* dent; in main() local
162 while ((dent = readdir(dir.get()))) { in main()
163 if (dent->d_type != DT_DIR) continue; in main()
165 int matched = sscanf(dent->d_name, "%d", &pid); in main()
/system/core/adb/
Dfile_sync_protocol.h67 } dent; member
/system/core/adb/client/
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()
Dauth.cpp195 while (struct dirent* dent = readdir(dir.get())) { in load_keys() local
196 std::string name = dent->d_name; in load_keys()