Lines Matching refs:dst
73 const char *src, *dst; in unit_validate_alias_symlink_or_warn() local
90 dst = basename(target); in unit_validate_alias_symlink_or_warn()
115 if (streq(src, dst)) in unit_validate_alias_symlink_or_warn()
118 filename, src, dst); in unit_validate_alias_symlink_or_warn()
120 dst_name_type = unit_name_to_instance(dst, &dst_instance); in unit_validate_alias_symlink_or_warn()
124 filename, dst); in unit_validate_alias_symlink_or_warn()
130 filename, dst); in unit_validate_alias_symlink_or_warn()
138 filename, dst); in unit_validate_alias_symlink_or_warn()
141 dst_unit_type = unit_name_to_type(dst); in unit_validate_alias_symlink_or_warn()
145 filename, dst); in unit_validate_alias_symlink_or_warn()
277 …_cleanup_free_ char *target = NULL, *simplified = NULL, *dst = NULL, *_dir = NULL, *_filename = NU… in unit_file_resolve_symlink() local
354 dst = resolve_destination_target ? TAKE_PTR(simplified) : TAKE_PTR(target_name); in unit_file_resolve_symlink()
360 dst = TAKE_PTR(simplified); in unit_file_resolve_symlink()
362 dst = path_join(dir, filename); in unit_file_resolve_symlink()
363 if (!dst) in unit_file_resolve_symlink()
368 *ret_destination = TAKE_PTR(dst); in unit_file_resolve_symlink()
461 _cleanup_free_ char *dst = NULL; in unit_file_build_name_map() local
549 &dst); in unit_file_build_name_map()
556 … dst = TAKE_PTR(_filename_free); /* Grab the copy we made previously, if available. */ in unit_file_build_name_map()
557 if (!dst) { in unit_file_build_name_map()
558 dst = strdup(filename); in unit_file_build_name_map()
559 if (!dst) in unit_file_build_name_map()
563 log_debug("%s: normal unit file: %s", __func__, dst); in unit_file_build_name_map()
570 r = hashmap_ensure_put(&ids, &string_hash_ops_free_free, key, dst); in unit_file_build_name_map()
573 de->d_name, dst); in unit_file_build_name_map()
574 key = dst = NULL; in unit_file_build_name_map()
582 const char *dst; in unit_file_build_name_map() local
584 r = unit_ids_map_get(ids, src, &dst); in unit_file_build_name_map()
588 if (null_or_empty_path(dst) != 0) in unit_file_build_name_map()
591 dst = basename(dst); in unit_file_build_name_map()
595 if (unit_name_is_valid(dst, UNIT_NAME_TEMPLATE)) { in unit_file_build_name_map()
600 r = unit_name_replace_instance(dst, inst, &dst_inst); in unit_file_build_name_map()
605 dst, inst); in unit_file_build_name_map()
609 dst = dst_inst; in unit_file_build_name_map()
613 r = string_strv_hashmap_put(&names, dst, src); in unit_file_build_name_map()
615 … return log_warning_errno(r, "Failed to add entry to hashmap (%s→%s): %m", dst, src); in unit_file_build_name_map()