home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume10 / siotools / patch05 < prev    next >
Text File  |  1990-02-13  |  16KB  |  592 lines

  1. Newsgroups: comp.sources.misc
  2. subject: v10i070: siotools v09i044/045 patch 5
  3. from: wht%n4hgf@gatech.edu (Warren Tucker)
  4. Sender: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  5.  
  6. Posting-number: Volume 10, Issue 70
  7. Submitted-by: wht%n4hgf@gatech.edu (Warren Tucker)
  8. Archive-name: siotools/patch05
  9.  
  10. Many thanks for the XENIX debugging help by Jim Stratton (stratton@hpda.da.com)
  11.  
  12. #!/bin/sh
  13. # This is siotools.PATCH.5, a shell archive (shar 3.04)
  14. # made 02/13/1990 19:32 UTC by gatech!kd4nc!n4hgf!wht (wht%n4hgf@gatech.edu)
  15. # Source directory /u4/src/uusnap/rel
  16. #
  17. # siotools v09i044/v09i45 Patch 5
  18. # This patch affects uusnap and siomon
  19. # 1. Fix XENIX compilation bugs (IS_OPEN-->ISOPEN)
  20. # 2. Fix tty not restored properly under some XENIX curses libraries
  21. # 3. Add tty->t_state descriptions
  22. # 4. Increase update speed during "detail" display
  23. #
  24. # existing files WILL be overwritten
  25. #
  26. # This shar contains:
  27. #    PATCH.5
  28. #
  29. touch 2>&1 | fgrep '[-amc]' > /tmp/s3_touch$$
  30. if [ -s /tmp/s3_touch$$ ]
  31. then
  32.     TOUCH=can
  33. else
  34.     TOUCH=cannot
  35. fi
  36. rm -f /tmp/s3_touch$$
  37. echo "x - extracting PATCH.5 (Text)"
  38. sed 's/^X//' << 'SHAR_EOF' > PATCH.5 &&
  39. X:
  40. X#----------------------------------------------------------------------
  41. X# siotools v09i044/v09i45 Patch 5
  42. X# This patch affects uusnap and siomon
  43. X# 1. Fix XENIX compilation bugs (IS_OPEN-->ISOPEN)
  44. X# 2. Fix tty not restored properly under some XENIX curses libraries
  45. X# 3. Add tty->t_state descriptions
  46. X# 4. Increase update speed during "detail" display
  47. X#----------------------------------------------------------------------
  48. X#+:EDITS:
  49. X#:01-27-1990-19:42-wht-creation
  50. X
  51. Xsed -e 's/^P//' << DIFF_EOF | patch
  52. XP*** rel/siomon.c    Mon Feb  5 16:06:24 1990
  53. XP--- siomon.c    Tue Feb 13 14:22:17 1990
  54. XP***************
  55. XP*** 1,5
  56. XP  /* CHK=0x75B9 */
  57. XP! char *revision = "1.33";
  58. XP  /*+-------------------------------------------------------------------------
  59. XP      siomon.c -- watch XENIX/UNIX serial I/O
  60. XP      ...!gatech!kd4nc!n4hgf!wht
  61. XP
  62. XP--- 1,5 -----
  63. XP  /* CHK=0x75B9 */
  64. XP! char *revision = "1.35";
  65. XP  /*+-------------------------------------------------------------------------
  66. XP      siomon.c -- watch XENIX/UNIX serial I/O
  67. XP      ...!gatech!kd4nc!n4hgf!wht
  68. XP***************
  69. XP*** 3,8
  70. XP  /*+-------------------------------------------------------------------------
  71. XP      siomon.c -- watch XENIX/UNIX serial I/O
  72. XP      ...!gatech!kd4nc!n4hgf!wht
  73. XP  
  74. XP      Sample output:
  75. XP      000000000011111111112222222222333333333344444444445555555555666666666677777
  76. XP
  77. XP--- 3,9 -----
  78. XP  /*+-------------------------------------------------------------------------
  79. XP      siomon.c -- watch XENIX/UNIX serial I/O
  80. XP      ...!gatech!kd4nc!n4hgf!wht
  81. XP+     XENIX debugging help by Jim Stratton (stratton@hpda.da.com)
  82. XP  
  83. XP      Sample output:
  84. XP     000000000011111111112222222222333333333344444444445555555555666666666677777
  85. XP***************
  86. XP*** 5,36
  87. XP      ...!gatech!kd4nc!n4hgf!wht
  88. XP  
  89. XP      Sample output:
  90. XP!     000000000011111111112222222222333333333344444444445555555555666666666677777
  91. XP!     012345678901234567890123456789012345678901234567890123456789012345678901234
  92. XP!  00  siomon 1.2 (UNIX V.3.2/i386) n4hgf               delay:  1        21:54:54
  93. XP!  01    
  94. XP!  02     tty  raw  can   out   speed  state iflag  oflag  cflag  lflag  pgrp
  95. XP!  03     ---  ---  ---  -----  -----  ----- ------ ------ ------ ------ -----
  96. XP!  04     1a     0    0      0   9600  OC     10045      0   6655      0     0
  97. XP!  05     1b
  98. XP!  06     1c
  99. XP!  07     1d
  100. XP!  08     1e
  101. XP!  09     1f
  102. XP!  10     1g
  103. XP!  11     1h
  104. XP!  12     2a
  105. XP!  13     2b
  106. XP!  14     2c
  107. XP!  15     2d     0    0      0   9600  W          0      0   2275      0     0
  108. XP!  16     2e
  109. XP!  17     2f     0    0      0   4800  OC     10040      0   2374      0     0
  110. XP!  18     2g     0    0      0   4800  OC     10005      0   6374      0     0
  111. XP!  19     2h
  112. XP!  20    
  113. XP!  21    State: W waiting for open to complete  O open  C carrier on
  114. XP!  22           S stopped by XOFF  D delay timeout in progress
  115. XP!  23 Commands: + inc delay  - dec delay  ^L refresh  q quit  d detail
  116. XP  
  117. XP  Under XENIX, termio.h is included twice (once by curses.h/tcap.h andf
  118. XP  again by sys/tty.h.  You need to bracket the termio.h under XENIX with
  119. XP
  120. XP--- 6,37 -----
  121. XP      XENIX debugging help by hplabs!hpcupt1!stratton
  122. XP  
  123. XP      Sample output:
  124. XP!    000000000011111111112222222222333333333344444444445555555555666666666677777
  125. XP!    012345678901234567890123456789012345678901234567890123456789012345678901234
  126. XP! 00  siomon 1.34 (UNIX V.3.2/i386) n4hgf               delay:  1        21:54:54
  127. XP! 01 
  128. XP! 02  tty  raw  can   out   speed  state iflag  oflag  cflag  lflag  pgrp
  129. XP! 03  ---  ---  ---  -----  -----  ----- ------ ------ ------ ------ -----
  130. XP! 04  1a     0    0      0   9600  OC     10045      0   6655      0     0
  131. XP! 05  1b
  132. XP! 06  1c
  133. XP! 07  1d
  134. XP! 08  1e
  135. XP! 09  1f
  136. XP! 10  1g
  137. XP! 11  1h
  138. XP! 12  2a
  139. XP! 13  2b
  140. XP! 14  2c
  141. XP! 15  2d     0    0      0   9600  W          0      0   2275      0     0
  142. XP! 16  2e
  143. XP! 17  2f     0    0      0   4800  OC     10040      0   2374      0     0
  144. XP! 18  2g     0    0      0   4800  OC     10005      0   6374      0     0
  145. XP! 19  2h
  146. XP! 20 
  147. XP! 21 State: W waiting for open to complete  O open  C carrier on
  148. XP! 22        S stopped by XOFF  D delay timeout in progress
  149. XP! 23 Commands: + inc delay  - dec delay  ^L refresh  q quit  d detail
  150. XP  
  151. XP  Under XENIX, termio.h is included twice (once by curses.h/tcap.h andf
  152. XP  again by sys/tty.h.  You need to bracket the termio.h under XENIX with
  153. XP***************
  154. XP*** 104,111
  155. XP  {
  156. XP      if(!stdscr)
  157. XP      {
  158. XP!         nocrmode();
  159. XP!         echo();
  160. XP          exit(0);
  161. XP      }
  162. XP      move(LINES - 1,0);
  163. XP
  164. XP--- 105,111 -----
  165. XP  {
  166. XP      if(!stdscr)
  167. XP      {
  168. XP!         resetty();
  169. XP          exit(0);
  170. XP      }
  171. XP      move(LINES - 1,0);
  172. XP***************
  173. XP*** 175,181
  174. XP      if(tty->t_state & TTSTOP)
  175. XP          s8[3] = 'S';
  176. XP      if(tty->t_state & TIMEOUT)
  177. XP!         s8[3] = 'D';
  178. XP      move(y,FX + xo);
  179. XP      addstr(s8);
  180. XP  
  181. XP
  182. XP--- 175,181 -----
  183. XP      if(tty->t_state & TTSTOP)
  184. XP          s8[3] = 'S';
  185. XP      if(tty->t_state & TIMEOUT)
  186. XP!         s8[4] = 'D';
  187. XP      move(y,FX + xo);
  188. XP      addstr(s8);
  189. XP  
  190. XP***************
  191. XP*** 280,286
  192. XP  "State: W waiting for open to complete  O open  C carrier on");
  193. XP      move(LINES - 3,0);
  194. XP      addstr(
  195. XP! "       S stopped by XOFF  D delay timeout in progress ");
  196. XP      move(LINES - 2,0);
  197. XP      addstr(
  198. XP  "Commands: + inc delay  - dec delay  ^L refresh  q quit  d detail");
  199. XP
  200. XP--- 280,286 -----
  201. XP  "State: W waiting for open to complete  O open  C carrier on");
  202. XP      move(LINES - 3,0);
  203. XP      addstr(
  204. XP! "       S stopped by XOFF  D delay timeout in progress  B transmitter busy");
  205. XP      move(LINES - 2,0);
  206. XP      addstr(
  207. XP  "Commands: + inc delay  - dec delay  ^L refresh  q quit  d detail");
  208. XP***************
  209. XP*** 326,332
  210. XP  
  211. XP      if((strlen(tty_name) == 2) &&
  212. XP          ((tty_name[0] == '1') || (tty_name[0] == '2')))
  213. XP!         sionum = ((tty_name[0] - '1') * 8) + ((tty_name[1] & 7) - 1);
  214. XP      else
  215. XP      {
  216. XP          fputc(7,stderr);
  217. XP
  218. XP--- 326,332 -----
  219. XP  
  220. XP      if((strlen(tty_name) == 2) &&
  221. XP          ((tty_name[0] == '1') || (tty_name[0] == '2')))
  222. XP!         sionum = ((tty_name[0] - '1') * 8) + ((tty_name[1] & 0xF) - 1);
  223. XP      else
  224. XP      {
  225. XP          fputc(7,stderr);
  226. XP***************
  227. XP*** 350,356
  228. XP  #if defined(HAVE_SELECT)
  229. XP          readfds = 1;            /* for standard input */
  230. XP          timeout.tv_sec  = delay_secs;
  231. XP!         timeout.tv_usec = (delay_secs) ? 0 : 100*1000L;
  232. XP          cmd_available = (select(32,&readfds,0,0,&timeout) > 0);
  233. XP  #else
  234. XP          ltimeout = (delay_secs) ? (delay_secs * 1000L) : 100L;
  235. XP
  236. XP--- 350,360 -----
  237. XP  #if defined(HAVE_SELECT)
  238. XP          readfds = 1;            /* for standard input */
  239. XP          timeout.tv_sec  = delay_secs;
  240. XP!         timeout.tv_usec = (delay_secs)
  241. XP!                                 ? 0
  242. XP!                                 : ((sio[0].t_state & ISOPEN)
  243. XP!                                     ? 20*1000L
  244. XP!                                     : 200*1000L);
  245. XP          cmd_available = (select(32,&readfds,0,0,&timeout) > 0);
  246. XP  #else
  247. XP          ltimeout = (delay_secs)
  248. XP***************
  249. XP*** 353,359
  250. XP          timeout.tv_usec = (delay_secs) ? 0 : 100*1000L;
  251. XP          cmd_available = (select(32,&readfds,0,0,&timeout) > 0);
  252. XP  #else
  253. XP!         ltimeout = (delay_secs) ? (delay_secs * 1000L) : 100L;
  254. XP          while(ltimeout > 0)
  255. XP          {
  256. XP              ltimeout -= nap(100L);
  257. XP
  258. XP--- 357,365 -----
  259. XP                                      : 200*1000L);
  260. XP          cmd_available = (select(32,&readfds,0,0,&timeout) > 0);
  261. XP  #else
  262. XP!         ltimeout = (delay_secs)
  263. XP!                         ? (delay_secs * 1000L)
  264. XP!                         : ((sio[0].t_state & ISOPEN) ? 20L : 100L);
  265. XP          while(ltimeout > 0)
  266. XP          {
  267. XP              ltimeout -= nap((delay_secs) ? 20L : 100L);
  268. XP***************
  269. XP*** 356,362
  270. XP          ltimeout = (delay_secs) ? (delay_secs * 1000L) : 100L;
  271. XP          while(ltimeout > 0)
  272. XP          {
  273. XP!             ltimeout -= nap(100L);
  274. XP              if(cmd_available = rdchk(0))
  275. XP                  break;
  276. XP          }
  277. XP
  278. XP--- 362,368 -----
  279. XP                          : ((sio[0].t_state & ISOPEN) ? 20L : 100L);
  280. XP          while(ltimeout > 0)
  281. XP          {
  282. XP!             ltimeout -= nap((delay_secs) ? 20L : 100L);
  283. XP              if(cmd_available = rdchk(0))
  284. XP                  break;
  285. XP          }
  286. XP***************
  287. XP*** 417,422
  288. XP  
  289. XP      setbuf(stdout,_sobuf);
  290. XP      initscr();
  291. XP      crmode();
  292. XP      noecho();
  293. XP      if(!stdscr)
  294. XP
  295. XP--- 423,429 -----
  296. XP  
  297. XP      setbuf(stdout,_sobuf);
  298. XP      initscr();
  299. XP+     savetty();
  300. XP      crmode();
  301. XP      noecho();
  302. XP      if(!stdscr)
  303. XP***************
  304. XP*** 422,429
  305. XP      if(!stdscr)
  306. XP      {
  307. XP          fprintf(stderr,"curses init failed\n");
  308. XP!         nocrmode();
  309. XP!         echo();
  310. XP          exit(1);
  311. XP      }
  312. XP      main_template();
  313. XP
  314. XP--- 429,435 -----
  315. XP      if(!stdscr)
  316. XP      {
  317. XP          fprintf(stderr,"curses init failed\n");
  318. XP!         resetty();
  319. XP          exit(1);
  320. XP      }
  321. XP      main_template();
  322. XP*** rel/uusnap.c    Mon Feb  5 16:06:26 1990
  323. XP--- uusnap.c    Tue Feb 13 14:10:27 1990
  324. XP***************
  325. XP*** 1,5
  326. XP  /* CHK=0xBF8D */
  327. XP! char *revision = "1.70";
  328. XP  /*+-------------------------------------------------------------------------
  329. XP      uusnap.c - display UUCP communications status for HDB systems
  330. XP      ...gatech!kd4nc!n4hgf!wht
  331. XP
  332. XP--- 1,5 -----
  333. XP  /* CHK=0xBF8D */
  334. XP! char *revision = "1.73";
  335. XP  /*+-------------------------------------------------------------------------
  336. XP      uusnap.c - display UUCP communications status for HDB systems
  337. XP      ...gatech!kd4nc!n4hgf!wht
  338. XP***************
  339. XP*** 42,47
  340. XP   4 ki4xo                     01/25 01/25       successful
  341. XP  --------------------------------------------------------------------------*/
  342. XP  /*+:EDITS:*/
  343. XP  /*:01-27-1990-19:11-wht-show input and output queues + cosmetics */
  344. XP  /*:12-28-1989-13:35-wht-change rev - B600 added to wintty */
  345. XP  /*:12-26-1989-14:53-wht-datetime5 month off by 1 */
  346. XP
  347. XP--- 42,48 -----
  348. XP   4 ki4xo                     01/25 01/25       successful
  349. XP  --------------------------------------------------------------------------*/
  350. XP  /*+:EDITS:*/
  351. XP+ /*:02-07-1990-16:34-wht-use crmode and nocrmode rather than raw and noraw */
  352. XP  /*:01-27-1990-19:11-wht-show input and output queues + cosmetics */
  353. XP  /*:12-28-1989-13:35-wht-change rev - B600 added to wintty */
  354. XP  /*:12-26-1989-14:53-wht-datetime5 month off by 1 */
  355. XP***************
  356. XP*** 372,378
  357. XP          clrtobot();
  358. XP          refresh();
  359. XP          echo();
  360. XP!         noraw();
  361. XP          move(LINES - 1,0);
  362. XP          refresh();
  363. XP          endwin();
  364. XP
  365. XP--- 373,379 -----
  366. XP          clrtobot();
  367. XP          refresh();
  368. XP          echo();
  369. XP!         nocrmode();
  370. XP          move(LINES - 1,0);
  371. XP          refresh();
  372. XP          endwin();
  373. XP***************
  374. XP*** 728,734
  375. XP  static char *state1 =
  376. XP      "State: W waiting for open to complete  O open  C carrier on";
  377. XP  static char *state2 =
  378. XP!     "       S stopped by XOFF  D delay timeout in progress ";
  379. XP  
  380. XP      cmd_line("display detail on system #: __");
  381. XP      getyx(stdscr,y,x);
  382. XP
  383. XP--- 729,735 -----
  384. XP  static char *state1 =
  385. XP      "State: W waiting for open to complete  O open  C carrier on";
  386. XP  static char *state2 =
  387. XP!     "       S stopped by XOFF  D delay timeout in progress  B transmitter busy";
  388. XP  
  389. XP      cmd_line("display detail on system #: __");
  390. XP      getyx(stdscr,y,x);
  391. XP***************
  392. XP*** 736,742
  393. XP      refresh();
  394. XP      resetty();
  395. XP      x = scanw("%d",&sysdetail);
  396. XP!     raw();
  397. XP      noecho();
  398. XP      sysdetail--;
  399. XP      if(!x || (sysdetail > systems))
  400. XP
  401. XP--- 737,743 -----
  402. XP      refresh();
  403. XP      resetty();
  404. XP      x = scanw("%d",&sysdetail);
  405. XP!     crmode();
  406. XP      noecho();
  407. XP      sysdetail--;
  408. XP      if(!x || (sysdetail > systems))
  409. XP***************
  410. XP*** 817,823
  411. XP  
  412. XP  DETAIL_SLEEP:
  413. XP          refresh();
  414. XP-         sleep(1);
  415. XP          if(rdchk(0))
  416. XP          {
  417. XP              getch();
  418. XP
  419. XP--- 818,823 -----
  420. XP  
  421. XP  DETAIL_SLEEP:
  422. XP          refresh();
  423. XP          if(rdchk(0))
  424. XP          {
  425. XP              getch();
  426. XP***************
  427. XP*** 823,828
  428. XP              getch();
  429. XP              break;
  430. XP          }
  431. XP      }
  432. XP  
  433. XP  DETAIL_EXIT:
  434. XP
  435. XP--- 823,829 -----
  436. XP              getch();
  437. XP              break;
  438. XP          }
  439. XP+         nap((have_tty) ? 20L : 500L);
  440. XP      }
  441. XP  
  442. XP  DETAIL_EXIT:
  443. XP***************
  444. XP*** 852,858
  445. XP  struct timeval timeout;
  446. XP  int fdmask;
  447. XP  #else
  448. XP- long nap();
  449. XP  long timeout;
  450. XP  #endif
  451. XP  
  452. XP
  453. XP--- 853,858 -----
  454. XP  struct timeval timeout;
  455. XP  int fdmask;
  456. XP  #else
  457. XP  long timeout;
  458. XP  #endif
  459. XP  
  460. XP***************
  461. XP*** 868,874
  462. XP      }
  463. XP      savetty();
  464. XP      noecho();
  465. XP!     raw();
  466. XP  
  467. XP      signal(SIGTERM,bye);
  468. XP      signal(SIGINT,bye);
  469. XP
  470. XP--- 868,874 -----
  471. XP      }
  472. XP      savetty();
  473. XP      noecho();
  474. XP!     crmode();
  475. XP  
  476. XP      signal(SIGTERM,bye);
  477. XP      signal(SIGINT,bye);
  478. XP*** rel/wintty.c    Mon Feb  5 16:06:27 1990
  479. XP--- wintty.c    Mon Jan 29 03:04:37 1990
  480. XP***************
  481. XP*** 17,22
  482. XP  
  483. XP  --------------------------------------------------------------------------*/
  484. XP  /*+:EDITS:*/
  485. XP  /*:12-28-1989-13:35-wht-B600 added */
  486. XP  /*:12-21-1989-15:18-wht-display CTSFLOW and RTSFLOW if defined */
  487. XP  /*:12-04-1989-15:40-wht-creation */
  488. XP
  489. XP--- 17,23 -----
  490. XP  
  491. XP  --------------------------------------------------------------------------*/
  492. XP  /*+:EDITS:*/
  493. XP+ /*:01-29-1990-02:45-wht-add t_state display */
  494. XP  /*:12-28-1989-13:35-wht-B600 added */
  495. XP  /*:12-21-1989-15:18-wht-display CTSFLOW and RTSFLOW if defined */
  496. XP  /*:12-04-1989-15:40-wht-creation */
  497. XP***************
  498. XP*** 41,46
  499. XP      {  4,  0, "lflag:" },
  500. XP      {  5,  7, "INTR QUIT ERASE KILL EOF/VMIN  EOL/VTIME EOL2 SWTCH" },
  501. XP      {  6,  0, "cc:" },
  502. XP      {  -1,-1, (char *)0}
  503. XP  };
  504. XP  
  505. XP
  506. XP--- 42,48 -----
  507. XP      {  4,  0, "lflag:" },
  508. XP      {  5,  7, "INTR QUIT ERASE KILL EOF/VMIN  EOL/VTIME EOL2 SWTCH" },
  509. XP      {  6,  0, "cc:" },
  510. XP+     {  7,  0, "state:" },
  511. XP      {  -1,-1, (char *)0}
  512. XP  };
  513. XP  
  514. XP***************
  515. XP*** 56,61
  516. XP  #define OFLAG 2
  517. XP  #define LFLAG 3
  518. XP  #define CFLAG 4
  519. XP  
  520. XP  TFIELD tty_tfields[] =
  521. XP  {
  522. XP
  523. XP--- 58,64 -----
  524. XP  #define OFLAG 2
  525. XP  #define LFLAG 3
  526. XP  #define CFLAG 4
  527. XP+ #define STATE 5
  528. XP  
  529. XP  TFIELD tty_tfields[] =
  530. XP  {
  531. XP***************
  532. XP*** 97,102
  533. XP      {  4, 53, "ECHONL", LFLAG, ECHONL },
  534. XP      {  4, 60, "NOFLSH", LFLAG, NOFLSH },
  535. XP      {  4, 68, "XCLUDE", LFLAG, XCLUDE },
  536. XP      {  -1,-1, (char *)0,    -1,    -1 }
  537. XP  };
  538. XP  
  539. XP
  540. XP--- 100,121 -----
  541. XP      {  4, 53, "ECHONL", LFLAG, ECHONL },
  542. XP      {  4, 60, "NOFLSH", LFLAG, NOFLSH },
  543. XP      {  4, 68, "XCLUDE", LFLAG, XCLUDE },
  544. XP+     {  7,  7, "TO",     STATE, TIMEOUT },
  545. XP+     {  7, 10, "WO",     STATE, WOPEN },
  546. XP+     {  7, 13, "O",      STATE, ISOPEN },
  547. XP+     {  7, 15, "TB",     STATE, TBLOCK },
  548. XP+     {  7, 18, "CD",     STATE, CARR_ON },
  549. XP+     {  7, 21, "BY",     STATE, BUSY },
  550. XP+     {  7, 24, "OSLP",   STATE, OASLP },
  551. XP+     {  7, 29, "ISLP",   STATE, IASLP },
  552. XP+     {  7, 34, "STOP",   STATE, TTSTOP },
  553. XP+     {  7, 39, "EXT",    STATE, EXTPROC },
  554. XP+     {  7, 43, "TACT",   STATE, TACT },
  555. XP+     {  7, 48, "ESC",    STATE, CLESC },
  556. XP+     {  7, 52, "RTO",    STATE, RTO },
  557. XP+     {  7, 56, "IOW",    STATE, TTIOW },
  558. XP+     {  7, 60, "XON",    STATE, TTXON },
  559. XP+     {  7, 64, "XOFF",   STATE, TTXOFF },
  560. XP      {  -1,-1, (char *)0,    -1,    -1 }
  561. XP  };
  562. XP  
  563. XP***************
  564. XP*** 235,240
  565. XP              case OFLAG: flag = tty->t_oflag; break;
  566. XP              case LFLAG: flag = tty->t_lflag; break;
  567. XP              case CFLAG: flag = tty->t_cflag; break;
  568. XP          }
  569. XP          flag &= tptr->mask;
  570. XP          wmove(win,tptr->y + tly,tptr->x + tlx);
  571. XP
  572. XP--- 254,260 -----
  573. XP              case OFLAG: flag = tty->t_oflag; break;
  574. XP              case LFLAG: flag = tty->t_lflag; break;
  575. XP              case CFLAG: flag = tty->t_cflag; break;
  576. XP+             case STATE: flag = tty->t_state; break;
  577. XP          }
  578. XP          flag &= tptr->mask;
  579. XP          wmove(win,tptr->y + tly,tptr->x + tlx);
  580. XDIFF_EOF
  581. Xecho 'Patch 5 applied.  Please type make.  Then su and make install.'
  582. Xexit 0
  583. X
  584. SHAR_EOF
  585. chmod 0755 PATCH.5 || echo "restore of PATCH.5 fails"
  586. if [ $TOUCH = can ]
  587. then
  588.     touch -m 0213142990 PATCH.5
  589. fi
  590. exit 0
  591.  
  592.