Lines Matching defs:dirent
5 * This file is part of dirent. Dirent may be freely distributed
7 * https://github.com/tronkko/dirent
40 /* Indicates that d_type field is available in dirent structure */
43 /* Indicates that d_namlen field is available in dirent structure */
262 struct dirent {
281 typedef struct dirent dirent;
284 struct dirent ent;
294 static struct dirent *readdir (DIR *dirp);
298 DIR *dirp, struct dirent *entry, struct dirent **result);
308 static int scandir (const char *dirname, struct dirent ***namelist,
309 int (*filter)(const struct dirent*),
310 int (*compare)(const struct dirent**, const struct dirent**));
312 static int alphasort (const struct dirent **a, const struct dirent **b);
314 static int versionsort (const struct dirent **a, const struct dirent **b);
732 static struct dirent*
736 struct dirent *entry;
757 struct dirent *entry,
758 struct dirent **result)
807 entry->d_reclen = sizeof (struct dirent);
884 struct dirent ***namelist,
885 int (*filter)(const struct dirent*),
886 int (*compare)(const struct dirent**, const struct dirent**))
888 struct dirent **files = NULL;
893 struct dirent *entry;
894 struct dirent *tmp = NULL;
923 files = (dirent**) p;
935 tmp = (struct dirent*) malloc (sizeof (struct dirent));
1020 const struct dirent **a, const struct dirent **b)
1028 const struct dirent **a, const struct dirent **b)