Lines Matching refs:dir_name
581 char *dir_name; in build_id_cache__list_build_ids() local
584 dir_name = build_id_cache__cachedir(NULL, pathname, nsi, false, false); in build_id_cache__list_build_ids()
585 if (!dir_name) in build_id_cache__list_build_ids()
588 *result = lsdir(dir_name, lsdir_no_dot_filter); in build_id_cache__list_build_ids()
591 free(dir_name); in build_id_cache__list_build_ids()
683 char *filename = NULL, *dir_name = NULL, *linkname = zalloc(size), *tmp; in build_id_cache__add() local
690 dir_name = build_id_cache__cachedir(sbuild_id, proper_name, nsi, is_kallsyms, in build_id_cache__add()
692 if (!dir_name) in build_id_cache__add()
696 if (is_regular_file(dir_name)) in build_id_cache__add()
697 if (unlink(dir_name)) in build_id_cache__add()
700 if (mkdir_p(dir_name, 0755)) in build_id_cache__add()
704 if (asprintf(&filename, "%s/%s", dir_name, in build_id_cache__add()
737 if (asprintf(&filename, "%s/%s", dir_name, in build_id_cache__add()
764 tmp = dir_name + strlen(buildid_dir) - 5; in build_id_cache__add()
795 free(dir_name); in build_id_cache__add()