Home
last modified time | relevance | path

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

/systemd-251/src/home/
Dhomework-password-cache.c20 char **strv; in password_cache_load_keyring() local
45 strv = new(char*, 2); in password_cache_load_keyring()
46 if (!strv) in password_cache_load_keyring()
49strv[0] = TAKE_PTR(p); /* Note that keyring_read() will NUL terminate implicitly, hence we don't h… in password_cache_load_keyring()
51 strv[1] = NULL; in password_cache_load_keyring()
54 cache->keyring_passswords = strv; in password_cache_load_keyring()
/systemd-251/src/basic/
Dconf-files.c185 int conf_files_insert(char ***strv, const char *root, char **dirs, const char *path) { in conf_files_insert() argument
200 n = strv_length(*strv); in conf_files_insert()
204 c = base_cmp((char* const*) *strv + i, (char* const*) &path); in conf_files_insert()
215 p1 = path_startswith((*strv)[i], rdir); in conf_files_insert()
229 return free_and_replace((*strv)[i], t); in conf_files_insert()
246 r = strv_insert(strv, i, t); in conf_files_insert()
Dglob-util.c64 int glob_extend(char ***strv, const char *path, int flags) { in glob_extend() argument
72 return strv_extend_strv(strv, g.gl_pathv, false); in glob_extend()
Dglob-util.h14 int glob_extend(char ***strv, const char *path, int flags);
Dconf-files.h17 int conf_files_insert(char ***strv, const char *root, char **dirs, const char *path);
Dmeson.build228 'strv.c',
229 'strv.h',
/systemd-251/src/analyze/
Danalyze-unit-files.c8 static bool strv_fnmatch_strv_or_empty(char* const* patterns, char **strv, int flags) { in strv_fnmatch_strv_or_empty() argument
9 STRV_FOREACH(s, strv) in strv_fnmatch_strv_or_empty()
Danalyze.c131 int bus_get_unit_property_strv(sd_bus *bus, const char *path, const char *property, char ***strv) { in bus_get_unit_property_strv() argument
138 assert(strv); in bus_get_unit_property_strv()
147 strv); in bus_get_unit_property_strv()
Danalyze.h42 int bus_get_unit_property_strv(sd_bus *bus, const char *path, const char *property, char ***strv);
/systemd-251/src/test/
Dtest-conf-parser.c64 _cleanup_strv_free_ char **strv = NULL; in test_config_parse_strv_one() local
66 …assert_se(config_parse_strv("unit", "filename", 1, "section", 1, "lvalue", 0, rvalue, &strv, NULL)… in test_config_parse_strv_one()
67 assert_se(strv_equal(expected, strv)); in test_config_parse_strv_one()
Dtest-serialize.c96 char **strv = STRV_MAKE("a", "b", "foo foo", in TEST() local
110 assert_se(serialize_strv(f, "strv3", strv) == 1); in TEST()
133 assert_se(strv_equal(strv, strv2)); in TEST()
Dtest-hashmap-plain.c88 char **strv; in TEST() local
107 strv = hashmap_get_strv(m); in TEST()
110 strv = strv_sort(strv); in TEST()
113 assert_se(streq(strv[0], "val1")); in TEST()
114 assert_se(streq(strv[1], "val2")); in TEST()
115 assert_se(streq(strv[2], "val3")); in TEST()
116 assert_se(streq(strv[3], "val4")); in TEST()
118 strv_free(strv); in TEST()
Dtest-format-table.c148 TEST(strv) { in TEST() argument
Dmeson.build540 [files('test-strv.c')],
/systemd-251/src/libsystemd-network/
Dtest-dhcp6-client.c759 char **strv; in test_lease_common() local
768 assert_se(sd_dhcp6_lease_get_domains(lease, &strv) == 1); in test_lease_common()
769 assert_se(streq(strv[0], "lab.intra")); in test_lease_common()
770 assert_se(!strv[1]); in test_lease_common()
783 assert_se(sd_dhcp6_lease_get_ntp_fqdn(lease, &strv) == 1); in test_lease_common()
784 assert_se(streq(strv[0], "ntp.intra")); in test_lease_common()
785 assert_se(!strv[1]); in test_lease_common()
/systemd-251/src/libsystemd/sd-device/
Ddevice-private.h14 int device_new_from_strv(sd_device **ret, char **strv);
52 int device_get_properties_strv(sd_device *device, char ***strv);
Ddevice-private.c437 int device_new_from_strv(sd_device **ret, char **strv) { in device_new_from_strv() argument
443 assert(strv); in device_new_from_strv()
449 STRV_FOREACH(key, strv) { in device_new_from_strv()
581 int device_get_properties_strv(sd_device *device, char ***strv) { in device_get_properties_strv() argument
585 assert(strv); in device_get_properties_strv()
591 *strv = device->properties_strv; in device_get_properties_strv()
/systemd-251/src/shared/
Dformat-table.c92 char **strv; member
226 strv_free(d->strv); in table_data_free()
406 d->strv = strv_copy(data); in table_data_new()
407 if (!d->strv) in table_data_new()
1236 return strv_compare(a->strv, b->strv); in cell_data_compare()
1357 static char* format_strv_width(char **strv, size_t column_width) { in format_strv_width() argument
1367 STRV_FOREACH(p, strv) { in format_strv_width()
1420 if (strv_isempty(d->strv)) in table_data_format()
1423 d->formatted = strv_join(d->strv, "\n"); in table_data_format()
1429 if (strv_isempty(d->strv)) in table_data_format()
[all …]
/systemd-251/src/libsystemd/sd-bus/
Dbus-message.h204 int bus_message_get_arg_strv(sd_bus_message *m, unsigned i, char ***strv);
Dbus-message.c5621 _cleanup_strv_free_ char **strv = NULL; in sd_bus_message_read_strv() local
5628 r = bus_message_read_strv_extend(m, &strv); in sd_bus_message_read_strv()
5632 *l = TAKE_PTR(strv); in sd_bus_message_read_strv()
5696 int bus_message_get_arg_strv(sd_bus_message *m, unsigned i, char ***strv) { in bus_message_get_arg_strv() argument
5702 assert(strv); in bus_message_get_arg_strv()
5713 return sd_bus_message_read_strv(m, strv); in bus_message_get_arg_strv()
/systemd-251/src/libsystemd/sd-journal/
Djournal-file.c381 const char* strv[5]; in warn_wrong_flags() local
387 strv[n++] = "sealed"; in warn_wrong_flags()
390 strv[n++] = "xz-compressed"; in warn_wrong_flags()
392 strv[n++] = "lz4-compressed"; in warn_wrong_flags()
394 strv[n++] = "zstd-compressed"; in warn_wrong_flags()
396 strv[n++] = "keyed-hash"; in warn_wrong_flags()
398 strv[n] = NULL; in warn_wrong_flags()
399 assert(n < ELEMENTSOF(strv)); in warn_wrong_flags()
401 t = strv_join((char**) strv, ", "); in warn_wrong_flags()
/systemd-251/src/resolve/
Dresolved-dns-rr.c753 _cleanup_strv_free_ char **strv = NULL; in format_types() local
760 r = strv_extend(&strv, dns_type_to_string(type)); in format_types()
770 r = strv_consume(&strv, t); in format_types()
776 str = strv_join(strv, " "); in format_types()
Dresolvectl.c1481 static int strv_extend_extended_bool(char ***strv, const char *name, const char *value) { in strv_extend_extended_bool() argument
1487 return strv_extendf(strv, "%s%s", plus_minus(r), name); in strv_extend_extended_bool()
1490 return strv_extendf(strv, "%s=%s", name, value ?: "???"); in strv_extend_extended_bool()
/systemd-251/src/core/
Dnamespace.c317 static int append_access_mounts(MountEntry **p, char **strv, MountMode mode, bool forcibly_require_… in append_access_mounts() argument
322 STRV_FOREACH(i, strv) { in append_access_mounts()
351 static int append_empty_dir_mounts(MountEntry **p, char **strv) { in append_empty_dir_mounts() argument
357 STRV_FOREACH(i, strv) { in append_empty_dir_mounts()
Dexecute.c5715 static void strv_dump(FILE* f, const char *prefix, const char *name, char **strv) { in strv_dump() argument
5720 if (!strv_isempty(strv)) { in strv_dump()
5722 strv_fprintf(f, strv); in strv_dump()