Lines Matching refs:entry

40   cups_dentry_t	entry;			/* Directory entry */
140 * 'cupsDirRead()' - Read the next directory entry.
145 cups_dentry_t * /* O - Directory entry or @code NULL@ if there are no more */
148 WIN32_FIND_DATA entry; /* Directory entry data */
168 dp->dir = FindFirstFile(dp->directory, &entry);
172 else if (!FindNextFile(dp->dir, &entry))
179 strlcpy(dp->entry.filename, entry.cFileName, sizeof(dp->entry.filename));
181 if (entry.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
182 dp->entry.fileinfo.st_mode = 0755 | S_IFDIR;
184 dp->entry.fileinfo.st_mode = 0644;
186 dp->entry.fileinfo.st_atime = _cups_dir_time(entry.ftLastAccessTime);
187 dp->entry.fileinfo.st_ctime = _cups_dir_time(entry.ftCreationTime);
188 dp->entry.fileinfo.st_mtime = _cups_dir_time(entry.ftLastWriteTime);
189 dp->entry.fileinfo.st_size = entry.nFileSizeLow + ((unsigned long long)entry.nFileSizeHigh << 32);
192 * Return the entry...
195 return (&(dp->entry));
245 cups_dentry_t entry; /* Directory entry */
331 * 'cupsDirRead()' - Read the next directory entry.
336 cups_dentry_t * /* O - Directory entry or @code NULL@ when there are no more */
339 struct dirent *entry; /* Pointer to entry */
353 * Try reading an entry that is not "." or ".."...
359 * Read the next entry...
362 if ((entry = readdir(dp->dir)) == NULL)
368 DEBUG_printf(("4cupsDirRead: readdir() returned \"%s\"...", entry->d_name));
374 if (!strcmp(entry->d_name, ".") || !strcmp(entry->d_name, ".."))
381 strlcpy(dp->entry.filename, entry->d_name, sizeof(dp->entry.filename));
383 snprintf(filename, sizeof(filename), "%s/%s", dp->directory, entry->d_name);
385 if (stat(filename, &(dp->entry.fileinfo)))
393 * Return the entry...
396 return (&(dp->entry));