linux/arch
hyc@symas.com 26df6d1340 tty: Add EXTPROC support for LINEMODE
This patch is against the 2.6.34 source.

Paraphrased from the 1989 BSD patch by David Borman @ cray.com:

     These are the changes needed for the kernel to support
     LINEMODE in the server.

     There is a new bit in the termios local flag word, EXTPROC.
     When this bit is set, several aspects of the terminal driver
     are disabled.  Input line editing, character echo, and mapping
     of signals are all disabled.  This allows the telnetd to turn
     off these functions when in linemode, but still keep track of
     what state the user wants the terminal to be in.

     New ioctl:
         TIOCSIG         Generate a signal to processes in the
                         current process group of the pty.

     There is a new mode for packet driver, the TIOCPKT_IOCTL bit.
     When packet mode is turned on in the pty, and the EXTPROC bit
     is set, then whenever the state of the pty is changed, the
     next read on the master side of the pty will have the TIOCPKT_IOCTL
     bit set.  This allows the process on the server side of the pty
     to know when the state of the terminal has changed; it can then
     issue the appropriate ioctl to retrieve the new state.

Since the original BSD patches accompanied the source code for telnet
I've left that reference here, but obviously the feature is useful for
any remote terminal protocol, including ssh.

The corresponding feature has existed in the BSD tty driver since 1989.
For historical reference, a good copy of the relevant files can be found
here:

http://anonsvn.mit.edu/viewvc/krb5/trunk/src/appl/telnet/?pathrev=17741

Signed-off-by: Howard Chu <hyc@symas.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-10 13:47:39 -07:00
..
alpha tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
arm tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
avr32 tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
blackfin Merge git://git.infradead.org/mtd-2.6 2010-08-10 11:49:21 -07:00
cris tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
frv tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
h8300 tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
ia64 tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
m32r tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
m68k tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
m68knommu
microblaze Merge branch 'timers-timekeeping-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-08-06 13:18:29 -07:00
mips tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
mn10300 tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
parisc tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
powerpc tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
s390 tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
score Merge branch 'timers-timekeeping-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-08-06 13:18:29 -07:00
sh tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
sparc tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
tile
um Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6 2010-08-10 11:26:52 -07:00
x86 Merge branch 'writable_limits' of git://decibel.fi.muni.cz/~xslaby/linux 2010-08-10 12:07:51 -07:00
xtensa tty: Add EXTPROC support for LINEMODE 2010-08-10 13:47:39 -07:00
.gitignore
Kconfig