/systemd-251/src/basic/ |
D | unit-name.c | 42 bool unit_name_is_valid(const char *n, UnitNameFlags flags) { in unit_name_is_valid() function 134 if (!unit_name_is_valid(n, UNIT_NAME_ANY)) in unit_name_to_prefix() 156 if (!unit_name_is_valid(n, UNIT_NAME_ANY)) in unit_name_to_instance() 190 if (!unit_name_is_valid(n, UNIT_NAME_ANY)) in unit_name_to_prefix_and_instance() 210 if (!unit_name_is_valid(n, UNIT_NAME_ANY)) in unit_name_to_type() 227 if (!unit_name_is_valid(n, UNIT_NAME_ANY)) in unit_name_change_suffix() 245 if (!unit_name_is_valid(s, UNIT_NAME_ANY)) in unit_name_change_suffix() 294 if (!unit_name_is_valid(s, instance ? UNIT_NAME_INSTANCE : UNIT_NAME_PLAIN)) in unit_name_build_from_type() 467 if (!unit_name_is_valid(f, UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE)) in unit_name_replace_instance() 485 if (!unit_name_is_valid(s, UNIT_NAME_INSTANCE)) in unit_name_replace_instance() [all …]
|
D | unit-file.c | 260 if (unit_name_is_valid(chopped, UNIT_NAME_ANY) || in directory_name_is_valid() 470 if (!unit_name_is_valid(de->d_name, UNIT_NAME_ANY)) in unit_file_build_name_map() 489 if (!unit_name_is_valid(de->d_name, UNIT_NAME_ANY)) { in unit_file_build_name_map() 595 if (unit_name_is_valid(dst, UNIT_NAME_TEMPLATE)) { in unit_file_build_name_map() 675 … if (name_type == UNIT_NAME_INSTANCE && unit_name_is_valid(*alias, UNIT_NAME_TEMPLATE)) { in add_names()
|
D | unit-name.h | 19 bool unit_name_is_valid(const char *n, UnitNameFlags flags) _pure_;
|
D | cgroup-util.c | 1119 if (!unit_name_is_valid(c, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) in cg_path_decode_unit() 1146 return unit_name_is_valid(c, UNIT_NAME_PLAIN); in valid_slice_name() 1633 if (!unit_name_is_valid(unit, UNIT_NAME_PLAIN)) in cg_slice_to_path() 1666 if (!unit_name_is_valid(n, UNIT_NAME_PLAIN)) in cg_slice_to_path()
|
/systemd-251/src/shared/ |
D | install.c | 635 if (!unit_name_is_valid(de->d_name, UNIT_NAME_ANY)) in remove_marked_symlinks_fd() 759 if (i->default_instance && unit_name_is_valid(i->name, UNIT_NAME_TEMPLATE)) { in is_symlink_with_known_name() 822 assert(unit_name_is_valid(info->name, UNIT_NAME_ANY)); in find_symlinks_in_directory() 1017 if (enabled_at_all && unit_name_is_valid(info->name, UNIT_NAME_INSTANCE)) { in find_symlinks_in_scope() 1120 if (!unit_name_is_valid(name, UNIT_NAME_ANY)) in install_info_add() 1277 if (unit_name_is_valid(unit, UNIT_NAME_INSTANCE)) in config_parse_default_instance() 1281 if (!unit_name_is_valid(unit, UNIT_NAME_TEMPLATE)) in config_parse_default_instance() 1331 …if (unit_name_is_valid(info->name, UNIT_NAME_TEMPLATE|UNIT_NAME_INSTANCE) && !unit_type_may_templa… in unit_file_load() 1474 if (unit_name_is_valid(info->name, UNIT_NAME_INSTANCE)) { in unit_file_search() 1649 if (unit_name_is_valid(i->name, UNIT_NAME_INSTANCE) && in install_info_traverse() [all …]
|
D | install-printf.c | 42 if (unit_name_is_valid(i->name, UNIT_NAME_TEMPLATE) && i->default_instance) in specifier_name()
|
D | dropin.c | 153 is_instance = unit_name_is_valid(name, UNIT_NAME_INSTANCE); in unit_file_find_dirs()
|
/systemd-251/src/analyze/ |
D | analyze-verify-util.c | 55 if (!unit_name_is_valid(name, UNIT_NAME_ANY)) in verify_prepare_filename() 58 if (unit_name_is_valid(name, UNIT_NAME_TEMPLATE)) { in verify_prepare_filename()
|
D | analyze-security.c | 2882 if (unit_name_is_valid(mangled, UNIT_NAME_TEMPLATE)) { in analyze_security()
|
/systemd-251/src/systemctl/ |
D | systemctl-util.c | 453 !unit_name_is_valid(unit_name, UNIT_NAME_TEMPLATE)) { in unit_find_paths() 604 if (unit_name_is_valid(name, UNIT_NAME_TEMPLATE)) { in unit_is_masked() 644 if (unit_name_is_valid(unit, UNIT_NAME_TEMPLATE)) in unit_exists()
|
D | systemctl-set-default.c | 17 if (!unit_name_is_valid(value, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) { in parse_proc_cmdline_item()
|
D | systemctl-edit.c | 423 if (unit_name_is_valid(*name, UNIT_NAME_INSTANCE) && in find_paths_to_edit() 424 unit_name_is_valid(unit_name, UNIT_NAME_TEMPLATE)) { in find_paths_to_edit()
|
/systemd-251/src/udev/ |
D | udevadm-util.c | 35 if (!unit_name_is_valid(unit_name, UNIT_NAME_PLAIN)) in find_device_from_unit()
|
/systemd-251/src/core/ |
D | load-dropin.c | 52 if (!unit_name_is_valid(entry, UNIT_NAME_ANY)) { in process_deps()
|
D | unit.c | 237 if (unit_name_is_valid(text, UNIT_NAME_TEMPLATE)) { in unit_add_name() 259 if (!unit_name_is_valid(name, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) in unit_add_name() 332 if (unit_name_is_valid(name, UNIT_NAME_TEMPLATE)) { in unit_choose_id() 1214 if (unit_name_is_valid(name, UNIT_NAME_TEMPLATE)) { in unit_merge_by_name() 3172 if (!unit_name_is_valid(name, UNIT_NAME_TEMPLATE)) { in resolve_template()
|
D | device.c | 428 if (unit_name_is_valid(word, UNIT_NAME_TEMPLATE) && d->sysfs) { in device_add_udev_wants()
|
D | manager.c | 2136 … if (t == _UNIT_TYPE_INVALID || !unit_name_is_valid(name, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) { in manager_load_unit_prepare() 2137 if (unit_name_is_valid(name, UNIT_NAME_TEMPLATE)) in manager_load_unit_prepare() 3106 if (!unit_name_is_valid(n, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) { in manager_load_unit_from_dbus_path()
|
D | dbus-unit.c | 2253 if (!unit_name_is_valid(s, UNIT_NAME_PLAIN)) in bus_unit_set_transient_property() 2341 if (!unit_name_is_valid(other, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) in bus_unit_set_transient_property()
|
D | main.c | 251 if (!unit_name_is_valid(value, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) in parse_proc_cmdline_item()
|
D | load-fragment.c | 209 if (!unit_name_is_valid(name, UNIT_NAME_INSTANCE)) in unit_is_likely_recursive_template_dependency() 6138 if (unit_name_is_valid(id, UNIT_NAME_TEMPLATE)) { in unit_load_fragment()
|
/systemd-251/src/portable/ |
D | portable.c | 257 if (!unit_name_is_valid(de->d_name, UNIT_NAME_ANY)) in extract_now() 751 if (unit_name_is_valid(name, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) { in unit_file_is_active() 773 if (unit_name_is_valid(name, UNIT_NAME_TEMPLATE)) { in unit_file_is_active() 1565 if (!unit_name_is_valid(de->d_name, UNIT_NAME_ANY)) in portable_detach() 1745 if (!unit_name_is_valid(de->d_name, UNIT_NAME_ANY)) in portable_get_state_internal()
|
/systemd-251/src/test/ |
D | test-unit-name.c | 38 assert_se(unit_name_is_valid(name, flags) == expected); in test_unit_name_is_valid_one() 41 TEST(unit_name_is_valid) { in TEST() argument 211 assert_se(unit_name_is_valid(t, UNIT_NAME_ANY) || in test_unit_name_mangle_one()
|
/systemd-251/src/escape/ |
D | escape.c | 96 if (!unit_name_is_valid(optarg, UNIT_NAME_TEMPLATE)) in parse_argv()
|
/systemd-251/src/journal/ |
D | journald-stream.c | 383 unit_name_is_valid(p, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) { in stdout_stream_line()
|
/systemd-251/src/timedate/ |
D | timedated.c | 141 if (!unit_name_is_valid(s, UNIT_NAME_PLAIN)) in context_add_ntp_service()
|