Telnet AUTHENTICATION option
[unix-history] / usr / src / usr.bin / telnet / tn3270.c
index 7b71696..20e055f 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)tn3270.c   5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)tn3270.c   5.2 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -51,7 +51,7 @@ static int
 #endif /* defined(TN3270) */
 
 
 #endif /* defined(TN3270) */
 
 
-void
+    void
 init_3270()
 {
 #if    defined(TN3270)
 init_3270()
 {
 #if    defined(TN3270)
@@ -80,11 +80,11 @@ init_3270()
  * only client needs for us to do that.
  */
 
  * only client needs for us to do that.
  */
 
-int
+    int
 DataToNetwork(buffer, count, done)
 DataToNetwork(buffer, count, done)
-register char  *buffer;        /* where the data is */
-register int   count;          /* how much to send */
-int            done;           /* is this the last of a logical block */
+    register char *buffer;     /* where the data is */
+    register int  count;       /* how much to send */
+    int                  done;         /* is this the last of a logical block */
 {
     register int loop, c;
     int origCount;
 {
     register int loop, c;
     int origCount;
@@ -137,7 +137,7 @@ int         done;           /* is this the last of a logical block */
 
 
 #if    defined(unix)
 
 
 #if    defined(unix)
-void
+    void
 inputAvailable()
 {
     HaveInput = 1;
 inputAvailable()
 {
     HaveInput = 1;
@@ -145,7 +145,7 @@ inputAvailable()
 }
 #endif /* defined(unix) */
 
 }
 #endif /* defined(unix) */
 
-void
+    void
 outputPurge()
 {
     (void) ttyflush(1);
 outputPurge()
 {
     (void) ttyflush(1);
@@ -164,10 +164,10 @@ outputPurge()
  * *all* the data at one time (thus the select).
  */
 
  * *all* the data at one time (thus the select).
  */
 
-int
+    int
 DataToTerminal(buffer, count)
 DataToTerminal(buffer, count)
-register char  *buffer;                /* where the data is */
-register int   count;                  /* how much to send */
+    register char      *buffer;                /* where the data is */
+    register int       count;                  /* how much to send */
 {
     register int c;
     int origCount;
 {
     register int c;
     int origCount;
@@ -207,7 +207,7 @@ register int        count;                  /* how much to send */
  * Push3270 - Try to send data along the 3270 output (to screen) direction.
  */
 
  * Push3270 - Try to send data along the 3270 output (to screen) direction.
  */
 
-int
+    int
 Push3270()
 {
     int save = ring_full_count(&netiring);
 Push3270()
 {
     int save = ring_full_count(&netiring);
@@ -233,7 +233,7 @@ Push3270()
  *             before quitting.
  */
 
  *             before quitting.
  */
 
-void
+    void
 Finish3270()
 {
     while (Push3270() || !DoTerminalOutput()) {
 Finish3270()
 {
     while (Push3270() || !DoTerminalOutput()) {
@@ -247,9 +247,9 @@ Finish3270()
 
 /* StringToTerminal - output a null terminated string to the terminal */
 
 
 /* StringToTerminal - output a null terminated string to the terminal */
 
-void
+    void
 StringToTerminal(s)
 StringToTerminal(s)
-char *s;
+    char *s;
 {
     int count;
 
 {
     int count;
 
@@ -265,9 +265,9 @@ char *s;
  *     curses(3x) can call us to send out data.
  */
 
  *     curses(3x) can call us to send out data.
  */
 
-void
+    void
 _putchar(c)
 _putchar(c)
-char c;
+    char c;
 {
 #if    defined(sun)            /* SunOS 4.0 bug */
     c &= 0x7f;
 {
 #if    defined(sun)            /* SunOS 4.0 bug */
     c &= 0x7f;
@@ -283,7 +283,7 @@ char c;
 }
 #endif /* ((!defined(NOT43)) || defined(PUTCHAR)) */
 
 }
 #endif /* ((!defined(NOT43)) || defined(PUTCHAR)) */
 
-void
+    void
 SetIn3270()
 {
     if (Sent3270TerminalType && my_want_state_is_will(TELOPT_BINARY)
 SetIn3270()
 {
     if (Sent3270TerminalType && my_want_state_is_will(TELOPT_BINARY)
@@ -313,7 +313,7 @@ SetIn3270()
  *     Return '0' if no more responses to send; '1' if a response sent.
  */
 
  *     Return '0' if no more responses to send; '1' if a response sent.
  */
 
-int
+    int
 tn3270_ttype()
 {
     /*
 tn3270_ttype()
 {
     /*
@@ -358,6 +358,7 @@ tn3270_ttype()
 }
 
 #if    defined(unix)
 }
 
 #if    defined(unix)
+       void
 settranscom(argc, argv)
        int argc;
        char *argv[];
 settranscom(argc, argv)
        int argc;
        char *argv[];