Lines Matching refs:linkname
219 *linkname = malloc(size), *targetname; in build_id_cache__add_s() local
231 if (realname == NULL || filename == NULL || linkname == NULL) in build_id_cache__add_s()
249 len = snprintf(linkname, size, "%s/.build-id/%.2s", in build_id_cache__add_s()
252 if (access(linkname, X_OK) && mkdir_p(linkname, 0755)) in build_id_cache__add_s()
255 snprintf(linkname + len, size - len, "/%s", sbuild_id + 2); in build_id_cache__add_s()
259 if (symlink(targetname, linkname) == 0) in build_id_cache__add_s()
265 free(linkname); in build_id_cache__add_s()
284 *linkname = malloc(size); in build_id_cache__remove_s() local
287 if (filename == NULL || linkname == NULL) in build_id_cache__remove_s()
290 snprintf(linkname, size, "%s/.build-id/%.2s/%s", in build_id_cache__remove_s()
293 if (access(linkname, F_OK)) in build_id_cache__remove_s()
296 if (readlink(linkname, filename, size) < 0) in build_id_cache__remove_s()
299 if (unlink(linkname)) in build_id_cache__remove_s()
305 snprintf(linkname, size, "%s/.build-id/%.2s/%s", in build_id_cache__remove_s()
308 if (unlink(linkname)) in build_id_cache__remove_s()
314 free(linkname); in build_id_cache__remove_s()