Lines Matching refs:linkname
363 *linkname = zalloc(size), *targetname, *tmp; in build_id_cache__add_s() local
393 if (!build_id__filename(sbuild_id, linkname, size)) in build_id_cache__add_s()
395 tmp = strrchr(linkname, '/'); in build_id_cache__add_s()
398 if (access(linkname, X_OK) && mkdir_p(linkname, 0755)) in build_id_cache__add_s()
405 if (symlink(targetname, linkname) == 0) in build_id_cache__add_s()
412 free(linkname); in build_id_cache__add_s()
443 *linkname = zalloc(size), *tmp; in build_id_cache__remove_s() local
446 if (filename == NULL || linkname == NULL) in build_id_cache__remove_s()
449 if (!build_id__filename(sbuild_id, linkname, size)) in build_id_cache__remove_s()
452 if (access(linkname, F_OK)) in build_id_cache__remove_s()
455 if (readlink(linkname, filename, size - 1) < 0) in build_id_cache__remove_s()
458 if (unlink(linkname)) in build_id_cache__remove_s()
464 tmp = strrchr(linkname, '/') + 1; in build_id_cache__remove_s()
465 snprintf(tmp, size - (tmp - linkname), "%s", filename); in build_id_cache__remove_s()
467 if (unlink(linkname)) in build_id_cache__remove_s()
473 free(linkname); in build_id_cache__remove_s()