Lines Matching defs:names

635                         return log_error_errno(r, "Failed to get machine names: %m");
2356 _cleanup_set_free_ Set *names;
2358 names = set_new(NULL);
2359 if (!names)
2362 r = set_put(names, unit_name);
2384 r = unit_file_find_dropin_paths(lp->unit_path, NULL, names, &dropins);
2629 static int expand_names(sd_bus *bus, char **names, const char* suffix, char ***ret) {
2637 STRV_FOREACH(name, names) {
2655 /* Query the manager only if any of the names are a glob, since
2722 _cleanup_strv_free_ char **names = NULL;
2758 names = strv_new(one_name, NULL);
2760 r = expand_names(bus, strv_skip(argv, 1), suffix, &names);
2762 return log_error_errno(r, "Failed to expand names: %m");
2771 STRV_FOREACH(name, names) {
2790 STRV_FOREACH(name, names)
3162 _cleanup_strv_free_ char **names = NULL;
3172 r = expand_names(bus, args, NULL, &names);
3174 return log_error_errno(r, "Failed to expand names: %m");
3176 STRV_FOREACH(name, names) {
3201 _cleanup_strv_free_ char **names = NULL;
3219 r = expand_names(bus, strv_skip(argv, 1), NULL, &names);
3221 return log_error_errno(r, "Failed to expand names: %m");
3223 STRV_FOREACH(name, names) {
3234 "ssi", *names, kill_who ? kill_who : arg_kill_who, arg_signal);
3236 log_error_errno(q, "Failed to kill unit %s: %s", *names, bus_error_message(&error, q));
4640 log_error("This command expects one or more unit names. Did you mean --help?");
4703 _cleanup_strv_free_ char **names = NULL;
4705 r = expand_names(bus, patterns, NULL, &names);
4707 return log_error_errno(r, "Failed to expand names: %m");
4709 STRV_FOREACH(name, names) {
4780 _cleanup_strv_free_ char **names = NULL;
4799 r = expand_names(bus, strv_skip(argv, 1), NULL, &names);
4801 return log_error_errno(r, "Failed to expand names: %m");
4805 STRV_FOREACH(name, names) {
4946 _cleanup_strv_free_ char **names = NULL;
4960 r = expand_names(bus, strv_skip(argv, 1), NULL, &names);
4962 return log_error_errno(r, "Failed to expand names: %m");
4964 STRV_FOREACH(name, names) {
5351 /* When enabling units qualified path names are OK,
5378 _cleanup_strv_free_ char **names = NULL;
5388 r = mangle_names(strv_skip(argv, 1), &names);
5392 r = enable_sysv_units(verb, names);
5398 if (strv_isempty(names))
5403 r = unit_file_enable(arg_scope, arg_runtime, arg_root, names, arg_force, &changes, &n_changes);
5406 r = unit_file_disable(arg_scope, arg_runtime, arg_root, names, &changes, &n_changes);
5408 r = unit_file_reenable(arg_scope, arg_runtime, arg_root, names, arg_force, &changes, &n_changes);
5411 r = unit_file_link(arg_scope, arg_runtime, arg_root, names, arg_force, &changes, &n_changes);
5413 r = unit_file_preset(arg_scope, arg_runtime, arg_root, names, arg_preset_mode, arg_force, &changes, &n_changes);
5416 r = unit_file_mask(arg_scope, arg_runtime, arg_root, names, arg_force, &changes, &n_changes);
5418 r = unit_file_unmask(arg_scope, arg_runtime, arg_root, names, &changes, &n_changes);
5483 r = sd_bus_message_append_strv(m, names);
5559 _cleanup_strv_free_ char **names = NULL;
5572 r = mangle_names(strv_skip(argv, 2), &names);
5587 r = unit_file_add_dependency(arg_scope, arg_runtime, arg_root, names, target, dep, arg_force, &changes, &n_changes);
5619 r = sd_bus_message_append_strv(m, names);
5706 _cleanup_strv_free_ char **names = NULL;
5711 r = mangle_names(strv_skip(argv, 1), &names);
5715 r = enable_sysv_units(argv[0], names);
5723 STRV_FOREACH(name, names) {
5749 STRV_FOREACH(name, names) {
6058 static int find_paths_to_edit(sd_bus *bus, char **names, char ***paths) {
6065 assert(names);
6072 STRV_FOREACH(name, names) {
6103 _cleanup_strv_free_ char **names = NULL;
6123 r = expand_names(bus, strv_skip(argv, 1), NULL, &names);
6125 return log_error_errno(r, "Failed to expand names: %m");
6127 r = find_paths_to_edit(bus, names, &paths);
6186 " -l --full Don't ellipsize unit names on output\n"