Searched refs:UNIT_NAME_TEMPLATE (Results 1 - 8 of 8) sorted by relevance

/systemd/src/test/
H A Dtest-unit-name.c46 assert_se(!unit_name_is_valid("foo.service", UNIT_NAME_TEMPLATE));
47 assert_se(!unit_name_is_valid("foo.service", UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE));
52 assert_se(!unit_name_is_valid("foo@bar.service", UNIT_NAME_TEMPLATE));
53 assert_se(unit_name_is_valid("foo@bar.service", UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE));
58 assert_se(unit_name_is_valid("foo@.service", UNIT_NAME_TEMPLATE));
59 assert_se(unit_name_is_valid("foo@.service", UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE));
/systemd/src/escape/
H A Descape.c99 if (!unit_name_is_valid(optarg, UNIT_NAME_TEMPLATE)) {
/systemd/src/basic/
H A Dunit-name.h264 UNIT_NAME_TEMPLATE = 4, /* Allow foo@.service */ enumerator in enum:UnitNameFlags
265 UNIT_NAME_ANY = UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE,
H A Dunit-name.c56 assert((flags & ~(UNIT_NAME_PLAIN|UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE)) == 0);
94 if (flags & UNIT_NAME_TEMPLATE)
466 if (!unit_name_is_valid(f, UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE))
495 if (!unit_name_is_valid(f, UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE))
/systemd/src/analyze/
H A Danalyze-verify.c52 if (unit_name_is_valid(name, UNIT_NAME_TEMPLATE)) {
/systemd/src/shared/
H A Dinstall.c1014 if (!unit_name_is_valid(bn, UNIT_NAME_INSTANCE|UNIT_NAME_TEMPLATE))
1017 } else if (unit_name_is_valid(info->name, UNIT_NAME_TEMPLATE)) {
1019 if (!unit_name_is_valid(bn, UNIT_NAME_TEMPLATE))
1189 unit_name_is_valid(bn, UNIT_NAME_TEMPLATE)) {
1294 if (unit_name_is_valid(i->name, UNIT_NAME_TEMPLATE)) {
/systemd/src/core/
H A Dunit.c161 if (unit_name_is_valid(text, UNIT_NAME_TEMPLATE)) {
246 if (unit_name_is_valid(name, UNIT_NAME_TEMPLATE)) {
772 if (unit_name_is_valid(name, UNIT_NAME_TEMPLATE)) {
2273 if (!unit_name_is_valid(name, UNIT_NAME_TEMPLATE)) {
/systemd/src/systemctl/
H A Dsystemctl.c2324 if (!install_client_side() && !unit_name_is_valid(unit_name, UNIT_NAME_TEMPLATE)) {

Completed in 59 milliseconds