Searched defs:allow_globs (Results 1 - 3 of 3) sorted by relevance
/systemd/src/test/ |
H A D | test-unit-name.c | 161 static void test_unit_name_mangle_one(UnitNameMangle allow_globs, const char *pattern, const char *expect, int ret) { argument 164 assert_se(unit_name_mangle(pattern, allow_globs, &t) == ret); 172 (allow_globs == UNIT_NAME_GLOB && string_is_glob(t))); 174 assert_se(unit_name_mangle(t, allow_globs, &k) == 0);
|
/systemd/src/basic/ |
H A D | unit-name.c | 641 static char *do_escape_mangle(const char *f, UnitNameMangle allow_globs, char *t) { argument 645 assert(IN_SET(allow_globs, UNIT_NAME_GLOB, UNIT_NAME_NOGLOB)); 651 valid_chars = allow_globs == UNIT_NAME_GLOB ? VALID_CHARS_GLOB : VALID_CHARS_WITH_AT; 670 * If @allow_globs, globs characters are preserved. Otherwise, they are escaped. 672 int unit_name_mangle_with_suffix(const char *name, UnitNameMangle allow_globs, const char *suffix, char **ret) { argument 691 if (allow_globs == UNIT_NAME_GLOB && 716 t = do_escape_mangle(name, allow_globs, s); 721 if ((allow_globs != UNIT_NAME_GLOB || !string_is_glob(s)) && unit_name_to_type(s) < 0)
|
H A D | unit-name.h | 312 int unit_name_mangle_with_suffix(const char *name, UnitNameMangle allow_globs, const char *suffix, char **ret); 314 static inline int unit_name_mangle(const char *name, UnitNameMangle allow_globs, char **ret) { argument 315 return unit_name_mangle_with_suffix(name, allow_globs, ".service", ret);
|
Completed in 85 milliseconds