home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17488 < prev    next >
Encoding:
Text File  |  1992-11-21  |  3.2 KB  |  91 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!world!jrs
  3. From: jrs@world.std.com (Rick Sladkey)
  4. Subject: patch for C-Kermit-5A(186)
  5. Message-ID: <JRS.92Nov21160203@lepton.world.std.com>
  6. Sender: jrs@world.std.com (Rick Sladkey)
  7. Organization: The Internet
  8. Date: Sat, 21 Nov 1992 21:02:03 GMT
  9. Lines: 80
  10.  
  11. Here is a patch for C-Kermit-5A(186) that fixes three things with
  12. an "out of the box" compile.
  13.  
  14. * usleep is used so dialing delays work properly
  15. * TCP/IP is compiled in because it works fine
  16. * RTS/CTS flow control works
  17.  
  18. A patch to cku186.tar.Z follows.
  19. -----
  20. diff -rc orig/cku186/ckutio.c cku186/ckutio.c
  21. *** orig/cku186/ckutio.c    Tue Nov  3 12:48:06 1992
  22. --- cku186/ckutio.c    Fri Nov 20 20:57:19 1992
  23. ***************
  24. *** 3023,3038 ****
  25.   
  26.   #else /* It is ATTSV or POSIX */
  27.   
  28.       if (flow == FLO_RTSC ||        /* Hardware flow control */
  29.       flow == FLO_DTRC ||
  30. !     flow == FLO_DTRT)
  31.         tthflow(flow);
  32. !     else if (flow == FLO_XONX)        /* Software flow control */
  33.         tttvt.c_iflag |= (IXON|IXOFF);    /* On if requested. */
  34.       else if (flow == FLO_KEEP) {
  35.       tttvt.c_iflag &= ~(IXON|IXOFF);    /* Turn off Xon/Xoff flags */
  36.       tttvt.c_iflag |= (ttold.c_iflag & (IXON|IXOFF)); /* OR in old ones */
  37.       /* NOTE: We should also handle hardware flow control here! */
  38.       } else if (flow == FLO_NONE)    /* Off if NONE or hardware */
  39.         tttvt.c_iflag &= ~(IXON|IXOFF);    /* requested. */
  40.   
  41. --- 3023,3047 ----
  42.   
  43.   #else /* It is ATTSV or POSIX */
  44.   
  45. + #ifdef CRTSCTS
  46. +     tttvt.c_cflag &= ~CRTSCTS;        /* Turn off CRTSCTS flag */
  47. + #endif
  48.       if (flow == FLO_RTSC ||        /* Hardware flow control */
  49.       flow == FLO_DTRC ||
  50. !     flow == FLO_DTRT) {
  51. ! #ifdef CRTSCTS
  52. !       tttvt.c_cflag |= CRTSCTS;        /* Turn on CRTSCTS flag */
  53. ! #endif
  54.         tthflow(flow);
  55. !     } else if (flow == FLO_XONX)    /* Software flow control */
  56.         tttvt.c_iflag |= (IXON|IXOFF);    /* On if requested. */
  57.       else if (flow == FLO_KEEP) {
  58.       tttvt.c_iflag &= ~(IXON|IXOFF);    /* Turn off Xon/Xoff flags */
  59.       tttvt.c_iflag |= (ttold.c_iflag & (IXON|IXOFF)); /* OR in old ones */
  60.       /* NOTE: We should also handle hardware flow control here! */
  61. + #ifdef CRTSCTS
  62. +     tttvt.c_cflag |= (ttold.c_cflag & CRTSCTS); /* OR in old ones */
  63. + #endif
  64.       } else if (flow == FLO_NONE)    /* Off if NONE or hardware */
  65.         tttvt.c_iflag &= ~(IXON|IXOFF);    /* requested. */
  66.   
  67. diff -rc orig/cku186/makefile cku186/makefile
  68. *** orig/cku186/makefile    Mon Nov  9 03:08:47 1992
  69. --- cku186/makefile    Fri Nov 20 18:40:27 1992
  70. ***************
  71. *** 1705,1711 ****
  72.   linuxgcc2:
  73.       @echo 'Making C-Kermit Linux with gcc2.1'
  74.       $(MAKE) wermit "CC = gcc" "CFLAGS = -O -DPOSIX -DDIRENT -DDYNAMIC  \
  75. !     $(KFLAGS)" "CC2 = gcc" "LDFLAGS = -ltermcap "
  76.   
  77.   #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  78.   #The -O flag may fail on some modules (like ckuus2.c), in which case you 
  79. --- 1705,1712 ----
  80.   linuxgcc2:
  81.       @echo 'Making C-Kermit Linux with gcc2.1'
  82.       $(MAKE) wermit "CC = gcc" "CFLAGS = -O -DPOSIX -DDIRENT -DDYNAMIC  \
  83. !     -DUSLEEP -DCK_RTSCTS -DTCPSOCKET $(KFLAGS)" \
  84. !     "CC2 = gcc" "LDFLAGS = -ltermcap "
  85.   
  86.   #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  87.   #The -O flag may fail on some modules (like ckuus2.c), in which case you 
  88. --
  89. Rick Sladkey
  90. jrs@world.std.com
  91.