Searched refs:pattern (Results 1 - 11 of 11) sorted by relevance

/systemd/src/test/
H A Dtest-tmpfiles.c36 char *pattern = strjoina(p, "/systemd-test-XXXXXX"); local
52 fd2 = mkostemp_safe(pattern, O_RDWR|O_CLOEXEC);
54 assert_se(unlink(pattern) == 0);
H A Dtest-unit-name.c68 static void test_unit_name_replace_instance_one(const char *pattern, const char *repl, const char *expected, int ret) { argument
70 assert_se(unit_name_replace_instance(pattern, repl, &t) == ret);
114 static void test_unit_name_from_path_instance_one(const char *pattern, const char *path, const char *suffix, const char *expected, int ret) { argument
117 assert_se(unit_name_from_path_instance(pattern, path, suffix, &t) == ret);
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);
219 #define expect(unit, pattern, expected) \
223 assert_se(unit_full_printf(unit, pattern, &t) >= 0); \
H A Dtest-unit-file.c593 #define expect(src, pattern, result) \
599 assert_se(install_full_printf(&src, pattern, &t) >= 0 || !result); \
/systemd/src/libsystemd/sd-bus/
H A Dbus-internal.c217 * Complex pattern match
249 bool namespace_complex_pattern(const char *pattern, const char *value) { argument
250 return complex_pattern_check('.', pattern, value);
253 bool path_complex_pattern(const char *pattern, const char *value) { argument
254 return complex_pattern_check('/', pattern, value);
258 * Simple pattern match
289 bool namespace_simple_pattern(const char *pattern, const char *value) { argument
290 return simple_pattern_check('.', pattern, value);
293 bool path_simple_pattern(const char *pattern, const char *value) { argument
294 return simple_pattern_check('/', pattern, valu
[all...]
H A Dbus-internal.h350 bool namespace_complex_pattern(const char *pattern, const char *value) _pure_;
351 bool path_complex_pattern(const char *pattern, const char *value) _pure_;
353 bool namespace_simple_pattern(const char *pattern, const char *value) _pure_;
354 bool path_simple_pattern(const char *pattern, const char *value) _pure_;
/systemd/src/basic/
H A Dfileio.h55 int get_proc_field(const char *filename, const char *pattern, const char *terminator, char **field);
74 int mkostemp_safe(char *pattern, int flags);
H A Denv-util.c250 _pure_ static bool env_match(const char *t, const char *pattern) { argument
252 assert(pattern);
254 /* pattern a matches string a
264 if (streq(t, pattern))
267 if (!strchr(pattern, '=')) {
268 size_t l = strlen(pattern);
270 return strneq(t, pattern, l) && t[l] == '=';
/systemd/src/journal/
H A Dtest-compress.c155 char pattern[] = "/tmp/systemd-test.compressed.XXXXXX", local
170 assert_se((dst = mkostemp_safe(pattern, O_RDWR|O_CLOEXEC)) >= 0);
175 assert_se(asprintf(&cmd, "%s %s | diff %s -", cat, pattern, srcfile) > 0);
203 assert_se(unlink(pattern) == 0);
H A Djournalctl.c1291 char **pattern, *eq; local
1305 STRV_FOREACH(pattern, patterns)
1306 if (fnmatch(*pattern, u, FNM_NOESCAPE) == 0) {
1307 log_debug("Matched %s with pattern %s=%s", u, field, *pattern);
/systemd/src/coredump/
H A Dcoredumpctl.c92 char *pattern = NULL; local
110 pattern = strjoin(prefix, match, NULL);
111 if (!pattern) {
116 log_debug("Adding pattern: %s", pattern);
117 r = set_consume(set, pattern);
/systemd/src/analyze/
H A Danalyze.c1093 char **pattern; local
1096 STRV_FOREACH(pattern, patterns) {
1100 if (strv_extend(&expanded_patterns, *pattern) < 0)
1103 if (string_is_glob(*pattern))
1106 unit = unit_dbus_path_from_name(*pattern);
1121 if (!streq(*pattern, unit_id)) {
1300 " --from-pattern=GLOB Show only origins in the graph\n"
1301 " --to-pattern=GLOB Show only destinations in the graph\n"
1343 { "from-pattern", required_argument, NULL, ARG_DOT_FROM_PATTERN },
1344 { "to-pattern", required_argumen
[all...]

Completed in 3000 milliseconds