Lines Matching defs:entry
128 while (struct dirent* entry = readdir(dir)) {
129 if (!strcmp(entry->d_name, ".")
130 || !strcmp(entry->d_name, ".."))
137 strlcat(fullPath, entry->d_name, sizeof(fullPath));
177 file_entry entry;
178 memcpy(entry.hash, gSHA.Digest(), SHA_DIGEST_LENGTH);
179 entry.node = stat.st_ino;
180 entry.path = path;
182 //printf("%s %s\n", entry.HashString().c_str(), path);
184 gFiles.push_back(entry);
216 file_entry& entry = gFiles[i];
218 write(file, entry.hash, SHA_DIGEST_LENGTH);
219 write(file, &entry.node, sizeof(ino_t));
221 int length = entry.path.size();
223 write(file, entry.path.c_str(), length + 1);