X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flogin%2Flogind-seat.c;h=ae42811dea4d12dcc3242fb5361cab4e09525424;hp=1be8713754c3fec5503c8c8e06a6b8a9273fc3c4;hb=d49b80008fd8c0952da67bee0dc8a1314f29b8a7;hpb=3b22396a4b2767a98172f6915929c47738cb0a1e diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c index 1be871375..ae42811de 100644 --- a/src/login/logind-seat.c +++ b/src/login/logind-seat.c @@ -1,5 +1,3 @@ -/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ - /*** This file is part of systemd. @@ -20,17 +18,24 @@ ***/ #include -#include #include #include +#include #include "sd-messages.h" -#include "logind-seat.h" + +#include "alloc-util.h" +#include "fd-util.h" +#include "fileio.h" +#include "formats-util.h" #include "logind-acl.h" -#include "util.h" +#include "logind-seat.h" #include "mkdir.h" -#include "formats-util.h" +#include "parse-util.h" +#include "stdio-util.h" +#include "string-util.h" #include "terminal-util.h" +#include "util.h" Seat *seat_new(Manager *m, const char *id) { Seat *s; @@ -169,15 +174,14 @@ int seat_load(Seat *s) { return 0; } -/// UNNEEDED by elogind -#if 0 +#if 0 /// UNNEEDED by elogind static int vt_allocate(unsigned int vtnr) { char p[sizeof("/dev/tty") + DECIMAL_STR_MAX(unsigned int)]; _cleanup_close_ int fd = -1; assert(vtnr >= 1); - snprintf(p, sizeof(p), "/dev/tty%u", vtnr); + xsprintf(p, "/dev/tty%u", vtnr); fd = open_terminal(p, O_RDWR|O_NOCTTY|O_CLOEXEC); if (fd < 0) return -errno; @@ -364,9 +368,7 @@ int seat_active_vt_changed(Seat *s, unsigned int vtnr) { } r = seat_set_active(s, new_active); - -/// elogind does not spawn autovt -#if 0 +#if 0 /// elogind does not spawn autovt manager_spawn_autovt(s->manager, vtnr); #endif // 0 @@ -427,8 +429,7 @@ int seat_start(Seat *s) { NULL); /* Initialize VT magic stuff */ -/// elogind does not support autospawning vts -#if 0 +#if 0 /// elogind does not support autospawning vts seat_preallocate_vts(s); #endif // 0