Searched refs:seats (Results 1 - 10 of 10) sorted by relevance
/systemd/src/libsystemd/sd-login/ |
H A D | test-login.c | 42 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 D | sd-login.c | 329 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 D | sd-login.h | 133 /* 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 D | logind.c | 75 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 D | logind-core.c | 65 s = hashmap_get(m->seats, id); 217 seat = hashmap_get(m->seats, sn); 220 /* Ignore non-master devices for unknown seats */
|
H A D | logind-seat-dbus.c | 369 seat = hashmap_get(m->seats, e); 403 HASHMAP_FOREACH(seat, m->seats, i) {
|
H A D | logind.h | 44 Hashmap *seats; member in struct:Manager
|
H A D | logind-seat.c | 50 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 D | logind-dbus.c | 128 seat = hashmap_get(m->seats, name); 518 HASHMAP_FOREACH(seat, m->seats, i) { 632 seat = hashmap_get(m->seats, cseat);
|
H A D | logind-session.c | 393 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