Lines Matching defs:names
75 struct dirent64 *d, *p, **names = NULL;
96 names = malloc(arraysz * sizeof (struct dirent64 *));
97 if (names == NULL)
102 continue; /* just selected names */
125 tmp = realloc(names,
131 names = tmp;
133 names[nitems++] = p;
137 qsort(names, nitems, sizeof (struct dirent64 *),
139 *namelist = names;
145 free(names[--nitems]);
147 if (names)
148 free(names);
160 struct dirent *d, *p, **names = NULL;
181 names = malloc(arraysz * sizeof (struct dirent *));
182 if (names == NULL)
187 continue; /* just selected names */
210 tmp = realloc(names,
216 names = tmp;
218 names[nitems++] = p;
222 qsort(names, nitems, sizeof (struct dirent *),
224 *namelist = names;
230 free(names[--nitems]);
232 if (names)
233 free(names);