Home
last modified time | relevance | path

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

12345678

/systemd-251/src/busctl/
Dbusctl-introspect.c81 if (streq_ptr(name, "name")) in parse_xml_annotation()
84 else if (streq_ptr(name, "value")) in parse_xml_annotation()
93 (t == XML_TAG_CLOSE && streq_ptr(name, "annotation"))) { in parse_xml_annotation()
96 if (streq_ptr(field, "org.freedesktop.DBus.Deprecated")) { in parse_xml_annotation()
98 if (streq_ptr(value, "true")) in parse_xml_annotation()
101 … } else if (streq_ptr(field, "org.freedesktop.DBus.Method.NoReply")) { in parse_xml_annotation()
103 if (streq_ptr(value, "true")) in parse_xml_annotation()
106 … } else if (streq_ptr(field, "org.freedesktop.DBus.Property.EmitsChangedSignal")) { in parse_xml_annotation()
108 if (streq_ptr(value, "const")) in parse_xml_annotation()
110 else if (streq_ptr(value, "invalidates")) in parse_xml_annotation()
[all …]
/systemd-251/src/test/
Dtest-proc-cmdline.c38 assert_se(proc_cmdline_get_key("foo_bar", 0, &value) > 0 && streq_ptr(value, "quux")); in TEST()
41 …assert_se(proc_cmdline_get_key("some_arg_with_space", 0, &value) > 0 && streq_ptr(value, "foo bar"… in TEST()
44 … assert_se(proc_cmdline_get_key("and_one_more", 0, &value) > 0 && streq_ptr(value, "zzz aaa")); in TEST()
51 assert_se(proc_cmdline_get_key("foo_bar", 0, &value) > 0 && streq_ptr(value, "quux")); in TEST()
54 …assert_se(proc_cmdline_get_key("some_arg_with_space", 0, &value) > 0 && streq_ptr(value, "foo bar"… in TEST()
57 … assert_se(proc_cmdline_get_key("and_one_more", 0, &value) > 0 && streq_ptr(value, "zzz aaa")); in TEST()
119 assert_se(proc_cmdline_get_key("foo_bar", 0, &value) > 0 && streq_ptr(value, "quux")); in TEST()
121 …c_cmdline_get_key("foo_bar", PROC_CMDLINE_VALUE_OPTIONAL, &value) > 0 && streq_ptr(value, "quux")); in TEST()
123 assert_se(proc_cmdline_get_key("foo-bar", 0, &value) > 0 && streq_ptr(value, "quux")); in TEST()
125 …c_cmdline_get_key("foo-bar", PROC_CMDLINE_VALUE_OPTIONAL, &value) > 0 && streq_ptr(value, "quux")); in TEST()
[all …]
Dtest-strv.c38 assert_se(streq_ptr(STARTSWITH_SET("foobar", "hhh", "kkk", "foo", "zzz"), "bar")); in TEST()
39 assert_se(streq_ptr(STARTSWITH_SET("foobar", "hhh", "kkk", "", "zzz"), "foobar")); in TEST()
40 assert_se(streq_ptr(STARTSWITH_SET("", "hhh", "kkk", "zzz", ""), "")); in TEST()
406 assert_se(streq_ptr(l[0], "")); in TEST()
407 assert_se(streq_ptr(l[1], "foo:bar")); in TEST()
408 assert_se(streq_ptr(l[2], "")); in TEST()
409 assert_se(streq_ptr(l[3], "waldo")); in TEST()
410 assert_se(streq_ptr(l[4], "")); in TEST()
411 assert_se(streq_ptr(l[5], NULL)); in TEST()
424 assert_se(streq_ptr(l[0], "")); in TEST()
[all …]
Dtest-unit-file.c90 assert_se(streq_ptr(runlevel_to_target(NULL), NULL)); in TEST()
91 assert_se(streq_ptr(runlevel_to_target("unknown-runlevel"), NULL)); in TEST()
92 assert_se(streq_ptr(runlevel_to_target("rd.unknown-runlevel"), NULL)); in TEST()
93 assert_se(streq_ptr(runlevel_to_target("3"), SPECIAL_MULTI_USER_TARGET)); in TEST()
94 assert_se(streq_ptr(runlevel_to_target("rd.rescue"), NULL)); in TEST()
97 assert_se(streq_ptr(runlevel_to_target(NULL), NULL)); in TEST()
98 assert_se(streq_ptr(runlevel_to_target("unknown-runlevel"), NULL)); in TEST()
99 assert_se(streq_ptr(runlevel_to_target("rd.unknown-runlevel"), NULL)); in TEST()
100 assert_se(streq_ptr(runlevel_to_target("3"), NULL)); in TEST()
101 assert_se(streq_ptr(runlevel_to_target("rd.rescue"), SPECIAL_RESCUE_TARGET)); in TEST()
Dtest-path-util.c462 assert_se(streq_ptr(z, expected)); in test_path_make_relative_one()
513 assert_se(streq_ptr(p, expected)); in test_path_startswith_one()
786 assert_se(streq_ptr(k, output)); in test_path_extract_filename_one()
830 assert_se(streq_ptr(k, output)); in test_path_extract_directory_one()
991 assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar", "/foo/quux", "/foo/bar", "/zzz"), "")); in TEST()
992 assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar", "/foo/quux", "/foo/", "/zzz"), "bar")); in TEST()
993 assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar", "/foo/quux", "/foo", "/zzz"), "bar")); in TEST()
994 assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar", "/foo/quux", "/", "/zzz"), "foo/bar")); in TEST()
995 assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar", "/foo/quux", "", "/zzz"), NULL)); in TEST()
997 … assert_se(streq_ptr(PATH_STARTSWITH_SET("/foo/bar2", "/foo/quux", "/foo/bar", "/zzz"), NULL)); in TEST()
[all …]
Dtest-hmac.c22 …assert_se(streq_ptr(hex_result, "cadd5e42114351181f3abff477641d88efb57d2b5641a1e5c6d623363a6d3bad"… in TEST()
29 …assert_se(streq_ptr(hex_result, "c47ad5031ba21605e52c6ca68090d66a2dd5ccf84efa4bace15361a8cba63cda"… in TEST()
36 …assert_se(streq_ptr(hex_result, "4e8974ad6c08b98cc2519cd1e27aa7195769fcf86db1dd7ceaab4d44c490ad69"… in TEST()
43 …assert_se(streq_ptr(hex_result, "039f3df430b19753ffb493e5b90708f75c5210b63c6bcbef3374eb3f0a3f97f7"… in TEST()
50 …assert_se(streq_ptr(hex_result, "c4cfaf48077cbb0bbd177a09e59ec4c248f4ca771503410f5b54b98d88d2f47b"… in TEST()
57 …assert_se(streq_ptr(hex_result, "2c059e7a63c4c3b23f47966a65fd2f8a2f5d7161e2e90d78ff68866b5c375cb7"… in TEST()
64 …assert_se(streq_ptr(hex_result, "1dd1d1d45b9d9f9673dc9983c968c46ff3168e03cfeb4156a219eba1af4cff5f"… in TEST()
Dtest-escape.c72 assert_se(streq_ptr(unescaped, "abc\\\"\b\f\a\n\r\t\v\003\177\234\313\\000\\x00")); in TEST()
78 assert_se(streq_ptr(unescaped, "\\x0")); in TEST()
83 assert_se(streq_ptr(unescaped, "\\x")); in TEST()
88 assert_se(streq_ptr(unescaped, "\\")); in TEST()
93 assert_se(streq_ptr(unescaped, "\\11")); in TEST()
98 assert_se(streq_ptr(unescaped, "\\1")); in TEST()
103 assert_se(streq_ptr(unescaped, "ßßΠA")); in TEST()
107 assert_se(streq_ptr(unescaped, ";")); in TEST()
111 assert_se(streq_ptr(unescaped, "A=A\\x0aB")); in TEST()
115 assert_se(streq_ptr(unescaped, "A=A\\x0aB")); in TEST()
[all …]
Dtest-fileio.c74 assert_se(streq_ptr(a[0], "one=BAR")); in TEST()
75 assert_se(streq_ptr(a[1], "two=bar")); in TEST()
76 assert_se(streq_ptr(a[2], "three=333\nxxxx")); in TEST()
77 assert_se(streq_ptr(a[3], "four=44\\\"44")); in TEST()
78 assert_se(streq_ptr(a[4], "five=55\"55FIVEcinco")); in TEST()
79 assert_se(streq_ptr(a[5], "six=seis sechs sis")); in TEST()
80 assert_se(streq_ptr(a[6], "seven=sevenval#nocomment")); in TEST()
81 assert_se(streq_ptr(a[7], "eight=eightval #nocomment")); in TEST()
82 assert_se(streq_ptr(a[8], "export nine=nineval")); in TEST()
83 assert_se(streq_ptr(a[9], "ten=")); in TEST()
[all …]
Dtest-fstab-util.c42 assert_se(streq_ptr(name, name_expected)); in do_fstab_filter_options()
43 assert_se(streq_ptr(value, value_expected)); in do_fstab_filter_options()
44 assert_se(streq_ptr(filtered, filtered_expected ?: opts)); in do_fstab_filter_options()
54 assert_se(streq_ptr(name, r_values_expected > 0 ? name_expected : NULL)); in do_fstab_filter_options()
55 assert_se(streq_ptr(joined, values_expected)); in do_fstab_filter_options()
63 assert_se(streq_ptr(name, name_expected)); in do_fstab_filter_options()
Dtest-extract-word.c689 assert_se(streq_ptr(a, "foobar")); in TEST()
690 assert_se(streq_ptr(b, "waldi")); in TEST()
691 assert_se(streq_ptr(c, "piep")); in TEST()
699 assert_se(streq_ptr(a, "foobar")); in TEST()
700 assert_se(streq_ptr(b, "waldi")); in TEST()
701 assert_se(streq_ptr(c, "piep")); in TEST()
704 assert_se(streq_ptr(d, "ba1")); in TEST()
705 assert_se(streq_ptr(e, "ba2")); in TEST()
717 assert_se(streq_ptr(a, "'foobar'")); in TEST()
718 assert_se(streq_ptr(b, "wa\"ld\"i")); in TEST()
[all …]
Dtest-format-util.c25 …assert_se(streq_ptr(format_bytes_full(buf, sizeof buf, val, FORMAT_BYTES_USE_IEC | FORMAT_BYTES_BE… in test_format_bytes_one()
26 …assert_se(streq_ptr(format_bytes_full(buf, sizeof buf, val, FORMAT_BYTES_USE_IEC | (trailing_B ? F… in test_format_bytes_one()
27 …assert_se(streq_ptr(format_bytes_full(buf, sizeof buf, val, FORMAT_BYTES_BELOW_POINT | (trailing_B… in test_format_bytes_one()
28 …assert_se(streq_ptr(format_bytes_full(buf, sizeof buf, val, trailing_B ? FORMAT_BYTES_TRAILING_B :… in test_format_bytes_one()
Dtest-dns-domain.c176 assert_se(streq_ptr(expect, t)); in test_dns_label_escape_one()
196 assert_se(streq_ptr(expect, t)); in test_dns_name_normalize_one()
352 assert_se(streq_ptr(p, result)); in test_dns_name_concat_one()
489 assert_se(streq_ptr(t, d)); in test_dns_service_join_one()
495 assert_se(streq_ptr(a, x)); in test_dns_service_join_one()
496 assert_se(streq_ptr(b, y)); in test_dns_service_join_one()
521 assert_se(streq_ptr(x, a)); in test_dns_service_split_one()
522 assert_se(streq_ptr(y, b)); in test_dns_service_split_one()
523 assert_se(streq_ptr(z, c)); in test_dns_service_split_one()
551 assert_se(streq_ptr(s, result)); in test_dns_name_change_suffix_one()
[all …]
Dtest-conf-files.c75 assert_se(streq_ptr(found_files[0], expect_a)); in test_conf_files_list_one()
76 assert_se(streq_ptr(found_files[1], expect_b)); in test_conf_files_list_one()
84 assert_se(streq_ptr(found_files2[0], expect_a)); in test_conf_files_list_one()
85 assert_se(streq_ptr(found_files2[1], expect_b)); in test_conf_files_list_one()
86 assert_se(streq_ptr(found_files2[2], expect_c)); in test_conf_files_list_one()
Dtest-env-util.c161 assert_se(streq_ptr(strv_env_get_n(env, "PATH__", 4, REPLACE_ENV_USE_ENVIRONMENT), in TEST()
163 assert_se(streq_ptr(strv_env_get_n(env, "PATH", 4, REPLACE_ENV_USE_ENVIRONMENT), in TEST()
367 assert_se(streq_ptr(getenv("A"), "a1")); in TEST()
369 assert_se(streq_ptr(getenv("A"), "a1")); in TEST()
371 assert_se(streq_ptr(getenv("A"), "a1")); in TEST()
373 assert_se(streq_ptr(getenv("A"), "a2")); in TEST()
439 assert_se(streq_ptr(getenv(n), copy1)); in TEST()
442 assert_se(streq_ptr(copy1, copy2)); in TEST()
Dtest-string-util.c39 assert_se(streq_ptr(*t, expected)); in test_free_and_strndup_one()
85 !streq_ptr(cases[i].expected, prev_expected)); in TEST()
214 TEST(streq_ptr) { in TEST() argument
215 assert_se(streq_ptr(NULL, NULL)); in TEST()
216 assert_se(!streq_ptr("abc", "cdef")); in TEST()
230 assert_se(streq_ptr(str, "")); in TEST()
232 assert_se(streq_ptr(str, "0123")); in TEST()
234 assert_se(streq_ptr(str, "0123456789")); in TEST()
241 assert_se(streq_ptr(str, "")); in TEST()
245 assert_se(streq_ptr(str, "")); in TEST()
[all …]
Dtest-cgroup-util.c28 assert_se(streq_ptr(unit, result)); in check_p_d_u()
50 assert_se(streq_ptr(unit, result)); in check_p_g_u()
74 assert_se(streq_ptr(unit, result)); in check_p_g_u_u()
97 assert_se(streq_ptr(s, result)); in check_p_g_s()
124 assert_se(streq_ptr(s, result)); in check_p_g_slice()
141 assert_se(streq_ptr(s, result)); in check_p_g_u_slice()
259 assert_se(streq_ptr(ret, path)); in test_slice_to_path_one()
Dtest-unit-name.c94 assert_se(streq_ptr(t, expected)); in test_unit_name_replace_instance_one()
114 assert_se(streq_ptr(t, expected)); in test_unit_name_from_path_one()
161 assert_se(streq_ptr(t, expected)); in test_unit_name_from_path_instance_one()
187 assert_se(streq_ptr(path, p)); in test_unit_name_to_path_one()
206 assert_se(streq_ptr(t, expect)); in test_unit_name_mangle_one()
215 assert_se(streq_ptr(t, k)); in test_unit_name_mangle_one()
522 assert_se(streq_ptr(s, expect)); in test_build_parent_slice_one()
589 assert_se(streq_ptr(f, expected)); in test_u_n_t_one()
601 assert_se(streq_ptr(path, p)); in test_unit_name_path_unescape_one()
623 assert_se(streq_ptr(k, output)); in test_unit_name_to_prefix_one()
[all …]
/systemd-251/src/libudev/
Dtest-libudev.c364 assert_se(streq_ptr(udev_list_entry_get_name(e), "aaa")); in test_list()
365 assert_se(streq_ptr(udev_list_entry_get_value(e), "hoge")); in test_list()
368 assert_se(streq_ptr(udev_list_entry_get_name(e), "aaa")); in test_list()
369 assert_se(streq_ptr(udev_list_entry_get_value(e), "hogehoge")); in test_list()
372 assert_se(streq_ptr(udev_list_entry_get_name(e), "bbb")); in test_list()
373 assert_se(streq_ptr(udev_list_entry_get_value(e), "foo")); in test_list()
388 assert_se(streq_ptr(udev_list_entry_get_name(e), "aaa")); in test_list()
389 assert_se(streq_ptr(udev_list_entry_get_value(e), "hogehoge")); in test_list()
391 assert_se(streq_ptr(udev_list_entry_get_name(e), "bbb")); in test_list()
392 assert_se(streq_ptr(udev_list_entry_get_value(e), "foo")); in test_list()
[all …]
/systemd-251/src/libsystemd/sd-bus/
Dtest-bus-marshal.c31 …_encode_unique(NULL, "/foo/bar", "some.sender", "a.suffix", &a) >= 0 && streq_ptr(a, "/foo/bar/som… in test_bus_path_encode_unique()
32 …se(bus_path_decode_unique(a, "/foo/bar", &b, &c) > 0 && streq_ptr(b, "some.sender") && streq_ptr(c… in test_bus_path_encode_unique()
35 …path_decode_unique("/foo/bar/_/_", "/foo/bar", &d, &e) > 0 && streq_ptr(d, "") && streq_ptr(e, "")… in test_bus_path_encode_unique()
63 …_path_decode_many("/prefix/foobar/suffix", "/prefix/%/suffix", &a) == 1 && streq_ptr(a, "foobar")); in test_bus_path_encode_many()
64 …/prefix/one_%_two/mid/three_%_four/suffix", &b, &c) == 1 && streq_ptr(b, "foo") && streq_ptr(c, "b… in test_bus_path_encode_many()
65 …_four/suffix", "/prefix/one_%_two/mid/three_%_four/suffix", NULL, &d) == 1 && streq_ptr(d, "bar")); in test_bus_path_encode_many()
74 …assert_se(sd_bus_path_decode_many("/foo/bar/suffix", "/foo/%/suffix", &e) == 1 && streq_ptr(e, "ba… in test_bus_path_encode_many()
84 …(&f, "/prefix/one_%_two/mid/three_%_four/suffix", "foo", "bar") >= 0 && streq_ptr(f, "/prefix/one_… in test_bus_path_encode_many()
/systemd-251/src/hostname/
Dhostnamectl.c58 if (streq_ptr(chassis, "laptop")) in chassis_string_to_glyph()
60 if (streq_ptr(chassis, "desktop")) in chassis_string_to_glyph()
62 if (streq_ptr(chassis, "server")) in chassis_string_to_glyph()
64 if (streq_ptr(chassis, "tablet")) in chassis_string_to_glyph()
66 if (streq_ptr(chassis, "watch")) in chassis_string_to_glyph()
68 if (streq_ptr(chassis, "handset")) in chassis_string_to_glyph()
70 if (streq_ptr(chassis, "vm")) in chassis_string_to_glyph()
72 if (streq_ptr(chassis, "container")) in chassis_string_to_glyph()
106 !streq_ptr(i->pretty_hostname, i->static_hostname)) { in print_status_info()
115 !streq_ptr(i->hostname, i->static_hostname)) { in print_status_info()
/systemd-251/src/analyze/
Danalyze.c491 if (arg_offline && !streq_ptr(argv[optind], "security")) in parse_argv()
499 if (arg_threshold != 100 && !streq_ptr(argv[optind], "security")) in parse_argv()
508 if (streq_ptr(argv[optind], "cat-config") && arg_scope == LOOKUP_SCOPE_USER) in parse_argv()
512 if (arg_security_policy && !streq_ptr(argv[optind], "security")) in parse_argv()
517 (!(streq_ptr(argv[optind], "security") && arg_offline))) in parse_argv()
525 if (arg_unit && !streq_ptr(argv[optind], "condition")) in parse_argv()
528 if (streq_ptr(argv[optind], "condition") && !arg_unit && optind >= argc - 1) in parse_argv()
531 if (streq_ptr(argv[optind], "condition") && arg_unit && optind < argc - 1) in parse_argv()
/systemd-251/src/udev/
Dtest-udev-netlink.c111 assert_se(streq_ptr(s, t)); in test_link_info_one()
119 assert_se(streq_ptr(s, t)); in test_link_info_one()
128 assert_se(streq_ptr(s, t)); in test_link_info_one()
130 assert_se(streq_ptr(s, info.phys_port_name)); in test_link_info_one()
131 assert_se(streq_ptr(t, info.phys_port_name)); in test_link_info_one()
/systemd-251/src/shared/
Dresize-fs.c111 if (streq_ptr(name, "ext4")) in minimal_size_by_fs_name()
114 if (streq_ptr(name, "xfs")) in minimal_size_by_fs_name()
117 if (streq_ptr(name, "btrfs")) in minimal_size_by_fs_name()
/systemd-251/src/locale/
Dkeymap-util.c87 if (isempty(locale[p]) || streq_ptr(locale[VARIABLE_LANG], locale[p])) in locale_simplify()
498 if (!streq_ptr(c->x11_layout, empty_or_dash_to_null(a[1])) || in vconsole_convert_to_x11()
499 !streq_ptr(c->x11_model, empty_or_dash_to_null(a[2])) || in vconsole_convert_to_x11()
500 !streq_ptr(c->x11_variant, empty_or_dash_to_null(a[3])) || in vconsole_convert_to_x11()
501 !streq_ptr(c->x11_options, empty_or_dash_to_null(a[4]))) { in vconsole_convert_to_x11()
612 if (isempty(c->x11_model) || streq_ptr(c->x11_model, a[2])) { in find_legacy_keymap()
615 if (streq_ptr(c->x11_variant, a[3])) { in find_legacy_keymap()
618 if (streq_ptr(c->x11_options, a[4])) in find_legacy_keymap()
721 if (!streq_ptr(c->vc_keymap, new_keymap)) { in x11_convert_to_vconsole()
/systemd-251/src/basic/
Daf-list.c50 return streq_ptr(af, "ipv4") ? AF_INET : in af_from_ipv4_ipv6()
51 streq_ptr(af, "ipv6") ? AF_INET6 : AF_UNSPEC; in af_from_ipv4_ipv6()

12345678