home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / TELECOM / stg_v4.lzh / mm1_vs_sun.diff < prev    next >
Text File  |  1994-11-11  |  13KB  |  601 lines

  1. Only in mm1: ADDLF.C
  2. diff mm1/ARGLIST.C sun/ARGLIST.C
  3. 7a8,9
  4. >  *
  5. >  * NOTE: returned arglist ptr should be free'd when done using!!!
  6. 17c19
  7. <     char **ppcArgs;
  8. ---
  9. >     char **ppcArgs;        /* return arglist */
  10. 19c21
  11. <     int iArgs;
  12. ---
  13. >     int iArgs;        /* size of arglist currently allocated */
  14. 27a30
  15. >     /* first arg is beginning of string passed */
  16. 31a35
  17. >         /* hunt seperator char c */
  18. 40a45
  19. >             /* separate on space, pass quotes together */
  20. 63c68,69
  21. <                 ppcTemp=malloc(iArgs+4+4*8+4);
  22. ---
  23. >                 /* increase size of arglist array */
  24. >                 ppcTemp=malloc(iArgs*4+8*4+4);
  25. 72a79
  26. >                 iArgs+=8;
  27. diff mm1/CRYPT.C sun/CRYPT.C
  28. 0a1,2
  29. > #include "stgnet.h"
  30. Only in mm1: DBXINIT
  31. diff mm1/GET_KEY.C sun/GET_KEY.C
  32. 23c23
  33. <     _ss_mode(2,-1);
  34. ---
  35. >     _ss_mode(2,3);
  36. diff mm1/GET_LINE.C sun/GET_LINE.C
  37. 54c54
  38. <             write(2,s,1);
  39. ---
  40. >             writeln(2,s,1);
  41. 63c63
  42. <     _ss_mode(2,-1);
  43. ---
  44. >     _ss_mode(2,3);
  45. 70c70
  46. <                 write(2,"\7",1);
  47. ---
  48. >                 writeln(2,"\7",1);
  49. 79c79
  50. <             write(2,"\7",1);
  51. ---
  52. >             writeln(2,"\7",1);
  53. 86,88c86
  54. <             write(2,p,1);
  55. <             /* 94/05/21 StG hack to fix lf problem on g windows */
  56. <             write(2,"\l",1);
  57. ---
  58. >             writeln(2,p,1);
  59. 100c98
  60. <                 write(2,"\b \b",3);
  61. ---
  62. >                 writeln(2,"\b \b",3);
  63. 110c108
  64. <                 write(2,"\b \b",3);
  65. ---
  66. >                 writeln(2,"\b \b",3);
  67. 120c118
  68. <                 write(2,"\7",1);
  69. ---
  70. >                 writeln(2,"\7",1);
  71. 130c128
  72. <                 write(2,"\7",1);
  73. ---
  74. >                 writeln(2,"\7",1);
  75. 137c135
  76. <                 write(2,"\b \b",3);
  77. ---
  78. >                 writeln(2,"\b \b",3);
  79. 140,142c138
  80. <             write(2,"\n",1);
  81. <             /* 94/05/21 StG hack to fix lf problem on g windows */
  82. <             write(2,"\l",1);
  83. ---
  84. >             writeln(2,"\n",1);
  85. 152c148
  86. <             write(2,"\7",1);
  87. ---
  88. >             writeln(2,"\7",1);
  89. 157c153
  90. <             write(2,&echo,1);
  91. ---
  92. >             writeln(2,&echo,1);
  93. 159c155
  94. <             write(2,p,1);
  95. ---
  96. >             writeln(2,p,1);
  97. 163,165c159
  98. <     write(2,"\n",1);
  99. <     /* 94/05/21 StG hack to fix lf problem on g windows */
  100. <     write(2,"\l",1);
  101. ---
  102. >     writeln(2,"\n",1);
  103. diff mm1/GRP.C sun/GRP.C
  104. 6a7,8
  105. > #include "stglib.h"
  106. Only in mm1: HISTORY.OLD
  107. diff mm1/LINE.C sun/LINE.C
  108. 100a101,103
  109. > #define WL_SIZE 256
  110. > /* if len is less than size, use buffer to keep \n with text */
  111. 106a110,127
  112. >     char wlbuf[WL_SIZE];
  113. >     if (len<WL_SIZE)
  114. >     {
  115. >         p=wlbuf;
  116. >         while (len--)
  117. >         {
  118. >             if (*buf=='\n')
  119. >             {
  120. >                 if (isatty(path))
  121. >                     *p++='\r';
  122. >                 *p++='\n';
  123. >                 break;
  124. >             }
  125. >             *p++=*buf++;
  126. >         }
  127. >         return(write(path,wlbuf,p-wlbuf));
  128. >     }
  129. Only in mm1: LIST.C
  130. Only in mm1: LIST.PC
  131. Only in mm1: LOGIN
  132. diff mm1/MAKEFILE sun/MAKEFILE
  133. 3,14c3,14
  134. < # OSK (change all "-r $@ $@." to "$@.")
  135. < CFLAGS=-g -q -s -t=/r0
  136. < LFLAGS=-l=stg.l
  137. < STGLIB=stg.l
  138. < EXT=r
  139. < ODIR=/dd/stg/cmds
  140. < # Unix (change all "$@." to "-r $@ $@.")
  141. < #STGLIB=libstg.a
  142. < #CFLAGS=-g -D_UNIX
  143. < #LFLAGS=-L. -lstg
  144. < #EXT=o
  145. ---
  146. > # OSK (change all "-o $@ $@." to "$@.")
  147. > #CFLAGS=-g -q -s -t=/r0
  148. > #LFLAGS=-l=stg.l
  149. > #STGLIB=stg.l
  150. > #EXT=r
  151. > #ODIR=/dd/stg/cmds
  152. > # Unix (change all "$@." to "-o $@ $@.")
  153. > STGLIB=libstg.a
  154. > CFLAGS=-g
  155. > LFLAGS=-L. -lstg
  156. > EXT=o
  157. 31a32,33
  158. > # non-unix:
  159. > # cvt_cia error groups su password pop
  160. 34,35c36
  161. <     termlist userlist servlist nodelist sroute stgxfr \
  162. <     cvt_cia error groups su password pop list
  163. ---
  164. >     termlist userlist servlist nodelist sroute stgxfr 
  165. 38,39c39,40
  166. <     make $(ALL)
  167. <     (chd $(ODIR);attr -pe -npr -npw $(ALL);copy $(ALL) -rw=/dd/stg/v4/DIST/cmds)
  168. ---
  169. >     @echo Done
  170. > #    (chd $(ODIR);attr -pe -npr -npw $(ALL);copy $(ALL) -rw=$(DIST)/cmds)
  171. 41,42c42,44
  172. < stg_net: stg_net.$(EXT) $(STGLIB)
  173. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  174. ---
  175. > #cvt_cia.$(EXT): cvt_cia.c $(DEPEND)
  176. > #cvt_cia: cvt_cia.$(EXT) $(STGLIB)
  177. 43a46,47
  178. > stg_net: stg_net.$(EXT) $(STGLIB)
  179. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  180. 47c51,54
  181. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  182. ---
  183. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  184. > #error.$(EXT): error.c $(DEPEND)
  185. > #error: error.$(EXT) $(STGLIB)
  186. 48a56,58
  187. > #groups.$(EXT): groups.c $(DEPEND)
  188. > #groups: groups.$(EXT) $(STGLIB)
  189. 51c61
  190. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  191. ---
  192. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  193. 55c65,71
  194. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  195. ---
  196. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  197. > #su.$(EXT): su.c $(DEPEND)
  198. > #su: su.$(EXT) $(STGLIB)
  199. > #password.$(EXT): password.c $(DEPEND)
  200. > #password: password.$(EXT) $(STGLIB)
  201. 59c75
  202. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  203. ---
  204. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  205. 63c79
  206. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  207. ---
  208. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  209. 67c83
  210. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  211. ---
  212. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  213. 71c87
  214. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  215. ---
  216. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  217. 75c91
  218. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  219. ---
  220. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  221. 79c95
  222. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  223. ---
  224. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  225. 83c99
  226. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  227. ---
  228. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  229. 87c103
  230. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  231. ---
  232. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  233. 91c107
  234. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  235. ---
  236. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  237. 95c111
  238. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  239. ---
  240. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  241. 99c115
  242. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  243. ---
  244. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  245. 103c119
  246. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  247. ---
  248. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  249. 107c123
  250. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  251. ---
  252. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  253. 109,131c125,136
  254. < # non-UNIX
  255. < cvt_cia.$(EXT): cvt_cia.c $(DEPEND)
  256. < cvt_cia: cvt_cia.$(EXT) $(STGLIB)
  257. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  258. < error.$(EXT): error.c $(DEPEND)
  259. < error: error.$(EXT) $(STGLIB)
  260. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  261. < groups.$(EXT): groups.c $(DEPEND)
  262. < groups: groups.$(EXT) $(STGLIB)
  263. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  264. < su.$(EXT): su.c $(DEPEND)
  265. < su: su.$(EXT) $(STGLIB)
  266. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  267. < password.$(EXT): password.c $(DEPEND)
  268. < password: password.$(EXT) $(STGLIB)
  269. <     cc $(CFLAGS) $@.$(EXT) $(LFLAGS)
  270. < pop: pop.c
  271. <     cc pop.c
  272. ---
  273. > # sandv utils
  274. > download.$(EXT): download.c
  275. > download: download.$(EXT) $(STGLIB)
  276. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  277. > upload.$(EXT): upload.c
  278. > upload: upload.$(EXT) $(STGLIB)
  279. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  280. > stgver.$(EXT): stgver.c
  281. > stgver: stgver.$(EXT) $(STGLIB)
  282. >     cc $(CFLAGS) -o $@ $@.$(EXT) $(LFLAGS)
  283. 133,134c138,139
  284. < list: list.c
  285. <     cc list.c
  286. ---
  287. > #pop: pop.$(EXT)
  288. > #pop.$(EXT): pop.c
  289. 137d141
  290. 139c143,146
  291. <     merge $(LIBRARY) >-$(STGLIB)
  292. ---
  293. > #    merge $(LIBRARY) >-$(STGLIB)
  294. > # Unix
  295. >     ar ruv $(STGLIB) $(LIBRARY)
  296. >     ranlib $(STGLIB)
  297. 140a148,150
  298. > version: stgver
  299. > # OSK
  300. > #    stgver >-stgver.h
  301. 142,143c152,153
  302. < #    ar ruv $(STGLIB) $(LIBRARY)
  303. < #    ranlib $(STGLIB)
  304. ---
  305. >     stgver >stgver.h
  306. >     make
  307. 170,176d179
  308. < -bo
  309. < dist: all
  310. <     (chd $(ODIR);copy $(ALL) -rw=/dd/stg/v4/DIST/cmds)
  311. < ar:
  312. <     (chd DIST;lha -ar ../stgnetv4.lzh *)
  313. 180c183
  314. <     (chd $(ODIR);rm -f $(ALL))
  315. ---
  316. >     rm -f $(ALL)
  317. 187d189
  318. Only in sun: MAKEFILE.OLD
  319. Only in mm1: MAKEFILE.UNX
  320. Only in sun: MAK_STG
  321. Only in mm1: NOISE.C
  322. diff mm1/POP.C sun/POP.C
  323. 47,49d46
  324. < /* 94/05/21 StG - disable termcap mod feature */
  325. < int iNoTermcap=0;
  326. 239c236
  327. < #ifdef OSK_BOGUS
  328. ---
  329. > #ifdef OSK
  330. 276d272
  331. <     case 'n': iNoTermcap++; break;
  332. 292d287
  333. <         printf("     -n = don't even check the termcap\n");
  334. 519,521d513
  335. < /* 94/05/21 StG - disable termcap mod feature */
  336. < if (!iNoTermcap)
  337. < {
  338. 586,587d577
  339. < } /* 94/05/21 StG - disable termcap mod feature */
  340. diff mm1/PWD.C sun/PWD.C
  341. 7a8,9
  342. > #include "stglib.h"
  343. diff mm1/RENAME.C sun/RENAME.C
  344. 3c3
  345. < #include <stdio.h>
  346. ---
  347. > #include "stglib.h"
  348. Only in mm1: RND.C
  349. diff mm1/SLOGIN.C sun/SLOGIN.C
  350. 11c11
  351. < char *VER="V4.0a";
  352. ---
  353. > #include "stgnet.h"
  354. 28d27
  355. < #include "stgnet.h"
  356. 80,81d78
  357. <     setuid(0);
  358. 120,121c117
  359. <     pcUser=*argv;
  360. <     if (pcUser) argv++;
  361. ---
  362. >     pcUser=*argv++;
  363. diff mm1/SMAIL.C sun/SMAIL.C
  364. 137c137
  365. <     wstringf(2,"FROM: %s\n",acFrom);
  366. ---
  367. >     writeln(2,stringf(b,"FROM: %s\n",acFrom),250);
  368. 142c142
  369. <         wstringf(2,"TO  : %s\n",acTo);
  370. ---
  371. >         writeln(2,stringf(b,"TO  : %s\n",acTo),250);
  372. 146c146
  373. <         write(2,"TO  : ",6);
  374. ---
  375. >         writeln(2,"TO  : ",6);
  376. 178c178
  377. <         wstringf(2,"SUBJ: %s\n",acSubj);
  378. ---
  379. >         writeln(2,stringf(b,"SUBJ: %s\n",acSubj),250);
  380. 182c182
  381. <         write(2,"SUBJ: ",6);
  382. ---
  383. >         writeln(2,"SUBJ: ",6);
  384. diff mm1/SMENU.C sun/SMENU.C
  385. 434,435c434,435
  386. <             *pcPrompt++=CR;
  387. <             *pcPrompt++=LF;
  388. ---
  389. >             *pcPrompt++='\n';
  390. >             *pcPrompt++='\r';
  391. 973c973
  392. <     case CR:
  393. ---
  394. >     case '\n':
  395. 975c975
  396. <         *pcOut++=LF;
  397. ---
  398. >         *pcOut++='\r';
  399. Only in sun: SMENU.UU
  400. diff mm1/SS_MISC.C sun/SS_MISC.C
  401. 5,9c5,13
  402. < /************************************************
  403. <  **
  404. <  ** _ss_mode codes: 0=normal, 1=no echo, -1=raw 
  405. <  **
  406. <  ************************************************/
  407. ---
  408. > /*
  409. >  * _ss_mode(path,code)
  410. >  *
  411. >  * code:     0 = normal
  412. >  *         1 = no echo
  413. >  *         2 = disable line buffering [UNIX]
  414. >  *        -1 = RAW
  415. >  *
  416. > */
  417. 39,40d42
  418. <         sTempMode.sg_bspch=0;
  419. <         sTempMode.sg_dlnch=0;
  420. 94d95
  421. 115a117,122
  422. >     if (code&2)    /* turn off line buffering */
  423. >     {
  424. >         /* local flags */
  425. >         sTempMode.c_lflag&=~ICANON;    /* no canon processing */
  426. >     }
  427. 119,127c126
  428. <         sTempMode.c_iflag&=~INPCK;    /* no parity check */
  429. <         sTempMode.c_iflag&=~ISTRIP;    /* no strip char */
  430. <         sTempMode.c_iflag&=~INLCR;    /* no map nl to cr */
  431. <         sTempMode.c_iflag&=~IGNCR;    /* no ignore cr */
  432. <         sTempMode.c_iflag&=~ICRNL;    /* no map cr to nl */
  433. <         sTempMode.c_iflag&=~IUCLC;    /* no map case */
  434. <         sTempMode.c_iflag&=~IXON;    /* no xon output */
  435. <         sTempMode.c_iflag&=~IXOFF;    /* no xon input */
  436. <         sTempMode.c_iflag&=~IMAXBEL;    /* no bell */
  437. ---
  438. >         sTempMode.c_iflag=0;
  439. 130c129
  440. <         sTempMode.c_oflag&=~OPOST;    /* no postprocess */
  441. ---
  442. >         sTempMode.c_oflag=0;
  443. 133,134c132,133
  444. < /*        sTempMode.c_cflag
  445. <             may want to force this to 8 bits, no par? */
  446. ---
  447. >         sTempMode.c_cflag&=~PARENB;
  448. >         sTempMode.c_cflag|=CS8;
  449. 136,137c135,136
  450. <         /* line flags */
  451. <         sTempMode.c_lflag&=~ICANON;    /* no canon processing */
  452. ---
  453. >         /* local modes */
  454. >         sTempMode.c_lflag=0;
  455. 140c139
  456. <     ioctl(path,TCSETA,&sTempMode);
  457. ---
  458. >     ioctl(path,TCSETAW,&sTempMode);
  459. Only in sun: SS_MISC.OLD
  460. Only in sun: SS_MISC2.C
  461. diff mm1/STGLIB.H sun/STGLIB.H
  462. 26c26,27
  463. < #ifdef _UNIX
  464. ---
  465. > #ifdef unix
  466. > #define _UNIX
  467. 30a32
  468. > #include <varargs.h>
  469. 49d50
  470. < #define _OS9
  471. 157,158d157
  472. < #include "varargs.h"
  473. Only in mm1: STGNET.DB9
  474. Only in sun: STGVER
  475. diff mm1/STGVER.H sun/STGVER.H
  476. 1c1
  477. < #define STG_VER "V4.C.0521"
  478. ---
  479. > #define STG_VER "V4.C.0218"
  480. diff mm1/STGXFR.C sun/STGXFR.C
  481. 287d286
  482. 350a350
  483. > /*wstringf(2,"[%04X-%04X]",nopseq,noptmp);*/
  484. 352c352
  485. <                 if (nopoff>=1024)
  486. ---
  487. >                 if (nopoff>=0x8000)
  488. 357d356
  489. <                     nopseq=noptmp;
  490. 410c409,410
  491. ---
  492. >     
  493. >         
  494. 411a412
  495. >     if (Sec.lost+Sec.sqerr)
  496. 413c414,415
  497. <         if (Sec.lost+Sec.sqerr)
  498. ---
  499. >         /* are receiving bytes, but have lost some */
  500. >         if (iMaxSend>1)
  501. 415,426c417,419
  502. <             /* receiving bytes, but have lost some */
  503. <             if (iMaxSend>10)
  504. <                 iMaxSend-=10;
  505. <             else
  506. <                 if (iMaxSend>1)
  507. <                     iMaxSend--;
  508. <         }
  509. <         else
  510. <         {
  511. <             /* no loss, increase it (but only to half of cycle) */
  512. <             if (iMaxSend<Sec.cycle/2)
  513. <                 iMaxSend++;
  514. ---
  515. >             iMaxSend--;
  516. >             if (iTestMode)
  517. >                 wstringf(2,"MaxSend now %d\n",iMaxSend);
  518. 427a421,427
  519. >     }
  520. >     else
  521. >     {
  522. >         /* no loss, increase it */
  523. >         iMaxSend++;
  524. >         if (iTestMode)
  525. >             wstringf(2,"MaxSend now %d\n",iMaxSend);
  526. Only in sun: STGXFR.OLD
  527. Only in mm1: STGXFR.OUT
  528. Only in sun: STGXFR.SAV
  529. Only in mm1: STGXFR.TMP
  530. diff mm1/STG_NET.C sun/STG_NET.C
  531. 662,665d661
  532. <     /* because this is often run from startup, path 0 may not be terminal */
  533. <     close(0);
  534. <     dup(2);
  535. diff mm1/SYSLOG_.C sun/SYSLOG_.C
  536. 35,38c35,38
  537. <     int hLog;
  538. <     int errno_;
  539. <     int uid;
  540. <     long lTime;
  541. ---
  542. >     int hLog;        /* log file */
  543. >     int errno_;        /* errno save */
  544. >     int uid;        /* user id */
  545. >     long lTime;        /* current time */
  546. Only in mm1: TEST
  547. diff mm1/TEST.C sun/TEST.C
  548. 5,8c5,19
  549. <     wstringf(1,"Path #1 line 1\n");
  550. <     wstringf(1,"Path #1 line 2\n");
  551. <     wstringf(2,"Path #2 line 1\n");
  552. <     wstringf(2,"Path #2 line 2\n");
  553. ---
  554. >     char pkt[9];
  555. >     while (read(0,pkt,9)==9)
  556. >     {
  557. >         printf("%02X %02X %02X %02X %02X %02X %02X %02X %02X\n",
  558. >             pkt[0]&0xFF,
  559. >             pkt[1]&0xFF,
  560. >             pkt[2]&0xFF,
  561. >             pkt[3]&0xFF,
  562. >             pkt[4]&0xFF,
  563. >             pkt[5]&0xFF,
  564. >             pkt[6]&0xFF,
  565. >             pkt[7]&0xFF,
  566. >             pkt[8]&0xFF);
  567. >     }
  568.