/systemd/src/basic/ |
H A D | strv.h | 157 bool strv_fnmatch(char* const* patterns, const char *s, int flags); 159 static inline bool strv_fnmatch_or_empty(char* const* patterns, const char *s, int flags) { argument 161 return strv_isempty(patterns) || 162 strv_fnmatch(patterns, s, flags);
|
H A D | strv.c | 801 bool strv_fnmatch(char* const* patterns, const char *s, int flags) { argument 804 STRV_FOREACH(p, patterns)
|
/systemd/src/analyze/ |
H A D | analyze.c | 1021 static int graph_one_property(sd_bus *bus, const UnitInfo *u, const char* prop, const char *color, char* patterns[], char* from_patterns[], char* to_patterns[]) { argument 1031 match_patterns = strv_fnmatch(patterns, u->id, 0); 1045 match_patterns2 = strv_fnmatch(patterns, *unit, 0); 1052 if (!strv_isempty(patterns) && !match_patterns && !match_patterns2) 1061 static int graph_one(sd_bus *bus, const UnitInfo *u, char *patterns[], char *from_patterns[], char *to_patterns[]) { argument 1068 r = graph_one_property(bus, u, "After", "green", patterns, from_patterns, to_patterns); 1074 r = graph_one_property(bus, u, "Requires", "black", patterns, from_patterns, to_patterns); 1077 r = graph_one_property(bus, u, "Requisite", "darkblue", patterns, from_patterns, to_patterns); 1080 r = graph_one_property(bus, u, "Wants", "grey66", patterns, from_patterns, to_patterns); 1083 r = graph_one_property(bus, u, "Conflicts", "red", patterns, from_pattern 1091 expand_patterns(sd_bus *bus, char **patterns, char ***ret) argument 1133 dot(sd_bus *bus, char* patterns[]) argument [all...] |
/systemd/src/journal/ |
H A D | journalctl.c | 1271 char **patterns, 1305 STRV_FOREACH(pattern, patterns) 1341 _cleanup_strv_free_ char **patterns = NULL; local 1355 r = strv_push(&patterns, u); 1370 if (!strv_isempty(patterns)) { 1375 r = get_possible_units(j, SYSTEM_UNITS, patterns, &units); 1390 patterns = strv_free(patterns); 1400 r = strv_push(&patterns, u); 1415 if (!strv_isempty(patterns)) { 1268 get_possible_units( sd_journal *j, const char *fields, char **patterns, Set **units) argument [all...] |
/systemd/src/systemctl/ |
H A D | systemctl.c | 333 static bool output_show_unit(const UnitInfo *u, char **patterns) { argument 334 if (!strv_fnmatch_or_empty(patterns, u->id, FNM_NOESCAPE)) 526 char **patterns, 568 if (!output_show_unit(&u, patterns)) 600 char **patterns, 619 c = get_unit_list(bus, NULL, patterns, &unit_infos, 0, &reply); 647 k = get_unit_list(container, *i, patterns, &unit_infos, c, &reply); 1278 static bool output_show_unit_file(const UnitFileList *u, char **patterns) { argument 1279 if (!strv_fnmatch_or_empty(patterns, basename(u->path), FNM_NOESCAPE)) 1763 static bool output_show_machine(const char *name, char **patterns) { argument 523 get_unit_list( sd_bus *bus, const char *machine, char **patterns, UnitInfo **unit_infos, int c, sd_bus_message **_reply) argument 598 get_unit_list_recursive( sd_bus *bus, char **patterns, UnitInfo **_unit_infos, Set **_replies, char ***_machines) argument 1767 get_machine_list( sd_bus *bus, struct machine_info **_machine_infos, char **patterns) argument 2124 output_show_job(struct job_info *job, char **patterns) argument 4669 _cleanup_free_ char **patterns = NULL; local [all...] |