Lines Matching refs:dirent
34 int scandir(const char* maindir, struct dirent*** namelist, in scandir()
35 int (*filter)(const struct dirent*), in scandir() argument
36 int (*compar)(const struct dirent**, in scandir() argument
37 const struct dirent **)) { in scandir()
38 struct dirent** nl; in scandir()
39 struct dirent** nl_copy; in scandir()
40 struct dirent* dirent; in scandir() local
53 dirent = readdir(mdir); in scandir()
54 if (!dirent) in scandir()
56 if (!filter || filter(dirent)) { in scandir()
57 struct dirent* copy; in scandir()
61 memcpy(copy, dirent, sizeof(*copy)); in scandir()
74 qsort(nl, count, sizeof(struct dirent *), in scandir()
84 dirent = nl[--count]; in scandir()
85 uv__free(dirent); in scandir()