home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume9 / siotools / patch03 / PATCH.3
Encoding:
Text File  |  1989-12-21  |  3.6 KB  |  123 lines

  1. :
  2. #----------------------------------------------------------------------
  3. # siotools v09i044/v09i45 Patch 3
  4. # 1. siomon "Initializing" status was not refreshed until init done :-)
  5. # 2. Add RTSFLOW and CTSFLOW to detail status for XENIX & SCO UNIX
  6. #----------------------------------------------------------------------
  7. #+:EDITS:
  8. #:12-21-1989-16:02-wht-creation
  9.  
  10. sed -e 's/^P//' << DIFF_EOF | patch
  11. P*** siomon.c    Mon Dec  4 18:28:00 1989
  12. P--- ../siomon.c    Thu Dec 21 15:21:09 1989
  13. P***************
  14. P*** 1,5
  15. P  /* CHK=0x4E4E */
  16. P! char *revision = "1.30";
  17. P  /*+-------------------------------------------------------------------------
  18. P      siomon.c -- watch XENIX/UNIX serial I/O
  19. P      ...!gatech!kd4nc!n4hgf!wht
  20. P
  21. P--- 1,5 -----
  22. P  /* CHK=0x4E4E */
  23. P! char *revision = "1.32";
  24. P  /*+-------------------------------------------------------------------------
  25. P      siomon.c -- watch XENIX/UNIX serial I/O
  26. P      ...!gatech!kd4nc!n4hgf!wht
  27. P***************
  28. P*** 51,56
  29. P    regarding screen and CPU efficiency in the original itpmon.c for Pyramid
  30. P  --------------------------------------------------------------------------*/
  31. P  /*+:EDITS:*/
  32. P  /*:12-04-1989-16:45-wht-add more to detail */
  33. P  /*:11-28-1989-19:49-wht-no more sprintf and allow nap/rdchk in lieu of select */
  34. P  /*:11-22-1989-12:33-wht-rehost my Pyramid itpmon.c */
  35. P
  36. P--- 51,57 -----
  37. P    regarding screen and CPU efficiency in the original itpmon.c for Pyramid
  38. P  --------------------------------------------------------------------------*/
  39. P  /*+:EDITS:*/
  40. P+ /*:12-21-1989-15:20-wht-version number chg - CTSFLOW/RTSFLOW */
  41. P  /*:12-04-1989-16:45-wht-add more to detail */
  42. P  /*:11-28-1989-19:49-wht-no more sprintf and allow nap/rdchk in lieu of select */
  43. P  /*:11-22-1989-12:33-wht-rehost my Pyramid itpmon.c */
  44. P***************
  45. P*** 429,434
  46. P      move(4,0);
  47. P      standout();
  48. P      addstr("  initializing  ");
  49. P      if(cptr = kmem_init_tty())
  50. P      {
  51. P          move(4,0);
  52. P
  53. P--- 430,436 -----
  54. P      move(4,0);
  55. P      standout();
  56. P      addstr("  initializing  ");
  57. P+     refresh();
  58. P      if(cptr = kmem_init_tty())
  59. P      {
  60. P          move(4,0);
  61. P*** wintty.c    Mon Dec  4 18:28:00 1989
  62. P--- ../wintty.c    Thu Dec 21 15:20:09 1989
  63. P***************
  64. P*** 17,22
  65. P  
  66. P  --------------------------------------------------------------------------*/
  67. P  /*+:EDITS:*/
  68. P  /*:12-04-1989-15:40-wht-creation */
  69. P  
  70. P  #include <curses.h>
  71. P
  72. P--- 17,23 -----
  73. P  
  74. P  --------------------------------------------------------------------------*/
  75. P  /*+:EDITS:*/
  76. P+ /*:12-21-1989-15:18-wht-display CTSFLOW and RTSFLOW if defined */
  77. P  /*:12-04-1989-15:40-wht-creation */
  78. P  
  79. P  #include <curses.h>
  80. P***************
  81. P*** 80,85
  82. P      {  3, 23, "CREAD",  CFLAG, CREAD },
  83. P      {  3, 31, "HUPCL",  CFLAG, HUPCL },
  84. P      {  3, 39, "CLOCAL", CFLAG, CLOCAL },
  85. P      {  4,  7, "ISIG",   LFLAG, ISIG },
  86. P      {  4, 15, "ICANON", LFLAG, ICANON },
  87. P      {  4, 23, "XCASE",  LFLAG, XCASE },
  88. P
  89. P--- 81,92 -----
  90. P      {  3, 23, "CREAD",  CFLAG, CREAD },
  91. P      {  3, 31, "HUPCL",  CFLAG, HUPCL },
  92. P      {  3, 39, "CLOCAL", CFLAG, CLOCAL },
  93. P+ #ifdef RTSFLOW
  94. P+     {  3, 46, "RTSFLO", CFLAG, RTSFLOW },
  95. P+ #endif
  96. P+ #ifdef CTSFLOW
  97. P+     {  3, 53, "CTSFLO", CFLAG, CTSFLOW },
  98. P+ #endif
  99. P      {  4,  7, "ISIG",   LFLAG, ISIG },
  100. P      {  4, 15, "ICANON", LFLAG, ICANON },
  101. P      {  4, 23, "XCASE",  LFLAG, XCASE },
  102. P***************
  103. P*** 169,175
  104. P  cflag_to_baud_d_p_s(cflag)
  105. P  int cflag;
  106. P  {
  107. P! register char * cptr;
  108. P  static char rtnstr[16];
  109. P  
  110. P      strcpy(rtnstr,B_to_baud_rate(cflag & CBAUD));
  111. P
  112. P--- 176,182 -----
  113. P  cflag_to_baud_d_p_s(cflag)
  114. P  int cflag;
  115. P  {
  116. P! register char *cptr;
  117. P  static char rtnstr[16];
  118. P  
  119. P      strcpy(rtnstr,B_to_baud_rate(cflag & CBAUD));
  120. DIFF_EOF
  121. echo 'Patch 3 applied.'
  122. exit 0
  123.