Searched refs:seats (Results 1 - 10 of 10) sorted by relevance

/systemd/src/libsystemd/sd-login/
H A Dtest-login.c42 char **seats, **sessions, **machines; local
79 r = sd_uid_get_seats(u2, false, &seats);
81 assert_se(r == (int) strv_length(seats));
82 assert_se(t = strv_join(seats, ", "));
83 strv_free(seats);
84 printf("seats = %s\n", t);
181 r = sd_get_seats(&seats);
183 assert_se(r == (int) strv_length(seats));
184 assert_se(t = strv_join(seats, ", "));
185 strv_free(seats);
[all...]
H A Dsd-login.c329 p = strappend("/run/systemd/seats/", seat);
337 p = strappend("/run/systemd/seats/", buf);
424 _public_ int sd_uid_get_seats(uid_t uid, int require_active, char ***seats) { argument
430 seats);
786 _public_ int sd_get_seats(char ***seats) { argument
787 return get_files_in_directory("/run/systemd/seats/", seats);
967 k = inotify_add_watch(fd, "/run/systemd/seats/", IN_MOVED_TO|IN_DELETE);
/systemd/src/systemd/
H A Dsd-login.h133 /* Return seats of user is on. If require_active is true, this will look for
134 * active seats only. Returns the number of seats.
135 * If seats is NULL, this will just return the number of seats. */
136 int sd_uid_get_seats(uid_t uid, int require_active, char ***seats);
203 /* Get all seats, store in *seats. Returns the number of seats. If
204 * seats i
[all...]
/systemd/src/login/
H A Dlogind.c75 m->seats = hashmap_new(&string_hash_ops);
84 if (!m->devices || !m->seats || !m->sessions || !m->users || !m->inhibitors || !m->buttons || !m->user_units || !m->session_units)
127 while ((s = hashmap_first(m->seats)))
137 hashmap_free(m->seats);
195 /* Loads devices from udev and creates seats for them as
291 /* This loads data about seats stored on disk, but does not
292 * actually create any seats. Removes data of seats that no
295 d = opendir("/run/systemd/seats");
300 return log_error_errno(errno, "Failed to open /run/systemd/seats
[all...]
H A Dlogind-core.c65 s = hashmap_get(m->seats, id);
217 seat = hashmap_get(m->seats, sn);
220 /* Ignore non-master devices for unknown seats */
H A Dlogind-seat-dbus.c369 seat = hashmap_get(m->seats, e);
403 HASHMAP_FOREACH(seat, m->seats, i) {
H A Dlogind.h44 Hashmap *seats; member in struct:Manager
H A Dlogind-seat.c50 s->state_file = strappend("/run/systemd/seats/", id);
59 if (hashmap_put(m->seats, s->id, s) < 0) {
82 hashmap_remove(s->manager->seats, s->id);
99 r = mkdir_safe_label("/run/systemd/seats", 0755, 0, 0);
549 /* On seats with VTs, the VT logic defines which session is active. On
550 * seats without VTs, we automatically activate new sessions. */
H A Dlogind-dbus.c128 seat = hashmap_get(m->seats, name);
518 HASHMAP_FOREACH(seat, m->seats, i) {
632 seat = hashmap_get(m->seats, cseat);
H A Dlogind-session.c393 o = hashmap_get(s->manager->seats, seat);
483 /* on seats with VTs, we let VTs manage session-switching */
491 /* On seats without VTs, we implement session-switching in logind. We

Completed in 1432 milliseconds