Lines Matching refs:freebsd11_dirent
60 freebsd11_scandir(const char *dirname, struct freebsd11_dirent ***namelist, in freebsd11_scandir()
61 int (*select)(const struct freebsd11_dirent *), in freebsd11_scandir() argument
62 int (*dcomp)(const struct freebsd11_dirent **, in freebsd11_scandir() argument
63 const struct freebsd11_dirent **)) in freebsd11_scandir()
65 struct freebsd11_dirent *d, *p, **names = NULL; in freebsd11_scandir()
74 names = (struct freebsd11_dirent **)malloc( in freebsd11_scandir()
75 arraysz * sizeof(struct freebsd11_dirent *)); in freebsd11_scandir()
85 p = (struct freebsd11_dirent *)malloc(FREEBSD11_DIRSIZ(d)); in freebsd11_scandir()
98 struct freebsd11_dirent **names2; in freebsd11_scandir()
101 2 * sizeof(struct freebsd11_dirent *)); in freebsd11_scandir()
113 qsort_r(names, numitems, sizeof(struct freebsd11_dirent *), in freebsd11_scandir()
131 freebsd11_alphasort(const struct freebsd11_dirent **d1, in freebsd11_alphasort()
132 const struct freebsd11_dirent **d2) in freebsd11_alphasort()
141 int (*dc)(const struct freebsd11_dirent **, const struct in freebsd11_scandir_thunk_cmp()
142 freebsd11_dirent **); in freebsd11_scandir_thunk_cmp()
144 dc = *(int (**)(const struct freebsd11_dirent **, in freebsd11_scandir_thunk_cmp()
145 const struct freebsd11_dirent **))thunk; in freebsd11_scandir_thunk_cmp()
146 return (dc((const struct freebsd11_dirent **)p1, in freebsd11_scandir_thunk_cmp()
147 (const struct freebsd11_dirent **)p2)); in freebsd11_scandir_thunk_cmp()