Searched refs:namelist (Results 1 – 1 of 1) sorted by relevance
/system/extras/ext4_utils/ |
D | make_ext4fs.c | 152 struct dirent **namelist = NULL; in build_directory_structure() local 162 entries = scandir(full_path, &namelist, filter_dot, (void*)alphasort); in build_directory_structure() 170 entries = scandir(full_path, &namelist, filter_dot, (void*)alphasort); in build_directory_structure() 182 if (strcmp(namelist[i]->d_name, "lost+found") == 0) in build_directory_structure() 193 dentries[i].filename = strdup(namelist[i]->d_name); in build_directory_structure() 197 asprintf(&dentries[i].path, "%s%s", dir_path, namelist[i]->d_name); in build_directory_structure() 198 asprintf(&dentries[i].full_path, "%s%s", full_path, namelist[i]->d_name); in build_directory_structure() 200 free(namelist[i]); in build_directory_structure() 267 free(namelist); in build_directory_structure()
|