Searched refs:UID_TO_PTR (Results 1 - 11 of 11) sorted by relevance

/systemd/src/basic/
H A Duser-util.h62 #define UID_TO_PTR(u) ((void*) (((uintptr_t) (u))+1)) macro
/systemd/src/coredump/
H A Dcoredump-vacuum.c201 c = hashmap_get(h, UID_TO_PTR(uid));
229 r = hashmap_put(h, UID_TO_PTR(uid), n);
/systemd/src/sysusers/
H A Dsysusers.c114 k = hashmap_put(database_user, n, UID_TO_PTR(pw->pw_uid));
120 q = hashmap_put(database_uid, UID_TO_PTR(pw->pw_uid), n);
557 if (hashmap_contains(todo_uids, UID_TO_PTR(pw->pw_uid))) {
647 hashmap_remove(todo_uids, UID_TO_PTR(i->uid));
775 if (hashmap_get(todo_uids, UID_TO_PTR(uid)))
785 if (hashmap_contains(database_uid, UID_TO_PTR(uid)))
984 r = hashmap_put(todo_uids, UID_TO_PTR(i->uid), i);
1002 if (hashmap_get(todo_uids, UID_TO_PTR(gid)))
1008 if (hashmap_contains(database_uid, UID_TO_PTR(gid)))
/systemd/src/login/
H A Dlogind-user-dbus.c296 user = hashmap_get(m->users, UID_TO_PTR(uid));
348 user = hashmap_get(m->users, UID_TO_PTR(uid));
H A Dlogind-user.c88 r = hashmap_put(m->users, UID_TO_PTR(uid), u);
121 hashmap_remove_value(u->manager->users, UID_TO_PTR(u->uid), u);
H A Dlogind-core.c104 u = hashmap_get(m->users, UID_TO_PTR(uid));
H A Dlogind-session.c372 user = hashmap_get(s->manager->users, UID_TO_PTR(u));
H A Dlogind-dbus.c101 user = hashmap_get(m->users, UID_TO_PTR(uid));
1155 u = hashmap_get(m->users, UID_TO_PTR(uid));
/systemd/src/bus-proxyd/
H A Dbus-xml-policy.c393 first = hashmap_get(p->user_items, UID_TO_PTR(i->uid));
397 r = hashmap_replace(p->user_items, UID_TO_PTR(i->uid), first);
797 items = hashmap_get(p->user_items, UID_TO_PTR(filter->uid));
/systemd/src/test/
H A Dtest-util.c1477 assert_se(UID_TO_PTR(0) != NULL);
1478 assert_se(UID_TO_PTR(1000) != NULL);
1480 assert_se(PTR_TO_UID(UID_TO_PTR(0)) == 0);
1481 assert_se(PTR_TO_UID(UID_TO_PTR(1000)) == 1000);
/systemd/src/journal/
H A Djournald-server.c293 f = ordered_hashmap_get(s->user_journals, UID_TO_PTR(uid));
314 r = ordered_hashmap_put(s->user_journals, UID_TO_PTR(uid), f);

Completed in 302 milliseconds