Home
last modified time | relevance | path

Searched refs:unit_name_is_valid (Results 1 – 25 of 26) sorted by relevance

12

/systemd-251/src/basic/
Dunit-name.c42 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 …]
Dunit-file.c260 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()
Dunit-name.h19 bool unit_name_is_valid(const char *n, UnitNameFlags flags) _pure_;
Dcgroup-util.c1119 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/
Dinstall.c635 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 …]
Dinstall-printf.c42 if (unit_name_is_valid(i->name, UNIT_NAME_TEMPLATE) && i->default_instance) in specifier_name()
Ddropin.c153 is_instance = unit_name_is_valid(name, UNIT_NAME_INSTANCE); in unit_file_find_dirs()
/systemd-251/src/analyze/
Danalyze-verify-util.c55 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()
Danalyze-security.c2882 if (unit_name_is_valid(mangled, UNIT_NAME_TEMPLATE)) { in analyze_security()
/systemd-251/src/systemctl/
Dsystemctl-util.c453 !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()
Dsystemctl-set-default.c17 if (!unit_name_is_valid(value, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) { in parse_proc_cmdline_item()
Dsystemctl-edit.c423 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/
Dudevadm-util.c35 if (!unit_name_is_valid(unit_name, UNIT_NAME_PLAIN)) in find_device_from_unit()
/systemd-251/src/core/
Dload-dropin.c52 if (!unit_name_is_valid(entry, UNIT_NAME_ANY)) { in process_deps()
Dunit.c237 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()
Ddevice.c428 if (unit_name_is_valid(word, UNIT_NAME_TEMPLATE) && d->sysfs) { in device_add_udev_wants()
Dmanager.c2136 … 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()
Ddbus-unit.c2253 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()
Dmain.c251 if (!unit_name_is_valid(value, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) in parse_proc_cmdline_item()
Dload-fragment.c209 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/
Dportable.c257 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/
Dtest-unit-name.c38 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/
Descape.c96 if (!unit_name_is_valid(optarg, UNIT_NAME_TEMPLATE)) in parse_argv()
/systemd-251/src/journal/
Djournald-stream.c383 unit_name_is_valid(p, UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE)) { in stdout_stream_line()
/systemd-251/src/timedate/
Dtimedated.c141 if (!unit_name_is_valid(s, UNIT_NAME_PLAIN)) in context_add_ntp_service()

12