home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume16 / ecu3 / patch05b < prev    next >
Encoding:
Internet Message Format  |  1991-02-10  |  12.1 KB

  1. From: wht@n4hgf (Warren Tucker)
  2. Newsgroups: comp.sources.misc
  3. Subject: v16i098:  ECU 3 Patch 5, Part 2 of 2
  4. Message-ID: <1991Feb11.004624.2785@sparky.IMD.Sterling.COM>
  5. Date: 11 Feb 91 00:46:24 GMT
  6. Approved: kent@sparky.imd.sterling.com
  7. X-Checksum-Snefru: 6e79b528 766cdbdb 406316b3 ef92c366
  8.  
  9. Submitted-by: wht@n4hgf.Mt-Park.GA.US (Warren Tucker)
  10. Posting-number: Volume 16, Issue 98
  11. Archive-name: ecu3/patch05b
  12. Patch-To: ecu3: Volume 16, Issue 25-59
  13.  
  14. #!/bin/sh
  15. # This is ecu3/patch05b, a shell archive (shar 3.46)
  16. # made 02/08/1991 08:39 UTC by wht@n4hgf
  17. # Source directory /u1/src/ecu
  18. #
  19. # existing files WILL be overwritten
  20. #
  21. # This shar contains:
  22. # length  mode       name
  23. # ------ ---------- ------------------------------------------
  24. #  10666 -rw-r--r-- PATCH5.02
  25. #
  26. # ============= PATCH5.02 ==============
  27. echo 'x - extracting PATCH5.02 (Text)'
  28. sed 's/^X//' << 'SHAR_EOF' > 'PATCH5.02' &&
  29. X:
  30. X#-------------------------------------------------------
  31. X# PATCH5.02
  32. X# created by gendiff x1.03 on 08 Feb 1991 08:25 UTC
  33. X#-------------------------------------------------------
  34. X*** /u4/src/ecu3.04/feval.c    Wed Dec 26 02:32:00 1990
  35. X--- feval.c    Thu Jan 31 16:27:42 1991
  36. X***************
  37. X*** 19,24
  38. X  
  39. X  --------------------------------------------------------------------------*/
  40. X  /*+:EDITS:*/
  41. X  /*:12-24-1990-04:31-wht@n4hgf-experimental esio driver functions */
  42. X  /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  43. X  
  44. X
  45. X--- 19,25 -----
  46. X  
  47. X  --------------------------------------------------------------------------*/
  48. X  /*+:EDITS:*/
  49. X+ /*:01-31-1991-16:10-wht@n4hgf-was freeing tesd1 twice in feval_str */
  50. X  /*:12-24-1990-04:31-wht@n4hgf-experimental esio driver functions */
  51. X  /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  52. X  
  53. X***************
  54. X*** 894,900
  55. X              break;
  56. X          if(erc = skip_paren(param,0))
  57. X              break;
  58. X!         cptr = mode_map((int)ltmp,(char *)0);
  59. X          itmp = strlen(cptr);
  60. X          goto CPTR_ITMP_COMMON;
  61. X  
  62. X
  63. X--- 895,901 -----
  64. X              break;
  65. X          if(erc = skip_paren(param,0))
  66. X              break;
  67. X!         cptr = mode_map((ushort)ltmp,(char *)0);
  68. X          itmp = strlen(cptr);
  69. X          goto CPTR_ITMP_COMMON;
  70. X  
  71. X***************
  72. X*** 1216,1222
  73. X      null_terminate_esd(result_esd);
  74. X      free_esd(tesd1);
  75. X      if(tesd2)
  76. X!         free_esd(tesd1);
  77. X      return(erc);
  78. X  
  79. X  }   /* end of feval_str() */
  80. X
  81. X--- 1217,1223 -----
  82. X      null_terminate_esd(result_esd);
  83. X      free_esd(tesd1);
  84. X      if(tesd2)
  85. X!         free_esd(tesd2);
  86. X      return(erc);
  87. X  
  88. X  }   /* end of feval_str() */
  89. X*** /u4/src/ecu3.04/gint.c    Fri Feb  8 03:21:21 1991
  90. X--- gint.c    Thu Jan 31 16:50:57 1991
  91. X***************
  92. X*** 11,16
  93. X  
  94. X  --------------------------------------------------------------------------*/
  95. X  /*+:EDITS:*/
  96. X  /*:01-09-1991-22:31-wht@n4hgf-ISC port */
  97. X  /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  98. X  
  99. X
  100. X--- 11,17 -----
  101. X  
  102. X  --------------------------------------------------------------------------*/
  103. X  /*+:EDITS:*/
  104. X+ /*:01-31-1991-16:50-wht@n4hgf-reinstate octal with 0o prefix */
  105. X  /*:01-09-1991-22:31-wht@n4hgf-ISC port */
  106. X  /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  107. X  
  108. X***************
  109. X*** 57,64
  110. X          base = BASE_HEX;
  111. X          param->index += 2;
  112. X      }
  113. X! #ifdef WANT_OCT
  114. X!     else if(*(param->pb + param->index) == '0')
  115. X          base = BASE_OCT;
  116. X  #endif
  117. X  
  118. X
  119. X--- 58,66 -----
  120. X          base = BASE_HEX;
  121. X          param->index += 2;
  122. X      }
  123. X!     else if((!strncmp(param->pb + param->index,"0o",2)) ||
  124. X!         (!strncmp(param->pb + param->index,"0O",2)))
  125. X!     {
  126. X          base = BASE_OCT;
  127. X          param->index += 2;
  128. X      }
  129. X***************
  130. X*** 60,66
  131. X  #ifdef WANT_OCT
  132. X      else if(*(param->pb + param->index) == '0')
  133. X          base = BASE_OCT;
  134. X! #endif
  135. X  
  136. X      param->old_index = param->index;
  137. X      switch(base)
  138. X
  139. X--- 62,69 -----
  140. X          (!strncmp(param->pb + param->index,"0O",2)))
  141. X      {
  142. X          base = BASE_OCT;
  143. X!         param->index += 2;
  144. X!     }
  145. X  
  146. X      param->old_index = param->index;
  147. X      switch(base)
  148. X***************
  149. X*** 76,82
  150. X          itmp = param->index + strspn(param->pb + param->index,"0123456789");
  151. X          erc = eInvalidDecNumber;
  152. X          break;
  153. X- #ifdef WANT_OCT
  154. X      case BASE_OCT:
  155. X          sscanf(param->pb + param->index,"%lo",&new_value);
  156. X          itmp = param->index + strspn(param->pb + param->index,"01234567");
  157. X
  158. X--- 79,84 -----
  159. X          itmp = param->index + strspn(param->pb + param->index,"0123456789");
  160. X          erc = eInvalidDecNumber;
  161. X          break;
  162. X      case BASE_OCT:
  163. X          sscanf(param->pb + param->index,"%lo",&new_value);
  164. X          itmp = param->index + strspn(param->pb + param->index,"01234567");
  165. X***************
  166. X*** 82,88
  167. X          itmp = param->index + strspn(param->pb + param->index,"01234567");
  168. X          erc = eInvalidOctNumber;
  169. X          break;
  170. X- #endif
  171. X      }
  172. X  
  173. X      param->index = itmp;
  174. X
  175. X--- 84,89 -----
  176. X          itmp = param->index + strspn(param->pb + param->index,"01234567");
  177. X          erc = eInvalidOctNumber;
  178. X          break;
  179. X      }
  180. X  
  181. X      param->index = itmp;
  182. X*** /u4/src/ecu3.04/gstr.c    Mon Dec 24 22:38:00 1990
  183. X--- gstr.c    Thu Jan 31 17:18:37 1991
  184. X***************
  185. X*** 185,191
  186. X                  break;
  187. X  
  188. X              default:
  189. X-                 null_terminate_esd(result);
  190. X                  erc = 0;
  191. X                  if((param->index < param->cb) &&
  192. X                      isalnum(*(param->pb + param->index)))
  193. X
  194. X--- 185,190 -----
  195. X                  break;
  196. X  
  197. X              default:
  198. X                  erc = 0;
  199. X                  if((param->index < param->cb) &&
  200. X                      isalnum(*(param->pb + param->index)))
  201. X*** /u4/src/ecu3.04/models/sf_test.ep    Mon Aug 13 17:05:00 1990
  202. X--- models/sf_test.ep    Thu Jan 31 16:48:36 1991
  203. X***************
  204. X*** 87,90
  205. X      echo ''
  206. X      echo 'errno 1 = "'+%errstr(1)+'"'
  207. X      echo '5678 seconds is "'+%etime(5678)+'"'
  208. X!     echo 'mode 105755 is "'+%fmodestr(0105755)+'"'
  209. X
  210. X--- 87,90 -----
  211. X      echo ''
  212. X      echo 'errno 1 = "'+%errstr(1)+'"'
  213. X      echo '5678 seconds is "'+%etime(5678)+'"'
  214. X!     echo 'mode 105755 is "'+%fmodestr(0o105755)+'"'
  215. X*** /u4/src/ecu3.04/proc.c    Mon Dec 24 22:43:00 1990
  216. X--- proc.c    Thu Jan 31 13:20:14 1991
  217. X***************
  218. X*** 28,34
  219. X  /*+:EDITS:*/
  220. X  /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  221. X  
  222. X- #include <ctype.h>
  223. X  #include "ecu.h"
  224. X  #include "ecuerror.h"
  225. X  #include "esd.h"
  226. X
  227. X--- 28,33 -----
  228. X  /*+:EDITS:*/
  229. X  /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  230. X  
  231. X  #include "ecu.h"
  232. X  #include "ecuerror.h"
  233. X  #include "esd.h"
  234. X*** /u4/src/ecu3.04/z/ecurz.c    Sun Dec 23 02:16:00 1990
  235. X--- z/ecurz.c    Sun Feb  3 17:27:51 1991
  236. X***************
  237. X*** 1,4
  238. X! char *numeric_revision = "ecurz 3.04";
  239. X  /*+-------------------------------------------------------------------------
  240. X      ecurz.c - X/Y/ZMODEM receive program
  241. X    Derived from public domain source by Chuck Forsberg, Omen Technologies
  242. X
  243. X--- 1,4 -----
  244. X! char *numeric_revision = "ecurz 3.05";
  245. X  /*+-------------------------------------------------------------------------
  246. X      ecurz.c - X/Y/ZMODEM receive program
  247. X    Derived from public domain source by Chuck Forsberg, Omen Technologies
  248. X***************
  249. X*** 57,62
  250. X  
  251. X  --------------------------------------------------------------------------*/
  252. X  /*+:EDITS:*/
  253. X  /*:12-18-1990-21:26-wht@n4hgf-better output control */
  254. X  /*:10-04-1990-14:01-wht@n4hgf-add file finish warning for me */
  255. X  /*:09-19-1990-19:36-wht@n4hgf-ecu_log_event now gets pid for log from caller */
  256. X
  257. X--- 57,63 -----
  258. X  
  259. X  --------------------------------------------------------------------------*/
  260. X  /*+:EDITS:*/
  261. X+ /*:02-03-1991-17:27-wht@n4hgf-version number change - see zcurses.c */
  262. X  /*:12-18-1990-21:26-wht@n4hgf-better output control */
  263. X  /*:10-04-1990-14:01-wht@n4hgf-add file finish warning for me */
  264. X  /*:09-19-1990-19:36-wht@n4hgf-ecu_log_event now gets pid for log from caller */
  265. X*** /u4/src/ecu3.04/z/ecusz.c    Thu Dec 20 17:05:00 1990
  266. X--- z/ecusz.c    Sun Feb  3 17:28:04 1991
  267. X***************
  268. X*** 1,4
  269. X! char *numeric_revision = "ecusz 3.04";
  270. X  #define BUFFERED_WRITE
  271. X  /*+-------------------------------------------------------------------------
  272. X      ecusz.c - X/Y/ZMODEM send program
  273. X
  274. X--- 1,4 -----
  275. X! char *numeric_revision = "ecusz 3.05";
  276. X  #define BUFFERED_WRITE
  277. X  /*+-------------------------------------------------------------------------
  278. X      ecusz.c - X/Y/ZMODEM send program
  279. X***************
  280. X*** 66,71
  281. X  
  282. X  --------------------------------------------------------------------------*/
  283. X  /*+:EDITS:*/
  284. X  /*:12-18-1990-21:26-wht@n4hgf-better output control */
  285. X  /*:09-19-1990-19:36-wht@n4hgf-ecu_log_event now gets pid for log from caller */
  286. X  /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  287. X
  288. X--- 66,72 -----
  289. X  
  290. X  --------------------------------------------------------------------------*/
  291. X  /*+:EDITS:*/
  292. X+ /*:02-03-1991-17:27-wht@n4hgf-version number change - see zcurses.c */
  293. X  /*:12-18-1990-21:26-wht@n4hgf-better output control */
  294. X  /*:09-19-1990-19:36-wht@n4hgf-ecu_log_event now gets pid for log from caller */
  295. X  /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  296. X*** /u4/src/ecu3.04/z/zcurses.c    Fri Feb  8 03:21:29 1991
  297. X--- z/zcurses.c    Sun Feb  3 17:41:51 1991
  298. X***************
  299. X*** 57,62
  300. X  
  301. X  ------------------------------------------------------------------------*/
  302. X  /*+:EDITS:*/
  303. X  /*:01-04-1991-15:54-wht@n4hgf-no_curses per-file xfer rate was wrong */
  304. X  /*:12-18-1990-21:26-wht@n4hgf-better output control */
  305. X  /*:12-04-1990-04:07-wht@n4hgf-handle slow terminal using faster line */
  306. X
  307. X--- 57,63 -----
  308. X  
  309. X  ------------------------------------------------------------------------*/
  310. X  /*+:EDITS:*/
  311. X+ /*:02-03-1991-17:27-wht@n4hgf-show elapsed time during no curses xfer */
  312. X  /*:01-04-1991-15:54-wht@n4hgf-no_curses per-file xfer rate was wrong */
  313. X  /*:12-18-1990-21:26-wht@n4hgf-better output control */
  314. X  /*:12-04-1990-04:07-wht@n4hgf-handle slow terminal using faster line */
  315. X***************
  316. X*** 680,685
  317. X  report_rx_ind(status)
  318. X  int status;
  319. X  {
  320. X      if(no_curses)
  321. X      {
  322. X          if(report_verbosity && status)
  323. X
  324. X--- 681,688 -----
  325. X  report_rx_ind(status)
  326. X  int status;
  327. X  {
  328. X+ char *cptr;
  329. X+ 
  330. X      if(no_curses)
  331. X      {
  332. X          if(report_verbosity && status)
  333. X***************
  334. X*** 686,691
  335. X          {
  336. X              printf("R");
  337. X              if(++no_curses_pos > 75)
  338. X                  no_curses_newline();
  339. X              fflush(stdout);
  340. X          }
  341. X
  342. X--- 689,695 -----
  343. X          {
  344. X              printf("R");
  345. X              if(++no_curses_pos > 75)
  346. X+             {
  347. X                  no_curses_newline();
  348. X                  current_seconds = time((long *)0);
  349. X                  elapsed_seconds = current_seconds - this_file_start_seconds;
  350. X***************
  351. X*** 687,692
  352. X              printf("R");
  353. X              if(++no_curses_pos > 75)
  354. X                  no_curses_newline();
  355. X              fflush(stdout);
  356. X          }
  357. X          return;
  358. X
  359. X--- 691,701 -----
  360. X              if(++no_curses_pos > 75)
  361. X              {
  362. X                  no_curses_newline();
  363. X+                 current_seconds = time((long *)0);
  364. X+                 elapsed_seconds = current_seconds - this_file_start_seconds;
  365. X+                 cptr = get_elapsed_time(elapsed_seconds);
  366. X+                 no_curses_pos = printf("%s elapsed ",cptr + 3);
  367. X+             }
  368. X              fflush(stdout);
  369. X          }
  370. X          return;
  371. X***************
  372. X*** 704,709
  373. X  report_tx_ind(status)
  374. X  int status;
  375. X  {
  376. X      if(no_curses)
  377. X      {
  378. X          if(report_verbosity && status)
  379. X
  380. X--- 713,719 -----
  381. X  report_tx_ind(status)
  382. X  int status;
  383. X  {
  384. X+ char *cptr;
  385. X      if(no_curses)
  386. X      {
  387. X          if(report_verbosity && status)
  388. X***************
  389. X*** 710,715
  390. X          {
  391. X              printf("T");
  392. X              if(++no_curses_pos > 75)
  393. X                  no_curses_newline();
  394. X              fflush(stdout);
  395. X          }
  396. X
  397. X--- 720,726 -----
  398. X          {
  399. X              printf("T");
  400. X              if(++no_curses_pos > 75)
  401. X+             {
  402. X                  no_curses_newline();
  403. X                  no_curses_newline();
  404. X                  current_seconds = time((long *)0);
  405. X***************
  406. X*** 711,716
  407. X              printf("T");
  408. X              if(++no_curses_pos > 75)
  409. X                  no_curses_newline();
  410. X              fflush(stdout);
  411. X          }
  412. X          return;
  413. X
  414. X--- 722,733 -----
  415. X              if(++no_curses_pos > 75)
  416. X              {
  417. X                  no_curses_newline();
  418. X+                 no_curses_newline();
  419. X+                 current_seconds = time((long *)0);
  420. X+                 elapsed_seconds = current_seconds - this_file_start_seconds;
  421. X+                 cptr = get_elapsed_time(elapsed_seconds);
  422. X+                 no_curses_pos = printf("%s elapsed ",cptr + 3);
  423. X+             }
  424. X              fflush(stdout);
  425. X          }
  426. X          return;
  427. SHAR_EOF
  428. chmod 0644 PATCH5.02 ||
  429. echo 'restore of PATCH5.02 failed'
  430. Wc_c="`wc -c < 'PATCH5.02'`"
  431. test 10666 -eq "$Wc_c" ||
  432.     echo 'PATCH5.02: original size 10666, current size' "$Wc_c"
  433. exit 0
  434.  
  435. exit 0 # Just in case...
  436. -- 
  437. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  438. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  439. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  440. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  441.