summaryrefslogtreecommitdiffstats
path: root/src/appl/telnet/stty.diff
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1993-03-09 23:45:26 +0000
committerTheodore Tso <tytso@mit.edu>1993-03-09 23:45:26 +0000
commite2261d482ee27f62a9b588b1c9f51132b582736f (patch)
tree67757cc3b7480f820dd570380874d401f0f518ee /src/appl/telnet/stty.diff
parentab9b6a8630dde5db5057bb36c430a9dcc14978d1 (diff)
downloadkrb5-e2261d482ee27f62a9b588b1c9f51132b582736f.tar.gz
krb5-e2261d482ee27f62a9b588b1c9f51132b582736f.tar.xz
krb5-e2261d482ee27f62a9b588b1c9f51132b582736f.zip
Initial Version
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2524 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/telnet/stty.diff')
-rw-r--r--src/appl/telnet/stty.diff72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/appl/telnet/stty.diff b/src/appl/telnet/stty.diff
new file mode 100644
index 0000000000..3c1b02acc3
--- /dev/null
+++ b/src/appl/telnet/stty.diff
@@ -0,0 +1,72 @@
+*** stty.c.old Tue May 23 13:54:29 1989
+--- stty.c Wed Aug 23 13:42:32 1989
+***************
+*** 20,25 ****
+--- 20,28 ----
+
+ #include <stdio.h>
+ #include <sys/ioctl.h>
++ #include <sys/types.h>
++ #define NO_T_CHARS_DEFINES
++ #include <sys/tty.h>
+
+ struct
+ {
+***************
+*** 145,150 ****
+--- 148,156 ----
+ struct winsize win;
+ int lmode;
+ int oldisc, ldisc;
++ #ifdef TIOCGSTATE
++ int extproc;
++ #endif
+
+ struct special {
+ char *name;
+***************
+*** 188,193 ****
+--- 194,203 ----
+ ioctl(1, TIOCLGET, &lmode);
+ ioctl(1, TIOCGLTC, &ltc);
+ ioctl(1, TIOCGWINSZ, &win);
++ #ifdef TIOCGSTATE
++ ioctl(1, TIOCGSTATE, &extproc);
++ extproc &= TS_EXTPROC;
++ #endif
+ if(argc == 1) {
+ prmodes(0);
+ exit(0);
+***************
+*** 292,297 ****
+--- 302,316 ----
+ printf("%d %d\n", win.ws_row, win.ws_col);
+ exit(0);
+ }
++ #if defined(TIOCEXT)
++ if (eq("extproc") || eq("-extproc")) {
++ if (**argv == '-')
++ extproc = 0;
++ else
++ extproc = 1;
++ ioctl(1, TIOCEXT, &extproc);
++ }
++ #endif
+ for(i=0; speeds[i].string; i++)
+ if(eq(speeds[i].string)) {
+ mode.sg_ispeed = mode.sg_ospeed = speeds[i].speed;
+***************
+*** 438,443 ****
+--- 457,468 ----
+ lpit(LPENDIN, "-pendin ");
+ lpit(LDECCTQ, "-decctlq ");
+ lpit(LNOFLSH, "-noflsh ");
++ #ifdef TIOCGSTATE
++ if (all==2||extproc) {
++ fprintf(stderr,"-extproc"+(extproc!=0));
++ any++;
++ }
++ #endif
+ if (any || nothing)
+ fprintf(stderr,"\n");
+ } else if (!all)