Home
last modified time | relevance | path

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

/hardware/google/gfxstream/guest/mesa/src/util/
Ddisk_cache_os.c197 struct dirent *dir_ent; in choose_lru_file_matching() local
207 while ((dir_ent = readdir(dir)) != NULL) { in choose_lru_file_matching()
209 if (dir_ent->d_type == DT_REG) { /* If the entry is a regular file */ in choose_lru_file_matching()
215 if (fstatat(dir_fd, dir_ent->d_name, &st, AT_SYMLINK_NOFOLLOW) == 0) { in choose_lru_file_matching()
235 dir_ent = readdir(dir); in choose_lru_file_matching()
236 if (dir_ent == NULL) in choose_lru_file_matching()
240 if (fstatat(dir_fd, dir_ent->d_name, &sb, 0) == 0) { in choose_lru_file_matching()
246 size_t len = strlen(dir_ent->d_name); in choose_lru_file_matching()
247 if (!predicate(dir_path, &sb, dir_ent->d_name, len)) in choose_lru_file_matching()
283 memcpy(entry->lru_name, dir_ent->d_name, len + 1); in choose_lru_file_matching()