Searched refs:dirp (Results 1 – 4 of 4) sorted by relevance
50 DIR* dirp = opendir("/proc"); in main() local51 if (dirp == nullptr) { in main()56 while ((entry = readdir(dirp)) != nullptr) { in main()70 closedir(dirp); in main()
820 DIR* dirp = opendir(file8); in android_os_Process_getPids() local824 if(dirp == NULL) { in android_os_Process_getPids()838 while ((entry=readdir(dirp)) != NULL) { in android_os_Process_getPids()853 closedir(dirp); in android_os_Process_getPids()871 closedir(dirp); in android_os_Process_getPids()
351 const std::string dirp = dir + "/"; in clean() local354 (void)unlink((dirp + file).c_str()); in clean()
4318 DIR *dirp; in dump_files() local4332 dirp = opendir(dir); in dump_files()4333 if (dirp == nullptr) { in dump_files()4342 for (; ((d = readdir(dirp))); free(newpath), newpath = nullptr) { in dump_files()4372 closedir(dirp); in dump_files()4530 DIR *dirp; in dump_frozen_cgroupfs() local4534 dirp = opendir(dir); in dump_frozen_cgroupfs()4535 if (dirp == nullptr) { in dump_frozen_cgroupfs()4540 for (; ((d = readdir(dirp))); free(newpath), newpath = nullptr) { in dump_frozen_cgroupfs()4571 closedir(dirp); in dump_frozen_cgroupfs()