Lines Matching refs:linkname
348 *linkname = zalloc(size), *targetname, *tmp; in build_id_cache__add_s() local
378 if (!build_id__filename(sbuild_id, linkname, size)) in build_id_cache__add_s()
380 tmp = strrchr(linkname, '/'); in build_id_cache__add_s()
383 if (access(linkname, X_OK) && mkdir_p(linkname, 0755)) in build_id_cache__add_s()
390 if (symlink(targetname, linkname) == 0) in build_id_cache__add_s()
397 free(linkname); in build_id_cache__add_s()
428 *linkname = zalloc(size), *tmp; in build_id_cache__remove_s() local
431 if (filename == NULL || linkname == NULL) in build_id_cache__remove_s()
434 if (!build_id__filename(sbuild_id, linkname, size)) in build_id_cache__remove_s()
437 if (access(linkname, F_OK)) in build_id_cache__remove_s()
440 if (readlink(linkname, filename, size - 1) < 0) in build_id_cache__remove_s()
443 if (unlink(linkname)) in build_id_cache__remove_s()
449 tmp = strrchr(linkname, '/') + 1; in build_id_cache__remove_s()
450 snprintf(tmp, size - (tmp - linkname), "%s", filename); in build_id_cache__remove_s()
452 if (unlink(linkname)) in build_id_cache__remove_s()
458 free(linkname); in build_id_cache__remove_s()