Home
last modified time | relevance | path

Searched refs:by_name (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/resolve/
Dtest-resolved-etc-hosts.c74 assert_se(bn = hashmap_get(hosts.by_name, "some.where")); in TEST()
81 assert_se(bn = hashmap_get(hosts.by_name, "dash")); in TEST()
86 assert_se(bn = hashmap_get(hosts.by_name, "dash-dash.where-dash")); in TEST()
93 assert_se(!hashmap_get(hosts.by_name, s)); in TEST()
95 assert_se(bn = hashmap_get(hosts.by_name, "before.comment")); in TEST()
103 assert_se(!hashmap_get(hosts.by_name, "within.comment")); in TEST()
104 assert_se(!hashmap_get(hosts.by_name, "within.comment2")); in TEST()
105 assert_se(!hashmap_get(hosts.by_name, "within.comment3")); in TEST()
106 assert_se(!hashmap_get(hosts.by_name, "#")); in TEST()
108 assert_se(!hashmap_get(hosts.by_name, "short.address")); in TEST()
[all …]
Dresolved-dns-zone.c55 first = hashmap_get(z->by_name, dns_resource_key_name(i->rr->key)); in dns_zone_item_remove_and_free()
56 LIST_REMOVE(by_name, first, i); in dns_zone_item_remove_and_free()
58 … assert_se(hashmap_replace(z->by_name, dns_resource_key_name(first->rr->key), first) >= 0); in dns_zone_item_remove_and_free()
60 hashmap_remove(z->by_name, dns_resource_key_name(i->rr->key)); in dns_zone_item_remove_and_free()
74 assert(hashmap_size(z->by_name) == 0); in dns_zone_flush()
77 z->by_name = hashmap_free(z->by_name); in dns_zone_flush()
129 r = hashmap_ensure_allocated(&z->by_name, &dns_name_hash_ops); in dns_zone_init()
150 first = hashmap_get(z->by_name, dns_resource_key_name(i->rr->key)); in dns_zone_link_item()
152 LIST_PREPEND(by_name, first, i); in dns_zone_link_item()
153 … assert_se(hashmap_replace(z->by_name, dns_resource_key_name(first->rr->key), first) >= 0); in dns_zone_link_item()
[all …]
Dresolved-etc-hosts.c34 hosts->by_name = hashmap_free_with_destructor(hosts->by_name, etc_hosts_item_by_name_free); in etc_hosts_free()
134 bn = hashmap_get(hosts->by_name, name); in parse_line()
136 r = hashmap_ensure_allocated(&hosts->by_name, &dns_name_hash_ops); in parse_line()
144 r = hashmap_put(hosts->by_name, name, bn); in parse_line()
218 n = hashmap_get(hosts->by_name, *i); in strip_localhost()
243 n = hashmap_remove(hosts->by_name, *i); in strip_localhost()
418 bn = hashmap_get(m->etc_hosts.by_name, name); in manager_etc_hosts_lookup()
Dresolved-dns-zone.h8 Hashmap *by_name; member
43 LIST_FIELDS(DnsZoneItem, by_name);
Dresolved-manager.h31 Hashmap *by_name; member
/systemd-251/test/units/
Dtestsuite-54.sh28 elif [ -d /sys/firmware/qemu_fw_cfg/by_name ]; then