Lines Matching refs:namelist
56 struct dirent **namelist = NULL; in thread_map__new_by_pid() local
60 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid()
67 thread_map__set_pid(threads, i, atoi(namelist[i]->d_name)); in thread_map__new_by_pid()
73 zfree(&namelist[i]); in thread_map__new_by_pid()
74 free(namelist); in thread_map__new_by_pid()
97 struct dirent *dirent, **namelist = NULL; in thread_map__new_by_uid() local
128 items = scandir(path, &namelist, filter, NULL); in thread_map__new_by_uid()
149 atoi(namelist[i]->d_name)); in thread_map__new_by_uid()
153 zfree(&namelist[i]); in thread_map__new_by_uid()
154 free(namelist); in thread_map__new_by_uid()
170 zfree(&namelist[i]); in thread_map__new_by_uid()
171 free(namelist); in thread_map__new_by_uid()
194 struct dirent **namelist = NULL; in thread_map__new_by_pid_str() local
216 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid_str()
228 thread_map__set_pid(threads, j++, atoi(namelist[i]->d_name)); in thread_map__new_by_pid_str()
229 zfree(&namelist[i]); in thread_map__new_by_pid_str()
232 free(namelist); in thread_map__new_by_pid_str()
243 zfree(&namelist[i]); in thread_map__new_by_pid_str()
244 free(namelist); in thread_map__new_by_pid_str()