home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sgi / 13549 < prev    next >
Encoding:
Text File  |  1992-09-11  |  3.8 KB  |  122 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!spool.mu.edu!yale.edu!news.yale.edu!neutron!dcs
  3. From: dcs@neutron.chem.yale.edu (Dave Schweisguth)
  4. Subject: Re: Has anyone got working tn3270 sources?
  5. Message-ID: <1992Sep12.012948.24362@news.yale.edu>
  6. Sender: news@news.yale.edu (USENET News System)
  7. Nntp-Posting-Host: neutron.chem.yale.edu
  8. Organization: Yale University
  9. X-Newsreader: Tin 1.1 PL5
  10. References: <1992Sep8.131421.28758@news.yale.edu>
  11. Date: Sat, 12 Sep 1992 01:29:48 GMT
  12. Lines: 108
  13.  
  14. Dave Schweisguth (dcs@neutron.chem.yale.edu) wrote:
  15. : We've been using John Merritt's IRIX port of tn3270 since 3.3.something. The
  16. : binary works fine under 4.0.x, but the same sources that compiled under 3.3.x
  17. : no longer do so. [etc.]
  18.  
  19. Well, they do now. Thanks to Joe Habermann for the following fixes. They are to
  20. be applied _after_ John Merritt's patches and additions. (For those interested,
  21. the original tn3270 4.1.1 sources can be found virtually anywhere, and John
  22. Merritt's port is at climate.gsfc.nasa.gov.)
  23.  
  24. ===== snip ===== snip ===== snip ==============================================
  25.  
  26. *** telnet.c.old    Tue Sep  8 13:10:25 1992
  27. --- telnet.c    Wed Sep  9 10:17:35 1992
  28. ***************
  29. *** 29,34 ****
  30. --- 29,37 ----
  31.   static char sccsid[] = "@(#)telnet.c    3.5  1/21/87";
  32.   #endif not lint
  33.   
  34. + #define XXX(x,y,t) (IOC_IN|((sizeof(t)&IOCPARM_MASK)<<16)|('x'<<8)|y)
  35. + #define YYY(x,y,t) (IOC_OUT|((sizeof(t)&IOCPARM_MASK)<<16)|('x'<<8)|y)
  36.   /*
  37.    * User telnet program, modified for use by tn3270.c.
  38.    *
  39. ***************
  40. *** 797,802 ****
  41. --- 800,807 ----
  42.       if (!(SYNCHing||flushout)) {
  43.           n = write(tout, tbackp, n);
  44.       } else {
  45. + #undef TIOCFLUSH
  46. + #define TIOCFLUSH XXX(t, 16, int)
  47.           ioctl(fileno(stdout), TIOCFLUSH, (char *) 0);
  48.           /* we leave 'n' alone! */
  49.       }
  50. ***************
  51. *** 1008,1015 ****
  52. --- 1013,1026 ----
  53.       default:
  54.           return;
  55.       }
  56. + #undef TIOCSLTC
  57. + #define TIOCSLTC XXX(t,117,struct ltchars) 
  58.       ioctl(tin, TIOCSLTC, (char *)ltc);
  59. + #undef TIOCSETC
  60. + #define TIOCSETC XXX(t,17,struct tchars)
  61.       ioctl(tin, TIOCSETC, (char *)tc);
  62. + #undef TIOCSETP
  63. + #define TIOCSETP XXX(t, 9,struct sgttyb)
  64.       ioctl(tin, TIOCSETP, (char *)&sb);
  65.   #if    (!defined(TN3270)) || ((!defined(NOT43)) || defined(PUTCHAR))
  66.       ioctl(tin, FIONBIO, (char *)&onoff);
  67. ***************
  68. *** 2800,2807 ****
  69. --- 2811,2824 ----
  70.       kill(0, SIGTSTP);
  71.   #endif    /* defined(unix) */
  72.       /* reget parameters in case they were changed */
  73. + #undef TIOCGETP
  74. + #define TIOCGETP YYY(t, 8,struct sgttyb) 
  75.       ioctl(0, TIOCGETP, (char *)&ottyb);
  76. + #undef TIOCGETC
  77. + #define TIOCGETC YYY(t,18,struct tchars)
  78.       ioctl(0, TIOCGETC, (char *)&otc);
  79. + #undef TIOCGLTC
  80. + #define TIOCGLTC YYY(t,116,struct ltchars)
  81.       ioctl(0, TIOCGLTC, (char *)&oltc);
  82.       return 1;
  83.   }
  84. ***************
  85. *** 3231,3236 ****
  86. --- 3248,3255 ----
  87.       ioctl(0, TIOCGETC, (char *)&otc);
  88.       ioctl(0, TIOCGLTC, (char *)&oltc);
  89.   #if    defined(LNOFLSH)
  90. + #undef TIOCLGET
  91. + #define TIOCLGET YYY(t, 124, int)
  92.       ioctl(0, TIOCLGET, (char *)&autoflush);
  93.       autoflush = !(autoflush&LNOFLSH);    /* if LNOFLSH, no autoflush */
  94.   #else    /* LNOFLSH */
  95. *** outbound.c.old    Tue Sep  8 12:58:41 1992
  96. --- outbound.c    Wed Sep  9 10:22:57 1992
  97. ***************
  98. *** 564,570 ****
  99.   #if    defined(unix)
  100.       char KSEbuffer[2050];
  101.       char *lotsofspace = KSEbuffer;
  102. !     extern int abort();
  103.       extern char *tgetstr();
  104.   #endif    /* defined(unix) */
  105.   
  106. --- 564,570 ----
  107.   #if    defined(unix)
  108.       char KSEbuffer[2050];
  109.       char *lotsofspace = KSEbuffer;
  110. ! /*    extern int abort();*/
  111.       extern char *tgetstr();
  112.   #endif    /* defined(unix) */
  113.  
  114. === end of snip ===============================================================
  115.   
  116. Cheers,
  117.  
  118. --
  119. | Dave Schweisguth   Yale MB&B & Chemistry   Email: dcs@neutron.chem.yale.edu |
  120. | Lab phone: 203-432-5208      Fax: 203-432-6144     Home phone: 203-624-3866 |
  121.