Lines Matching refs:dirent
29 #include <dirent.h>
41 struct dirent* _DIR_next;
43 struct dirent _DIR_buff[15];
91 static struct dirent*
94 struct dirent* entry;
119 entry->d_reclen <= offsetof(struct dirent, d_name) )
125 if ( !memchr( entry->d_name, 0, entry->d_reclen - offsetof(struct dirent, d_name)) )
128 dir->_DIR_next = (struct dirent*)((char*)entry + entry->d_reclen);
139 struct dirent*
142 struct dirent *entry = NULL;
152 int readdir_r(DIR* dir, struct dirent *entry, struct dirent **result)
154 struct dirent* ent;
209 struct dirent **d1, **d2;
211 d1 = (struct dirent **) a;
212 d2 = (struct dirent **) b;
217 int scandir(const char *dir, struct dirent ***namelist,
218 int(*filter)(const struct dirent *),
219 int(*compar)(const struct dirent **, const struct dirent **))
223 struct dirent *this_de, *de;
224 struct dirent **de_list = NULL;
238 de_list = (struct dirent **)
239 malloc(sizeof(struct dirent *)*de_list_size);
245 struct dirent **de_list_new;
248 de_list_new = (struct dirent **)
249 realloc(de_list, sizeof(struct dirent *)*de_list_size);
256 de = (struct dirent *) malloc(sizeof(struct dirent));
262 qsort(de_list, n_elem, sizeof(struct dirent *),