[dev] Adding utmpx stuff

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Tue, 9 Oct 2012 18:55:09 +0200


        This patch adds utmpx support in st, which means that st sessions
will be visible using who or, who is the correct behaviour of a terminal
emulator, but this means that the binary needs have setgid, which is
something we have to thing carefully.

          Other important about this patch is the portability of it. I have
used the POSIX definitions, but as far as I know, there are some BSD that
don't support very well this functions (specially OpenBSD). There are
different solutions for this:

          - A hell of ifdef inside in st.c
          - A pty.c where all this portability stuff is present.
          - A compat file (or one for each problematic System), where
            this interfaces are adapted.

Please give your opinion, and don't worry if it is necessary modify this


Roberto E. Vargas Caballero

Received on Tue Oct 09 2012 - 18:55:09 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 09 2012 - 19:00:07 CEST