Home
last modified time | relevance | path

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

123

/systemd-251/coccinelle/
Disempty.cocci8 - strv_length@p(s) == 0
11 - strv_length@p(s) <= 0
14 - strv_length@p(s) > 0
17 - strv_length@p(s) != 0
/systemd-251/src/basic/
Dstrv.c84 result = new(char*, strv_length(l) + 1); in strv_copy()
100 size_t strv_length(char * const *l) { in strv_length() function
168 p = strv_length(*a); in strv_extend_strv()
169 q = strv_length(b); in strv_extend_strv()
239 n = strv_length(l); in strv_split_newlines_full()
299 return (int) strv_length(*t); in strv_split_and_extend_full()
413 n = strv_length(*l); in strv_push()
437 n = strv_length(*l); in strv_push_pair()
465 n = strv_length(*l); in strv_insert()
556 n = strv_length(*l); in strv_extend_front()
[all …]
Denv-util.c188 size_t n = strv_length(first); in _strv_env_merge()
198 n += strv_length(l); in _strv_env_merge()
275 n = strv_length(x); in strv_env_delete()
698 l = strv_length(argv); in replace_env_argv()
725 q = strv_length(m); in replace_env_argv()
Dstrv.h33 size_t strv_length(char * const *l) _pure_;
133 size_t _len = strv_length(h); \
/systemd-251/src/test/
Dtest-env-util.c32 assert_se(strv_length(d) == 2); in TEST()
62 assert_se(strv_length(l) == 2); in TEST()
78 assert_se(strv_length(r) == 7); in TEST()
87 assert_se(strv_length(r) == 6); in TEST()
98 assert_se(strv_length(a) == 2); in TEST()
117 assert_se(strv_length(a) == 3); in TEST()
133 assert_se(strv_length(a) == 1); in TEST()
281 assert_se(strv_length(r) == 17); in TEST()
421 assert_se(strv_length(l) == 4); in TEST()
Dtest-strv.c212 assert_se(r == (int) strv_length(list)); in test_strv_unquote_one()
405 assert_se(r == (int) strv_length(l)); in TEST()
421 assert_se(r == (int) strv_length(l)); in TEST()
423 assert_se(r == (int) strv_length(l)); in TEST()
428 assert_se(r == (int) strv_length(l)); in TEST()
441 assert_se(r == (int) strv_length(l)); in TEST()
594 assert_se(strv_length(a) == 6); in TEST()
601 assert_se(strv_length(n) == 4); in TEST()
924 assert_se(i == strv_length(l)); in test_strv_make_nulstr_one()
Dtest-load-fragment.c74 n = strv_length(c->argv); in check_execcommand()
789 assert_se(strv_length(passenv) == 2); in TEST()
803 assert_se(strv_length(passenv) == 1); in TEST()
847 assert_se(strv_length(files) == 1); in TEST()
853 assert_se(strv_length(files) == 2); in TEST()
867 assert_se(strv_length(files) == 1); in TEST()
Dtest-ask-password-api.c16 assert_se(strv_length(ret) == 1); in TEST()
Dtest-verbs.c16 assert_se(dispatch_verb(strv_length(argv), argv, verbs, NULL) == expected);
Dtest-path-lookup.c30 assert_se(strv_length(lp_with_env.search_path) == 1); in test_paths_one()
/systemd-251/src/libsystemd/sd-login/
Dtest-login.c93 assert_se(r == (int) strv_length(sessions)); in TEST()
107 assert_se(r == (int) strv_length(seats)); in TEST()
203 assert_se(r == (int) strv_length(sessions)); in TEST()
215 assert_se(r == (int) strv_length(seats)); in TEST()
230 assert_se(r == (int) strv_length(sessions)); in TEST()
255 assert_se(r == (int) strv_length(machines)); in TEST()
Dsd-login.c384 r = (int) strv_length(a); in uid_get_array()
678 n_sessions = strv_length(sessions); in sd_seat_get_sessions()
914 ifindices = new(int, strv_length(tt)); in sd_machine_get_ifindices()
/systemd-251/src/systemctl/
Dfuzz-systemctl-parse-argv.c34 if (strv_length(argv) > 1024) in LLVMFuzzerTestOneInput()
53 r = systemctl_dispatch_parse_argv(strv_length(argv), argv); in LLVMFuzzerTestOneInput()
Dsystemctl-list-dependencies.c80 typesafe_qsort(deps, strv_length(deps), list_dependencies_compare); in list_dependencies_one()
Dsystemctl-edit.c323 argc = strv_length(paths)/2 + 1; in run_editor()
340 n_editor_args = strv_length(editor_args); in run_editor()
Dsystemctl-start-special.c60 if (strv_length(e->initrd) > 1) in load_kexec_kernel()
/systemd-251/src/cryptenroll/
Dcryptenroll-password.c57 assert(strv_length(passwords) == 1); in enroll_password()
68 assert(strv_length(passwords2) == 1); in enroll_password()
Dcryptenroll-tpm2.c96 assert(strv_length(pin) == 1); in get_pin()
109 assert(strv_length(pin) == 1); in get_pin()
/systemd-251/src/shared/
Duser-record-show.c475 printf("SSH Pub. Key: %zu\n", strv_length(hr->ssh_authorized_keys)); in user_record_show()
487 printf("Recovery Key: %zu\n", strv_length(hr->recovery_key_type)); in user_record_show()
489 k = strv_length(hr->hashed_password); in user_record_show()
574 printf(" Passwords: %zu\n", strv_length(gr->hashed_password)); in group_record_show()
Dfstab-util.c118 filtered = memdup(stor, sizeof(char*) * (strv_length(stor) + 1)); in fstab_filter_options()
/systemd-251/src/firstboot/
Dfirstboot.c139 n = strv_length(x); in show_menu()
211 if (u <= 0 || u > strv_length(l)) { in prompt_loop()
271 else if (strv_length(locales) == 1) { in prompt_locale()
632 if (strv_length(a) != 1) in prompt_root_password()
650 if (strv_length(b) != 1) in prompt_root_password()
/systemd-251/src/locale/
Dkeymap-util.c250 if (strv_length(a) == 3) { in x11_read_data()
273 if (strv_length(a) == 2 && streq(a[1], "InputClass")) in x11_read_data()
448 length = strv_length(b); in read_next_mapping()
684 assert(strv_length(a) == 2); in find_language_fallback()
/systemd-251/src/libsystemd/sd-network/
Dsd-network.c86 r = (int) strv_length(a); in network_get_strv()
157 r = (int) strv_length(a); in network_link_get_strv()
/systemd-251/src/core/
Dnamespace.c1657 strv_length(read_write_paths) + in namespace_calculate_mounts()
1658 strv_length(read_only_paths) + in namespace_calculate_mounts()
1659 strv_length(inaccessible_paths) + in namespace_calculate_mounts()
1660 strv_length(exec_paths) + in namespace_calculate_mounts()
1661 strv_length(no_exec_paths) + in namespace_calculate_mounts()
1662 strv_length(empty_directories) + in namespace_calculate_mounts()
2131 strv_length(extension_directories), in setup_namespace()
2132 strv_length(hierarchies), in setup_namespace()
/systemd-251/src/udev/
Dudev-builtin.c118 return builtins[cmd]->cmd(dev, rtnl, strv_length(argv), argv, test); in udev_builtin_run()

123