Lines Matching refs:filename

558 	char *realname = (char *)name, *filename;  in build_id_cache__cachedir()  local
567 if (asprintf(&filename, "%s%s%s%s%s", buildid_dir, slash ? "/" : "", in build_id_cache__cachedir()
570 filename = NULL; in build_id_cache__cachedir()
575 return filename; in build_id_cache__cachedir()
670 char *realname = NULL, *filename = NULL, *dir_name = NULL, in build_id_cache__add_s() local
698 if (asprintf(&filename, "%s/%s", dir_name, in build_id_cache__add_s()
701 filename = NULL; in build_id_cache__add_s()
705 if (access(filename, F_OK)) { in build_id_cache__add_s()
707 if (copyfile("/proc/kallsyms", filename)) in build_id_cache__add_s()
710 if (copyfile_ns(name, filename, nsi)) in build_id_cache__add_s()
712 } else if (link(realname, filename) && errno != EEXIST && in build_id_cache__add_s()
713 copyfile(name, filename)) in build_id_cache__add_s()
726 zfree(&filename); in build_id_cache__add_s()
727 if (asprintf(&filename, "%s/%s", dir_name, in build_id_cache__add_s()
729 filename = NULL; in build_id_cache__add_s()
732 if (access(filename, F_OK)) { in build_id_cache__add_s()
734 if (copyfile_ns(debugfile, filename, in build_id_cache__add_s()
737 } else if (link(debugfile, filename) && in build_id_cache__add_s()
739 copyfile(debugfile, filename)) in build_id_cache__add_s()
768 free(filename); in build_id_cache__add_s()
790 char *filename = build_id_cache__linkname(sbuild_id, NULL, 0); in build_id_cache__cached() local
792 if (filename && !access(filename, F_OK)) in build_id_cache__cached()
794 free(filename); in build_id_cache__cached()
802 char *filename = zalloc(size), in build_id_cache__remove_s() local
806 if (filename == NULL || linkname == NULL) in build_id_cache__remove_s()
815 if (readlink(linkname, filename, size - 1) < 0) in build_id_cache__remove_s()
825 snprintf(tmp, size - (tmp - linkname), "%s", filename); in build_id_cache__remove_s()
832 free(filename); in build_id_cache__remove_s()