diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-03-12 17:31:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-03-12 17:31:45 +0000 |
commit | 80fef7aaf92b4b0b4a55c8f915d422670f89af55 (patch) | |
tree | cab2387b6c9c1889185891c82b9847667fad5a0c /usr.bin/telnet | |
parent | da4f6e72b9dec750ea01a6630dcd519f57e2f920 (diff) |
repair tn3270
Diffstat (limited to 'usr.bin/telnet')
-rw-r--r-- | usr.bin/telnet/commands.c | 6 | ||||
-rw-r--r-- | usr.bin/telnet/externs.h | 29 |
2 files changed, 31 insertions, 4 deletions
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index 5db9aa1d1e9..5b083e1564b 100644 --- a/usr.bin/telnet/commands.c +++ b/usr.bin/telnet/commands.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commands.c,v 1.10 1998/03/12 04:57:29 art Exp $ */ +/* $OpenBSD: commands.c,v 1.11 1998/03/12 17:31:30 deraadt Exp $ */ /* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */ /* @@ -1320,7 +1320,7 @@ togcrmod() } /*VARARGS*/ - static int + int telnetsuspend() { #ifdef SIGTSTP @@ -2133,7 +2133,7 @@ status(argc, argv) sigiocount, (sigiocount == 1)? "":"s"); if (In3270) { printf("Process ID %d, process group %d.\r\n", - getpid(), getpgrp(getpid())); + getpid(), getpgrp()); printf("Terminal input:\r\n"); filestuff(tin); printf("Terminal output:\r\n"); diff --git a/usr.bin/telnet/externs.h b/usr.bin/telnet/externs.h index de15608e0d7..187b9b78d75 100644 --- a/usr.bin/telnet/externs.h +++ b/usr.bin/telnet/externs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: externs.h,v 1.3 1998/03/12 04:57:31 art Exp $ */ +/* $OpenBSD: externs.h,v 1.4 1998/03/12 17:31:32 deraadt Exp $ */ /* $KTH: externs.h,v 1.16 1997/11/29 02:28:35 joda Exp $ */ /* @@ -80,6 +80,10 @@ extern int crmod, netdata, /* Print out network data flow */ prettydump, /* Print "netdata" output in user readable format */ +#if defined(TN3270) + cursesdata, /* Print out curses data flow */ + apitrace, /* Trace API transactions */ +#endif /* defined(TN3270) */ termdata, /* Print out terminal data flow */ debug; /* Debug level */ @@ -429,3 +433,26 @@ extern Ring ttyoring, ttyiring; +/* Tn3270 section */ +#if defined(TN3270) + +extern int + HaveInput, /* Whether an asynchronous I/O indication came in */ + noasynchtty, /* Don't do signals on I/O (SIGURG, SIGIO) */ + noasynchnet, /* Don't do signals on I/O (SIGURG, SIGIO) */ + sigiocount, /* Count of SIGIO receptions */ + shell_active; /* Subshell is active */ + +extern char + *Ibackp, /* Oldest byte of 3270 data */ + Ibuf[], /* 3270 buffer */ + *Ifrontp, /* Where next 3270 byte goes */ + tline[], + *transcom; /* Transparent command */ + +extern int + settranscom P((int, char**)); + +extern void + inputAvailable P((int)); +#endif /* defined(TN3270) */ |