Lines Matching refs:dirent
124 struct dirent ***array_pointer, int (*select_function) (const struct dirent *),
127 int (*compare_function) (const struct dirent **, const struct dirent **)
136 struct dirent ***array_pointer, int (*select_function) (const struct dirent *), in scandir()
139 int (*compare_function) (const struct dirent **, const struct dirent **) in scandir() argument
147 struct dirent **array; in scandir()
148 struct dirent *entry; in scandir()
149 struct dirent *copy; in scandir()
158 if (array = (struct dirent **)malloc(allocated * sizeof(struct dirent *)), array == NULL) in scandir()
191 if (copy = (struct dirent *)malloc(sizeof(struct dirent) + extra), copy == NULL) { in scandir()
204 array = (struct dirent **) in scandir()
205 realloc_safe((char *)array, allocated * sizeof(struct dirent *)); in scandir()
225 qsort((char *)array, counter, sizeof(struct dirent *) in scandir()