Lines Matching refs:entry
10 struct dirent* entry;
24 while (NULL != (entry = readdir(dir))) {
25 if (strcmp(entry->d_name, "input.txt") == 0 ||
26 strcmp(entry->d_name, "input2.txt") == 0 ||
27 strcmp(entry->d_name, "notadir") == 0) {
29 assert(entry->d_type == DT_REG);
31 assert(entry->d_type == DT_UNKNOWN);
33 } else if (strcmp(entry->d_name, "subdir") == 0) {
35 assert(entry->d_type == DT_DIR);
37 assert(entry->d_type == DT_UNKNOWN);