Lines Matching refs:linkname
324 *linkname = zalloc(size), *targetname; in build_id_cache__add_s() local
338 if (realname == NULL || filename == NULL || linkname == NULL) in build_id_cache__add_s()
357 len = scnprintf(linkname, size, "%s/.build-id/%.2s", in build_id_cache__add_s()
360 if (access(linkname, X_OK) && mkdir_p(linkname, 0755)) in build_id_cache__add_s()
363 snprintf(linkname + len, size - len, "/%s", sbuild_id + 2); in build_id_cache__add_s()
367 if (symlink(targetname, linkname) == 0) in build_id_cache__add_s()
373 free(linkname); in build_id_cache__add_s()
393 *linkname = zalloc(size); in build_id_cache__remove_s() local
396 if (filename == NULL || linkname == NULL) in build_id_cache__remove_s()
399 snprintf(linkname, size, "%s/.build-id/%.2s/%s", in build_id_cache__remove_s()
402 if (access(linkname, F_OK)) in build_id_cache__remove_s()
405 if (readlink(linkname, filename, size - 1) < 0) in build_id_cache__remove_s()
408 if (unlink(linkname)) in build_id_cache__remove_s()
414 snprintf(linkname, size, "%s/.build-id/%.2s/%s", in build_id_cache__remove_s()
417 if (unlink(linkname)) in build_id_cache__remove_s()
423 free(linkname); in build_id_cache__remove_s()