Home
last modified time | relevance | path

Searched refs:hashmap_contains (Results 1 – 22 of 22) sorted by relevance

/systemd-251/src/test/
Dtest-hashmap.c117 assert_se(hashmap_contains(m, "foo")); in TEST()
126 assert_se(hashmap_contains(m, "xxx")); in TEST()
140 assert_se(hashmap_contains(m, "foo")); in TEST()
148 assert_se(hashmap_contains(m, "xxx")); in TEST()
Dtest-hashmap-plain.c560 TEST(hashmap_contains) { in TEST() argument
569 assert_se(!hashmap_contains(m, "Key 1")); in TEST()
571 assert_se(hashmap_contains(m, "Key 1")); in TEST()
572 assert_se(!hashmap_contains(m, "Key 2")); in TEST()
574 assert_se(!hashmap_contains(NULL, "Key 1")); in TEST()
720 assert_se(hashmap_contains(h, UINT_TO_PTR(i)) == (i % 3 == 1)); in TEST()
985 assert_se(hashmap_contains(m, "foo")); in TEST()
995 assert_se(hashmap_contains(m, "xxx")); in TEST()
/systemd-251/src/resolve/
Dresolved-dns-trust-anchor.c35hashmap_contains(d->positive_by_key, &DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_DNSKEY, name))… in dns_trust_anchor_knows_domain_positive()
36hashmap_contains(d->positive_by_key, &DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_DS, name)); in dns_trust_anchor_knows_domain_positive()
568 …if (hashmap_contains(d->positive_by_key, &DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_DS, name))) in dns_trust_anchor_lookup_negative()
571 …if (hashmap_contains(d->positive_by_key, &DNS_RESOURCE_KEY_CONST(DNS_CLASS_IN, DNS_TYPE_KEY, name)… in dns_trust_anchor_lookup_negative()
/systemd-251/src/network/wait-online/
Dmanager.c25 !hashmap_contains(m->command_line_interfaces_by_name, link->ifname)) in manager_ignore_link()
61 if (!hashmap_contains(m->command_line_interfaces_by_name, l->ifname)) { in manager_link_is_online()
/systemd-251/src/shared/
Djournal-util.c83 return hashmap_contains(j->errors, INT_TO_PTR(-EACCES)); in journal_access_blocked()
Ddiscover-image.c593 if (hashmap_contains(h, pretty)) in image_discover()
612 if (class == IMAGE_MACHINE && !hashmap_contains(h, ".host")) { in image_discover()
Dmount-util.c326 !(top_autofs || hashmap_contains(todo, prefix))) { in bind_remount_recursive_with_mountinfo()
/systemd-251/src/xdg-autostart-generator/
Dxdg-autostart-generator.c70 if (hashmap_contains(all_services, name)) { in enumerate_xdg_autostart()
/systemd-251/src/basic/
Dconf-files.c58 if (hashmap_contains(h, de->d_name)) { in files_add()
Dunit-file.c539 if (hashmap_contains(ids, de->d_name)) in unit_file_build_name_map()
Dhashmap.h188 static inline bool hashmap_contains(Hashmap *h, const void *key) { in hashmap_contains() function
/systemd-251/src/libsystemd/sd-bus/
Dbus-track.c300 return hashmap_contains(track->names, name) ? name : NULL; in sd_bus_track_contains()
/systemd-251/src/libsystemd-network/
Dsd-dhcp-server.c864 if (hashmap_contains(server->static_leases_by_address, UINT32_TO_PTR(address))) in address_is_in_pool()
1058 if (hashmap_contains(server->bound_leases_by_address, UINT32_TO_PTR(address)) || in address_available()
1059 hashmap_contains(server->static_leases_by_address, UINT32_TO_PTR(address)) || in address_available()
/systemd-251/src/sysusers/
Dsysusers.c954 if (hashmap_contains(database_by_uid, UID_TO_PTR(uid))) in uid_is_ok()
1183 if (hashmap_contains(database_by_gid, GID_TO_PTR(gid))) in gid_is_ok()
1186 if (hashmap_contains(database_by_uid, UID_TO_PTR(gid))) in gid_is_ok()
/systemd-251/src/sysv-generator/
Dsysv-generator.c747 if (hashmap_contains(all_services, name)) in enumerate_sysv()
/systemd-251/src/home/
Dhomed-home.c106 if (hashmap_contains(m->homes_by_name, hr->user_name)) in home_new()
109 if (hashmap_contains(m->homes_by_uid, UID_TO_PTR(hr->uid))) in home_new()
112 if (sysfs && hashmap_contains(m->homes_by_sysfs, sysfs)) in home_new()
/systemd-251/src/libsystemd/sd-netlink/
Dsd-netlink.c223 } while (hashmap_contains(nl->reply_callbacks, UINT32_TO_PTR(picked))); in netlink_seal_message()
/systemd-251/src/login/
Dlogind-dbus.c874 if (hashmap_contains(m->sessions, id)) { in method_create_session()
888 } while (hashmap_contains(m->sessions, id)); in method_create_session()
/systemd-251/src/libsystemd/sd-event/
Dsd-event.c1427 if (hashmap_contains(e->child_sources, PID_TO_PTR(pid))) in sd_event_add_child()
1523 if (hashmap_contains(e->child_sources, PID_TO_PTR(pid))) in sd_event_add_child_pidfd()
/systemd-251/src/core/
Dunit.c255 if (hashmap_contains(u->manager->units, name)) in unit_add_name()
4653 …if (hashmap_contains(u->requires_mounts_for, path)) /* Exit quickly if the path is already covered… in unit_require_mounts_for()
Dexecute.c2740 if (r == -ENOENT && (missing_ok || hashmap_contains(context->set_credentials, id))) { in load_credential()
/systemd-251/src/analyze/
Danalyze-security.c591 if (hashmap_contains(s, syscall) != allow_list) { in syscall_names_in_filter()