Home
last modified time | relevance | path

Searched refs:set_put (Results 1 – 25 of 31) sorted by relevance

12

/systemd-251/src/test/
Dtest-set.c18 assert_se(set_put(m, (void*) "1") == 1); in TEST()
19 assert_se(set_put(m, (void*) "22") == 1); in TEST()
20 assert_se(set_put(m, (void*) "333") == 1); in TEST()
44 assert_se(set_put(m, items + i) == 1); in TEST()
62 assert_se(set_put(m, items + i) == 1); in TEST()
71 TEST(set_put) { in TEST() argument
77 assert_se(set_put(m, (void*) "1") == 1); in TEST()
78 assert_se(set_put(m, (void*) "22") == 1); in TEST()
79 assert_se(set_put(m, (void*) "333") == 1); in TEST()
80 assert_se(set_put(m, (void*) "333") == 0); in TEST()
[all …]
Dtest-set-disable-mempool.c36 assert_se(set_put(s, &x[i])); in test_one()
Dtest-ordered-set.c63 TEST(set_put) { in TEST() argument
Dtest-seccomp.c483 assert_se(set_put(s, INT_TO_PTR(AF_UNIX)) >= 0); in TEST()
506 assert_se(set_put(s, INT_TO_PTR(AF_INET)) >= 0); in TEST()
737 assert_se(set_put(s, UINT32_TO_PTR(SCMP_ARCH_X86+1)) >= 0); in TEST()
887 assert_se(set_put(arch_s, SCMP_ARCH_NATIVE) >= 0); in TEST()
/systemd-251/src/cryptenroll/
Dcryptenroll-wipe.c32 if (set_put(wipe_slots, INT_TO_PTR(slot)) < 0) in find_all_slots()
78 if (set_put(wipe_slots, INT_TO_PTR(r)) < 0) in find_empty_passphrase_slots()
145 if (set_put(wipe_slots, INT_TO_PTR(slot)) < 0) in find_slots_by_mask()
154 if (set_put(listed_slots, INT_TO_PTR(slot)) < 0) in find_slots_by_mask()
183 if (set_put(wipe_slots, INT_TO_PTR(slot)) < 0) in find_slots_by_mask()
257 if (set_put(shall_wipe ? wipe_slots : keep_slots, INT_TO_PTR(slot)) < 0) in find_slot_tokens()
263 if (set_put(wipe_tokens, INT_TO_PTR(token)) < 0) in find_slot_tokens()
336 if (set_put(keep_slots, INT_TO_PTR(except_slot)) < 0) in wipe_slots()
346 if (set_put(wipe_slots, INT_TO_PTR(explicit_slots[i])) < 0) in wipe_slots()
/systemd-251/coccinelle/
Dset_ensure_put.cocci9 - r = set_put(p, x);
18 - r = set_put(*p, x);
/systemd-251/src/userdb/
Duserdbd-manager.c215 r = set_put(m->workers_fixed, PID_TO_PTR(pid)); in start_one_worker()
217 r = set_put(m->workers_dynamic, PID_TO_PTR(pid)); in start_one_worker()
/systemd-251/src/shared/
Dkillall.c224 r = set_put(pids, PID_TO_PTR(pid)); in killall()
Dfdset.c77 return set_put(MAKE_SET(s), FD_TO_PTR(fd)); in fdset_put()
Dcgroup-setup.c543 r = set_put(s, PID_TO_PTR(pid)); in cg_migrate()
/systemd-251/src/basic/
Dset.h34 int set_put(Set *s, const void *key);
Dhashmap.c1251 int set_put(Set *s, const void *key) { in set_put() function
1275 return set_put(*s, key); in _set_ensure_put()
1624 r = set_put(s, se->b.key); in set_merge()
1804 r = set_put(s, value); in set_consume()
Dunit-file.c523 r = set_put(paths, filename); in unit_file_build_name_map()
Dcgroup-util.c327 r = set_put(s, PID_TO_PTR(pid)); in cg_kill_items()
/systemd-251/src/systemctl/
Dsystemctl-list-units.c44 r = set_put(replies, reply); in get_unit_list_recursive()
73 r = set_put(replies, reply); in get_unit_list_recursive()
/systemd-251/src/core/
Ddevice.c821 r = set_put(set, other); in device_following_set()
827 r = set_put(set, other); in device_following_set()
Dtransaction.c672 (void) set_put(affected_jobs, j); in transaction_apply()
Dunit.c2846 r = set_put(u->pids, PID_TO_PTR(pid)); in unit_watch_pid()
3821 r = set_put(pid_set, PID_TO_PTR(main_pid)); in unit_pid_set()
3827 r = set_put(pid_set, PID_TO_PTR(control_pid)); in unit_pid_set()
4706 r = set_put(x, u); in unit_require_mounts_for()
Ddbus-unit.c1242 r = set_put(pids, PID_TO_PTR(pid)); in append_process()
1540 r = set_put(pids, PID_TO_PTR(pid)); in bus_unit_method_attach_processes()
/systemd-251/src/busctl/
Dbusctl.c811 r = set_put(members, m); in on_interface()
854 r = set_put(members, m); in on_method()
893 r = set_put(members, m); in on_signal()
933 r = set_put(members, m); in on_property()
/systemd-251/src/journal/
Dmanaged-journal-file.c431 r = set_put(deferred_closes, f); in managed_journal_file_initiate_close()
/systemd-251/src/tty-ask-password-agent/
Dtty-ask-password-agent.c654 if (set_put(pids, PID_TO_PTR(pid)) < 0) in ask_on_consoles()
/systemd-251/src/oom/
Doomd-util.c91 r = set_put(targets, ctx); in oomd_pressure_above()
/systemd-251/src/sysusers/
Dsysusers.c184 k = set_put(database_users, n); in load_user_database()
232 k = set_put(database_groups, n); in load_group_database()
/systemd-251/src/network/
Dnetworkctl.c2631 r = set_put(indexes, INT_TO_PTR(index)); in link_up_down()
2666 r = set_put(indexes, INT_TO_PTR(index)); in link_delete()
2771 r = set_put(indexes, INT_TO_PTR(index)); in verb_reconfigure()

12