diff options
author | Ken Raeburn <raeburn@mit.edu> | 1996-05-02 01:22:45 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 1996-05-02 01:22:45 +0000 |
commit | c2b6efe259a090bc17190759eca242f759eae6e1 (patch) | |
tree | 72a102ebe36d0578a8dc71a1cef2fe4cd813fdf1 /src/appl/telnet/telnetd/termios-tn.c | |
parent | 36b18019927a7882d017300c77f8702019cdf6d6 (diff) | |
download | krb5-c2b6efe259a090bc17190759eca242f759eae6e1.tar.gz krb5-c2b6efe259a090bc17190759eca242f759eae6e1.tar.xz krb5-c2b6efe259a090bc17190759eca242f759eae6e1.zip |
cygnus merge:
* configure.in: Fix typo in Apr 16 HP-UX change.
* state.c (envvarok): nuke all KRB5* environment variables, not just the
previously selected ones.
* telnetd.c (telnet -> doit): moved SIGTTOU handler before the first thing
which would cause the terminal driver to get upset.
* sys_term.c (line): Remove initialization silliness. The non-GNUC method was
Just Wrong, do it the other way always.
(Xline): Specify length, not contents.
* termio-tn.c (readstream_termio): new file, provides isolated version of
M_IOCTL handling for systems where termio and termios can't be compiled
together.
* termios-tn.c (readstream_termios): new file, provides isolated version of
M_IOCTL handling for systems where termio and termios can't be compiled
together.
* telnetd.c (readstream): use readstream_termios and readstream_termio to
handle getmsg with M_IOCTL.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7883 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/telnet/telnetd/termios-tn.c')
-rw-r--r-- | src/appl/telnet/telnetd/termios-tn.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/appl/telnet/telnetd/termios-tn.c b/src/appl/telnet/telnetd/termios-tn.c new file mode 100644 index 000000000..4712a3326 --- /dev/null +++ b/src/appl/telnet/telnetd/termios-tn.c @@ -0,0 +1,30 @@ +/* handle having mutually exclusive termio vs. termios */ +/* return 0 if handled */ +#ifdef STREAMSPTY +#include <sys/types.h> +#include <sys/stream.h> +#include <sys/ioctl.h> +#include <termios.h> + +int readstream_termios(cmd, ibuf, vstop, vstart, ixon) + int cmd; + char *ibuf; + char *vstop, *vstart; + int *ixon; +{ + struct termios *tsp; + switch (cmd) { + case TCSETS: + case TCSETSW: + case TCSETSF: + tsp = (struct termios *) + (ibuf+1 + sizeof(struct iocblk)); + *vstop = tsp->c_cc[VSTOP]; + *vstart = tsp->c_cc[VSTART]; + *ixon = tsp->c_iflag & IXON; + return 0; + } + return -1; +} + +#endif /* STREAMSPTY */ |