Lines Matching refs:entry
55 struct dirent *entry;
77 entry = readdir(dp);
78 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
81 entry = readdir(dp);
82 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
85 /* get first entry */
86 entry = readdir(dp);
87 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
93 /* get second entry */
94 entry = readdir(dp);
95 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
98 wasname = strdup(entry->d_name);
102 /* get third entry */
103 entry = readdir(dp);
104 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
107 /* try to return to the position after the first entry */
109 entry = readdir(dp);
110 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
112 if (strcmp(entry->d_name, wasname) != 0)
118 entry = readdir(dp);
119 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
121 if (strcmp(entry->d_name, wasname) != 0)
126 entry = readdir(dp);
127 ATF_REQUIRE_MSG(entry != NULL, "readdir[%s] failed: %s",
130 if (strcmp(entry->d_name, wasname) != 0)