home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / coherent / 4198 < prev    next >
Encoding:
Text File  |  1992-09-01  |  3.3 KB  |  93 lines

  1. Newsgroups: comp.os.coherent
  2. Path: sparky!uunet!decwrl!access.usask.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!clau
  3. From: clau@acs.ucalgary.ca (Christopher Lau)
  4. Subject: Re: kudos to the support and development teams at MWC!!
  5. Sender: news@acs.ucalgary.ca (USENET News System)
  6. Message-ID: <92Sep01.204456.20411@acs.ucalgary.ca>
  7. Date: Tue, 01 Sep 92 20:44:56 GMT
  8. References: <92Sep01.050744.18851@acs.ucalgary.ca>
  9. Nntp-Posting-Host: acs5.acs.ucalgary.ca
  10. Organization: The University of Calgary, Alberta, Canada
  11. Lines: 80
  12.  
  13. clau@acs.ucalgary.ca (Christopher Lau) writes:
  14. > ( congrats to mwc guys and stuff about my custom smail and wmail deleted)
  15. > My custom news software needed an almost complete rewrite...  Does anyone know
  16. > why Coh 4.0.1 I/O functions grok on things like:
  17. >         < assume things are declared and everything works >
  18. >         ....
  19. >          fp1=stdin;
  20. >         fp2=popen("/usr/bin/zcat", "w");
  21. >         fgets(buff, BUFSIZ, fp1);
  22. >         fputs(buff, fp2);
  23. >         while(c=fgetc(fp1) != EOF) {
  24. >                 fputc(c,fp2);
  25. >         }
  26. >         ....
  27. > Regardless of the input, the output to zcat is a bunch of ctrl-A's..  
  28. > Strange...  I didn't look too much further into this, but I rewrote
  29. > most of that stuff with the getchar() and putc() macros..  then it worked..
  30. > Have absolutely no idea why..  maybe someone out there can shed some light
  31. > on it..
  32.  
  33. Stupid mistake..  Some nice person (I've forgotten who, feel free to speak up
  34. for youself and claim the credit)  pointed out to me that I'd forgotten a
  35. set of brackets around the c=getc(fp)..  
  36.  
  37.  
  38. > Anyways, with the new Coh 4.0.1 buffer caches, my software will process a
  39. > 50K compressed (~100K uncompressed) news batch in just under 30 seconds...
  40. > Amazing!!  Consider that under Coh 3.2.X, this would have taken around 1.5
  41. > to 2 minutes!!!
  42.  
  43. This has actually now improved to under 10 seconds..  It seems that I had
  44. a few sleep() calls in my old routines..  I now use the lockit() routines in
  45. libmisc (BTW- unlockit() is misspelled in libmisc- it's called nlockit()-
  46. without the 'u') to ensure mutual exclusivity instead of waiting (actually,
  47. Coh 3.2.X was slow enough that waiting DID ensure mutual exclusivity, but
  48. Coh 4.0.1 is so fast, that if I remove the sleep(), I run into trouble)
  49.  
  50. Geez those buffer caches are amazing!
  51.  
  52. > My last piece of software installed today was micro-gnu emacs (mg)...  It
  53. > compiled the first time with no errors with the system V settings..  The
  54. > dired routines didn't work at first (Coherents 'ls -al' output is different
  55. > than sysv and bsd)..  a little minor hacking got it all working...  The
  56. > stripped binary is 68K long..  only about 10K larger than the microemacs
  57. > binary that came with Coh 4.0.1!!
  58.  
  59.  
  60. If anyone out there in netland would like any of my stuff, let me know
  61. and I'll mail it to you or put it up on raven.
  62.  
  63.  
  64. > c4
  65. > P.S.-  Just remembered- support guys- there's a file "reg.h" missing from the
  66. > /usr/include/sys directory- the file sys/timeout.h tries to include it..
  67. > I don't think this warrants a disk mailing, so could you just email me the
  68. > file??  Thanks
  69.  
  70. Still looking for this file guys!
  71.  
  72.  
  73.  
  74. Thanks
  75. c4
  76.  
  77.  
  78. -- 
  79. Christopher Lau                      |    Dammit Jim, I'm a doctor,
  80. The University of Calgary            |    not an engineer!
  81. Dept. of Electrical & Computer Engg. |    Well, you're an engineer now..
  82. lau@enel.ucalgary.ca -OR- clau@acs.ucalgary.ca -OR- root@fusion.cuc.ab.ca
  83.