/systemd-251/src/coredump/ |
D | coredump-vacuum.c | 180 c = hashmap_get(h, UID_TO_PTR(uid)); in coredump_vacuum() 208 r = hashmap_put(h, UID_TO_PTR(uid), n); in coredump_vacuum()
|
/systemd-251/src/test/ |
D | test-user-util.c | 141 assert_se(UID_TO_PTR(0) != NULL); in TEST() 142 assert_se(UID_TO_PTR(1000) != NULL); in TEST() 144 assert_se(PTR_TO_UID(UID_TO_PTR(0)) == 0); in TEST() 145 assert_se(PTR_TO_UID(UID_TO_PTR(1000)) == 1000); in TEST()
|
/systemd-251/src/sysusers/ |
D | sysusers.c | 190 k = hashmap_put(database_by_username, n, UID_TO_PTR(pw->pw_uid)); in load_user_database() 194 q = hashmap_put(database_by_uid, UID_TO_PTR(pw->pw_uid), n); in load_user_database() 435 if (ordered_hashmap_contains(todo_uids, UID_TO_PTR(pw->pw_uid))) in write_temporary_passwd() 559 ordered_hashmap_remove(todo_uids, UID_TO_PTR(i->uid)); in write_temporary_shadow() 940 if (ordered_hashmap_get(todo_uids, UID_TO_PTR(uid))) in uid_is_ok() 954 if (hashmap_contains(database_by_uid, UID_TO_PTR(uid))) in uid_is_ok() 1155 r = ordered_hashmap_ensure_put(&todo_uids, NULL, UID_TO_PTR(i->uid), i); in add_user() 1180 if (ordered_hashmap_get(todo_uids, UID_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/login/ |
D | logind-user-dbus.c | 296 user = hashmap_get(m->users, UID_TO_PTR(uid)); in user_object_find() 349 user = hashmap_get(m->users, UID_TO_PTR(uid)); in user_node_enumerator()
|
D | logind-user.c | 87 r = hashmap_put(m->users, UID_TO_PTR(ur->uid), u); in user_new() 126 hashmap_remove_value(u->manager->users, UID_TO_PTR(u->user_record->uid), u); in user_free()
|
D | logind-seat-dbus.c | 364 user = hashmap_get(m->users, UID_TO_PTR(uid)); in seat_node_enumerator()
|
D | logind-core.c | 161 u = hashmap_get(m->users, UID_TO_PTR(ur->uid)); in manager_add_user()
|
D | logind-dbus.c | 113 user = hashmap_get(m->users, UID_TO_PTR(uid)); in get_sender_session() 174 user = hashmap_get(m->users, UID_TO_PTR(uid)); in get_sender_user() 193 user = hashmap_get(m->users, UID_TO_PTR(uid)); in manager_get_user_from_creds() 1317 u = hashmap_get(m->users, UID_TO_PTR(uid)); in method_set_user_linger()
|
D | logind-session-dbus.c | 677 user = hashmap_get(m->users, UID_TO_PTR(uid)); in session_node_enumerator()
|
D | logind-session.c | 467 user = hashmap_get(s->manager->users, UID_TO_PTR(u)); in session_load()
|
/systemd-251/src/home/ |
D | homed-varlink.c | 102 h = hashmap_get(m->homes_by_uid, UID_TO_PTR(p.uid)); in vl_method_get_user_record() 217 h = hashmap_get(m->homes_by_uid, UID_TO_PTR((uid_t) p.gid)); in vl_method_get_group_record()
|
D | homed-manager-bus.c | 124 h = hashmap_get(m->homes_by_uid, UID_TO_PTR(uid)); in method_get_home_by_uid() 255 h = hashmap_get(m->homes_by_uid, UID_TO_PTR(uid)); in method_get_user_record_by_uid() 362 other = hashmap_get(m->homes_by_uid, UID_TO_PTR(hr->uid)); in validate_and_allocate_home()
|
D | homed-home.c | 109 if (hashmap_contains(m->homes_by_uid, UID_TO_PTR(hr->uid))) in home_new() 148 r = hashmap_put(m->homes_by_uid, UID_TO_PTR(home->uid), home); in home_new() 187 … (void) hashmap_remove_value(h->manager->homes_by_uid, UID_TO_PTR(h->uid), h); in home_free() 271 other = hashmap_get(h->manager->homes_by_uid, UID_TO_PTR(hr->uid)); in home_set_record() 276 …r = hashmap_remove_and_replace(h->manager->homes_by_uid, UID_TO_PTR(h->uid), UID_TO_PTR(hr->uid), … in home_set_record()
|
D | homed-home-bus.c | 741 h = hashmap_get(m->homes_by_uid, UID_TO_PTR(uid)); in bus_home_object_find()
|
D | homed-manager.c | 614 other = hashmap_get(m->homes_by_uid, UID_TO_PTR(candidate)); in manager_acquire_uid()
|
/systemd-251/src/basic/ |
D | user-util.h | 88 #define UID_TO_PTR(u) ((void*) (((uintptr_t) (u))+1)) macro
|
/systemd-251/src/tmpfiles/ |
D | offline-passwd.c | 59 r = hashmap_put(cache, n, UID_TO_PTR(pw->pw_uid)); in populate_uid_cache()
|
/systemd-251/src/core/ |
D | manager-serialize.c | 274 c = PTR_TO_UINT32(hashmap_get(*uid_refs, UID_TO_PTR(uid))); in manager_deserialize_uid_refs_one_internal() 280 r = hashmap_replace(*uid_refs, UID_TO_PTR(uid), UINT32_TO_PTR(c)); in manager_deserialize_uid_refs_one_internal()
|
D | manager.c | 4263 c = PTR_TO_UINT32(hashmap_get(uid_refs, UID_TO_PTR(uid))); in manager_unref_uid_internal() 4270 hashmap_remove(uid_refs, UID_TO_PTR(uid)); in manager_unref_uid_internal() 4280 assert_se(hashmap_update(uid_refs, UID_TO_PTR(uid), UINT32_TO_PTR(c)) >= 0); in manager_unref_uid_internal() 4316 c = PTR_TO_UINT32(hashmap_get(*uid_refs, UID_TO_PTR(uid))); in manager_ref_uid_internal() 4326 return hashmap_replace(*uid_refs, UID_TO_PTR(uid), UINT32_TO_PTR(c)); in manager_ref_uid_internal()
|
/systemd-251/src/shared/ |
D | varlink.c | 1177 c = PTR_TO_UINT(hashmap_get(v->server->by_uid, UID_TO_PTR(v->ucred.uid))); in varlink_detach_server() 1181 (void) hashmap_remove(v->server->by_uid, UID_TO_PTR(v->ucred.uid)); in varlink_detach_server() 1183 … (void) hashmap_replace(v->server->by_uid, UID_TO_PTR(v->ucred.uid), UINT_TO_PTR(c - 1)); in varlink_detach_server() 2090 c = PTR_TO_UINT(hashmap_get(server->by_uid, UID_TO_PTR(ucred->uid))); in validate_connection() 2115 c = PTR_TO_UINT(hashmap_get(server->by_uid, UID_TO_PTR(ucred->uid))); in count_connection() 2120 r = hashmap_replace(server->by_uid, UID_TO_PTR(ucred->uid), UINT_TO_PTR(c + 1)); in count_connection()
|
/systemd-251/src/journal/ |
D | journald-server.c | 444 f = ordered_hashmap_get(s->user_journals, UID_TO_PTR(uid)); in find_journal() 463 r = ordered_hashmap_put(s->user_journals, UID_TO_PTR(uid), f); in find_journal() 585 if (ordered_hashmap_contains(s->user_journals, UID_TO_PTR(uid))) in vacuum_offline_user_journals()
|
/systemd-251/src/udev/ |
D | udev-rules.c | 347 r = hashmap_ensure_put(&rules->known_users, &string_hash_ops, n, UID_TO_PTR(uid)); in rule_resolve_user() 866 … r = rule_line_add_token(rule_line, TK_A_OWNER_ID, op, NULL, UID_TO_PTR(uid)); in parse_token() 873 … r = rule_line_add_token(rule_line, TK_A_OWNER_ID, op, NULL, UID_TO_PTR(uid)); in parse_token()
|