Lines Matching refs:filename

551 	char *realname = (char *)name, *filename;  in build_id_cache__cachedir()  local
560 if (asprintf(&filename, "%s%s%s%s%s", buildid_dir, slash ? "/" : "", in build_id_cache__cachedir()
563 filename = NULL; in build_id_cache__cachedir()
568 return filename; in build_id_cache__cachedir()
648 char *realname = NULL, *filename = NULL, *dir_name = NULL, in build_id_cache__add_s() local
676 if (asprintf(&filename, "%s/%s", dir_name, in build_id_cache__add_s()
679 filename = NULL; in build_id_cache__add_s()
683 if (access(filename, F_OK)) { in build_id_cache__add_s()
685 if (copyfile("/proc/kallsyms", filename)) in build_id_cache__add_s()
688 if (copyfile_ns(name, filename, nsi)) in build_id_cache__add_s()
690 } else if (link(realname, filename) && errno != EEXIST && in build_id_cache__add_s()
691 copyfile(name, filename)) in build_id_cache__add_s()
704 zfree(&filename); in build_id_cache__add_s()
705 if (asprintf(&filename, "%s/%s", dir_name, in build_id_cache__add_s()
707 filename = NULL; in build_id_cache__add_s()
710 if (access(filename, F_OK)) { in build_id_cache__add_s()
712 if (copyfile_ns(debugfile, filename, in build_id_cache__add_s()
715 } else if (link(debugfile, filename) && in build_id_cache__add_s()
717 copyfile(debugfile, filename)) in build_id_cache__add_s()
746 free(filename); in build_id_cache__add_s()
768 char *filename = build_id_cache__linkname(sbuild_id, NULL, 0); in build_id_cache__cached() local
770 if (filename && !access(filename, F_OK)) in build_id_cache__cached()
772 free(filename); in build_id_cache__cached()
780 char *filename = zalloc(size), in build_id_cache__remove_s() local
784 if (filename == NULL || linkname == NULL) in build_id_cache__remove_s()
793 if (readlink(linkname, filename, size - 1) < 0) in build_id_cache__remove_s()
803 snprintf(tmp, size - (tmp - linkname), "%s", filename); in build_id_cache__remove_s()
810 free(filename); in build_id_cache__remove_s()