Home
last modified time | relevance | path

Searched refs:hashmap_put_strdup (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/test/
Dtest-hashmap.c106 TEST(hashmap_put_strdup) { in TEST() argument
113 assert_se(hashmap_put_strdup(&m, "foo", "bar") == 1); in TEST()
114 assert_se(hashmap_put_strdup(&m, "foo", "bar") == 0); in TEST()
115 assert_se(hashmap_put_strdup(&m, "foo", "BAR") == -EEXIST); in TEST()
116 assert_se(hashmap_put_strdup(&m, "foo", "bar") == 0); in TEST()
122 assert_se(hashmap_put_strdup(&m, "xxx", "bar") == 1); in TEST()
123 assert_se(hashmap_put_strdup(&m, "xxx", "bar") == 0); in TEST()
124 assert_se(hashmap_put_strdup(&m, "xxx", "BAR") == -EEXIST); in TEST()
125 assert_se(hashmap_put_strdup(&m, "xxx", "bar") == 0); in TEST()
136 assert_se(hashmap_put_strdup(&m, "foo", "bar") == 1); in TEST()
[all …]
Dtest-load-fragment.c971 … assert_se(hashmap_put_strdup(&m->unit_id_map, "foobar@foobar@123.service", "/foobar@.service")); in TEST()
972 … assert_se(hashmap_put_strdup(&m->unit_id_map, "foobar@foobar@456.service", "/custom.service")); in TEST()
/systemd-251/src/basic/
Dhashmap.h162 #define hashmap_put_strdup(h, k, v) hashmap_put_strdup_full(h, &string_hash_ops_free_free, k, v) macro
/systemd-251/src/analyze/
Danalyze-security.c2144 r = hashmap_put_strdup(&info->system_call_filter, name, NULL); in property_read_system_call_filter()