Lines Matching refs:linkname
281 *linkname = zalloc(size), *targetname; in build_id_cache__add_s() local
295 if (realname == NULL || filename == NULL || linkname == NULL) in build_id_cache__add_s()
314 len = scnprintf(linkname, size, "%s/.build-id/%.2s", in build_id_cache__add_s()
317 if (access(linkname, X_OK) && mkdir_p(linkname, 0755)) in build_id_cache__add_s()
320 snprintf(linkname + len, size - len, "/%s", sbuild_id + 2); in build_id_cache__add_s()
324 if (symlink(targetname, linkname) == 0) in build_id_cache__add_s()
330 free(linkname); in build_id_cache__add_s()
350 *linkname = zalloc(size); in build_id_cache__remove_s() local
353 if (filename == NULL || linkname == NULL) in build_id_cache__remove_s()
356 snprintf(linkname, size, "%s/.build-id/%.2s/%s", in build_id_cache__remove_s()
359 if (access(linkname, F_OK)) in build_id_cache__remove_s()
362 if (readlink(linkname, filename, size - 1) < 0) in build_id_cache__remove_s()
365 if (unlink(linkname)) in build_id_cache__remove_s()
371 snprintf(linkname, size, "%s/.build-id/%.2s/%s", in build_id_cache__remove_s()
374 if (unlink(linkname)) in build_id_cache__remove_s()
380 free(linkname); in build_id_cache__remove_s()