Searched refs:dent (Results 1 – 6 of 6) sorted by relevance
/system/core/libprocinfo/include/procinfo/ |
D | process.h | 81 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/init/ |
D | ueventd.cpp | 169 struct dirent* dent; in GenerateRestoreCon() local 170 while ((dent = readdir(dir.get())) != NULL) { in GenerateRestoreCon() 171 if (strcmp(dent->d_name, ".") == 0 || strcmp(dent->d_name, "..") == 0) continue; in GenerateRestoreCon() 174 if (fstatat(dirfd(dir.get()), dent->d_name, &st, 0) == -1) continue; in GenerateRestoreCon() 177 std::string fullpath = directory + "/" + dent->d_name; in GenerateRestoreCon()
|
/system/memory/libmeminfo/libdmabufinfo/ |
D | dmabufinfo.cpp | 107 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/memory/libmeminfo/libdmabufinfo/tools/ |
D | dmabuf_dump.cpp | 193 struct dirent* dent; in ReadDmaBufs() local 194 while ((dent = readdir(dir.get()))) { in ReadDmaBufs() 195 if (dent->d_type != DT_DIR) continue; in ReadDmaBufs() 197 int pid = atoi(dent->d_name); in ReadDmaBufs()
|
/system/core/adb/client/ |
D | file_sync_client.cpp | 533 dent_type dent; in FinishLsImpl() local 534 if (!ReadFdExactly(fd, &dent, sizeof(dent))) return false; in FinishLsImpl() 537 if (dent.id == ID_DONE) return true; in FinishLsImpl() 538 if (dent.id != expected_id) return false; in FinishLsImpl() 542 size_t len = dent.namelen; in FinishLsImpl() 548 callback(dent.mode, dent.size, dent.mtime, buf); in FinishLsImpl()
|
D | auth.cpp | 185 while (struct dirent* dent = readdir(dir.get())) { in load_keys() local 186 std::string name = dent->d_name; in load_keys()
|