Searched refs:dir_ent (Results 1 – 3 of 3) sorted by relevance
/third_party/ltp/testcases/kernel/fs/proc/ |
D | proc01.c | 246 struct dirent *dir_ent; /* pointer to directory entries */ in readproc() local 297 for (dir_ent = (struct dirent *)readdir(dir); in readproc() 298 dir_ent != NULL; in readproc() 299 dir_ent = (struct dirent *)readdir(dir)) { in readproc() 306 if (strcmp(dir_ent->d_name, ".") && in readproc() 307 strcmp(dir_ent->d_name, "..") && in readproc() 308 strcmp(dir_ent->d_name, "kcore") && in readproc() 309 (fnmatch("[0-9]*", dir_ent->d_name, in readproc() 315 dir_ent->d_name); in readproc() 321 "%s/%s", obj, dir_ent->d_name); in readproc()
|
/third_party/ltp/lib/ |
D | tst_tmpdir.c | 134 struct dirent *dir_ent; in purge_dir() local 162 for (dir_ent = readdir(dir); dir_ent; dir_ent = readdir(dir)) { in purge_dir() 164 if (!strcmp(dir_ent->d_name, ".") in purge_dir() 165 || !strcmp(dir_ent->d_name, "..")) in purge_dir() 169 sprintf(dirobj, "%s/%s", path, dir_ent->d_name); in purge_dir()
|
/third_party/mesa3d/src/util/ |
D | disk_cache_os.c | 200 struct dirent *dir_ent; in choose_lru_file_matching() local 208 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() 226 dir_ent = readdir(dir); in choose_lru_file_matching() 227 if (dir_ent == NULL) in choose_lru_file_matching() 231 if (fstatat(dirfd(dir), dir_ent->d_name, &sb, 0) == 0) { in choose_lru_file_matching() 237 size_t len = strlen(dir_ent->d_name); in choose_lru_file_matching() 238 if (!predicate(dir_path, &sb, dir_ent->d_name, len)) in choose_lru_file_matching() 274 memcpy(entry->lru_name, dir_ent->d_name, len + 1); in choose_lru_file_matching()
|