Lines Matching refs:config_path

578                 const char *config_path,  in remove_marked_symlinks_fd()  argument
591 assert(config_path); in remove_marked_symlinks_fd()
626 …q = remove_marked_symlinks_fd(remove_symlinks_to, nfd, p, config_path, lp, dry_run, restart, chang… in remove_marked_symlinks_fd()
691 (void) rmdir_parents(p, config_path); in remove_marked_symlinks_fd()
712 const char *config_path, in remove_marked_symlinks() argument
722 assert(config_path); in remove_marked_symlinks()
728 fd = open(config_path, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC); in remove_marked_symlinks()
741 …q = remove_marked_symlinks_fd(remove_symlinks_to, cfd, config_path, config_path, lp, dry_run, &res… in remove_marked_symlinks()
782 const char *config_path, in find_symlinks_in_directory() argument
850 t = path_make_absolute(info->name, config_path); in find_symlinks_in_directory()
881 const char *config_path, in find_symlinks() argument
888 assert(config_path); in find_symlinks()
891 config_dir = opendir(config_path); in find_symlinks()
910 path = path_join(config_path, de->d_name); in find_symlinks()
924 config_path, in find_symlinks()
934 return find_symlinks_in_directory(config_dir, config_path, root_dir, i, in find_symlinks()
938 config_path, in find_symlinks()
1869 const char *config_path, in install_info_symlink_alias() argument
1878 assert(config_path); in install_info_symlink_alias()
1898 alias_path = path_make_absolute(dst_updated ?: dst, config_path); in install_info_symlink_alias()
1914 const char *config_path, in install_info_symlink_wants() argument
1927 assert(config_path); in install_info_symlink_wants()
2001 path = strjoin(config_path, "/", dst, suffix, n); in install_info_symlink_wants()
2019 const char *config_path, in install_info_symlink_link() argument
2029 assert(config_path); in install_info_symlink_link()
2038 path = path_join(config_path, info->name); in install_info_symlink_link()
2050 const char *config_path, in install_info_apply() argument
2058 assert(config_path); in install_info_apply()
2065 r = install_info_symlink_link(info, lp, config_path, force, changes, n_changes); in install_info_apply()
2072 r = install_info_symlink_alias(scope, info, lp, config_path, force, changes, n_changes); in install_info_apply()
2074 …q = install_info_symlink_wants(scope, file_flags, info, lp, config_path, info->wanted_by, ".wants/… in install_info_apply()
2078 …q = install_info_symlink_wants(scope, file_flags, info, lp, config_path, info->required_by, ".requ… in install_info_apply()
2089 const char *config_path, in install_context_apply() argument
2099 assert(config_path); in install_context_apply()
2143 … q = install_info_apply(ctx->scope, file_flags, i, lp, config_path, changes, n_changes); in install_context_apply()
2159 const char *config_path, in install_context_mark_for_removal() argument
2168 assert(config_path); in install_context_mark_for_removal()
2227 const char *config_path; in unit_file_mask() local
2237 config_path = (flags & UNIT_FILE_RUNTIME) ? lp.runtime_config : lp.persistent_config; in unit_file_mask()
2238 if (!config_path) in unit_file_mask()
2251 path = path_make_absolute(*i, config_path); in unit_file_mask()
2274 const char *config_path; in unit_file_unmask() local
2285 config_path = (flags & UNIT_FILE_RUNTIME) ? lp.runtime_config : lp.persistent_config; in unit_file_unmask()
2286 if (!config_path) in unit_file_unmask()
2297 path = path_make_absolute(*i, config_path); in unit_file_unmask()
2326 path = path_make_absolute(*i, config_path); in unit_file_unmask()
2348 … q = remove_marked_symlinks(remove_symlinks_to, config_path, &lp, dry_run, changes, n_changes); in unit_file_unmask()
2365 const char *config_path; in unit_file_link() local
2376 config_path = (flags & UNIT_FILE_RUNTIME) ? lp.runtime_config : lp.persistent_config; in unit_file_link()
2377 if (!config_path) in unit_file_link()
2424 new_path = path_make_absolute(basename(*i), config_path); in unit_file_link()
2619 const char *config_path; in unit_file_add_dependency() local
2636 config_path = (file_flags & UNIT_FILE_RUNTIME) ? lp.runtime_config : lp.persistent_config; in unit_file_add_dependency()
2637 if (!config_path) in unit_file_add_dependency()
2672 return install_context_apply(&ctx, &lp, file_flags, config_path, in unit_file_add_dependency()
2680 const char *config_path, in do_unit_file_enable() argument
2703 return install_context_apply(&ctx, lp, flags, config_path, in do_unit_file_enable()
2725 const char *config_path = config_path_from_flags(&lp, flags); in unit_file_enable() local
2726 if (!config_path) in unit_file_enable()
2729 return do_unit_file_enable(&lp, scope, flags, config_path, files, changes, n_changes); in unit_file_enable()
2736 const char *config_path, in do_unit_file_disable() argument
2754 …r = install_context_mark_for_removal(&ctx, lp, &remove_symlinks_to, config_path, changes, n_change… in do_unit_file_disable()
2758 …return remove_marked_symlinks(remove_symlinks_to, config_path, lp, flags & UNIT_FILE_DRY_RUN, chan… in do_unit_file_disable()
2780 const char *config_path = config_path_from_flags(&lp, flags); in unit_file_disable() local
2781 if (!config_path) in unit_file_disable()
2784 return do_unit_file_disable(&lp, scope, flags, config_path, files, changes, n_changes); in unit_file_disable()
2864 const char *config_path = config_path_from_flags(&lp, flags); in unit_file_reenable() local
2865 if (!config_path) in unit_file_reenable()
2873 r = do_unit_file_disable(&lp, scope, flags, config_path, names, changes, n_changes); in unit_file_reenable()
2878 return do_unit_file_enable(&lp, scope, flags, config_path, files, changes, n_changes); in unit_file_reenable()
3339 const char *config_path, in execute_preset() argument
3350 assert(config_path); in execute_preset()
3355 …r = install_context_mark_for_removal(minus, lp, &remove_symlinks_to, config_path, changes, n_chang… in execute_preset()
3359 … r = remove_marked_symlinks(remove_symlinks_to, config_path, lp, false, changes, n_changes); in execute_preset()
3369 config_path, in execute_preset()
3447 const char *config_path; in unit_file_preset() local
3458 config_path = (file_flags & UNIT_FILE_RUNTIME) ? lp.runtime_config : lp.persistent_config; in unit_file_preset()
3459 if (!config_path) in unit_file_preset()
3472 …return execute_preset(file_flags, &plus, &minus, &lp, config_path, files, mode, changes, n_changes… in unit_file_preset()
3486 const char *config_path = NULL; in unit_file_preset_all() local
3497 config_path = (file_flags & UNIT_FILE_RUNTIME) ? lp.runtime_config : lp.persistent_config; in unit_file_preset_all()
3498 if (!config_path) in unit_file_preset_all()
3533 …return execute_preset(file_flags, &plus, &minus, &lp, config_path, NULL, mode, changes, n_changes); in unit_file_preset_all()